bostrot / wsl2-distro-manager

A GUI to quickly manage your WSL2 instances
https://apps.microsoft.com/store/detail/wsl-manager/9NWS9K95NMJB
Other
1.79k stars 108 forks source link

[FEATURE] Mount a Linux disk in WSL 2 (Leverage `wsl --mount` component) #243

Open whatbh opened 4 months ago

whatbh commented 4 months ago

Is there an existing issue for this?

Problem?

WSL requires manual mounting for Linux file systems and VHD images due to the lack of automatic recognition. Hence, the wsl --mount come in handy for for these frequent chores, but the job is tedious, as usual.

It requires identifying the DeviceID and then invoking wsl --mount component:

GET-CimInstance -query "SELECT * from Win32_DiskDrive"
wsl --mount <DeviceID> --partition <Partition> --type <Filesystem>

Or for VHD:

wsl --mount --vhd <pathToVHD>

Solution

A built-in GUI for mounting in WSL Manager would be a valuable addition. I would love to see a dialog box featuring clickable options for selecting Linux disks/partitions, a custom option to enter the path to a VHD image, along with a button to mount the chosen item.

Alternatives

No response

Anything else?

References: Mount a Linux disk in WSL 2 https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk

github-actions[bot] commented 4 months ago

Hello there! As you are a first time Issuer please read our Code of Conduct. Please also check whether your issue description is reasonable and complete. If you are having an issue always include the version you are using (WSL, this app, Windows) as well as a way to reproduce it.