Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
whatbh opened this issue Apr 23, 2024 · 1 comment
Open
1 task done
Assignees
Labels
feature Feature request

Comments

@whatbh
Copy link

whatbh commented Apr 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

@whatbh whatbh added the feature Feature request label Apr 23, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants