WSL doesn't automatically mount drive letters added by subst command
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
### Windows Version
Microsoft Windows Version (0S Build 22621.1992)
### WSL Version
WSL version: 1.2.5.0
### Are you using WSL 1 or WSL 2?
- [X] WSL 2
- [X] WSL 1
### Kernel Version
5.15.90.1
### Distro Version
Ubuntu 20.04
### Other Software
_No response_
### Repro Steps
Add your disk in drive letter E:
Then in cmd execute
subst D: E:\
subst G: E:\
Wsl doesn't mount D and G at /mnt/d and /mnt/g
### Expected Behavior
D: and G: are mounted
### Actual Behavior
They are not mounted
### Diagnostic Logs
_No response_
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
Reproduce the issue with the listed Windows, WSL, kernel, and Ubuntu versions by creating D: and G: with subst and checking /mnt/d and /mnt/g in both WSL 1 and WSL 2. Trace the drive-mount handling from the WSL startup or automount entry point; done means both substituted drive letters are mounted at their corresponding /mnt paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, ubuntu
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100