microsoft / microsoft/WSL

WSL doesn't automatically mount drive letters added by subst command

Open
#10,311 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.