WSL2 Preview: Need Persistent mount to Physical drive
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
I have Windows 10 build: 20262.1010.
I followed the wsl2 preview guidance at: https://docs.microsoft.com/en-us/windows/wsl/wsl2-mount-disk
I was able to mount an ext4 formatted physical drive, using wsl --mount --bare
There are no partitions on the drive.
Everything was great until I restarted my machine.
Changing the /etc/fstab file to create a persistent mount using UUID= didn't work.
/dev/sde doesn't show up lsblk in ubuntu 20.04 distro until wsl --mount --bare is run in powershell.
Should I just script it all in powershell and have a group policy to run the script at startup?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the WSL2 disk-mount guidance and the reported behavior of /etc/fstab, wsl --mount --bare, and lsblk in Ubuntu 20.04. Determine how persistent mounting should work for an ext4 physical drive with no partitions after a machine restart; done means the drive is available without manually running wsl --mount --bare in PowerShell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, ubuntu
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100