Dev Drive: WSL uses the "drive letter"-path instead of the "NTFS mount"-path
Open
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 10.0.26100.3775]
WSL Version
2.7.1.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
6.6.114.1-1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
- create a Dev Drive
- mount it to path, e.g.
C:\Users\antho\Repositoriesand give it a drive letter, e.g.E: - in PowerShell, navigate to a folder within the Dev Drive using the mount path, e.g.
C:\Users\antho\Repositories\tests\wsl - run
wsl
Expected Behavior
The WSL distribution opens in /mnt/c/Users/antho/Repositories/tests/wsl.
Actual Behavior
The WSL distribution opens in /mnt/e/tests/wsl.
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 behavior by creating a Dev Drive, mounting it at C:\Users\antho\Repositories with drive letter E:, navigating there in PowerShell, and running wsl. Trace the WSL launch path translation and make the distribution open at /mnt/c/Users/antho/Repositories/tests/wsl rather than /mnt/e/tests/wsl; verify the result for the reported WSL and Windows versions.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100