microsoft / microsoft/WSL

Failing to translate all drives randomly.

Open
#12,273 12 comments 0 reactions 0 assignees View on GitHub

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.22631.4460]

### WSL Version

2.3.26.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

5.15.167.4-1

### Distro Version

_No response_

### Other Software

_No response_

### Repro Steps

Just starting WSL.

### Expected Behavior

Windows directories should be available inside wsl and wsl should start without errors.

### Actual Behavior

My PC only has C: and D: drive. Both never been changed, removed or renamed.
Running dir inside wsl for c and d in /mnt prints nothing.
Sometimes it happens randomly and just fixes itself randomly too.
Here is the terminal output when starting wsl.
-------------------------------------------------------------------------------------------------------------------------------------
PS C:\Users\yasha> wsl
<3>WSL (23) ERROR: CreateProcessParseCommon:763: Failed to translate C:\Users\yasha
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\PowerShell\7
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\libnvvp\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\system32\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\Wbem\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\OpenSSH\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\dotnet\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.3.2\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\PowerShell\7\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\yasha\AppData\Local\Microsoft\WindowsApps\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\yasha\AppData\Local\Programs\Microsoft VS Code\bin\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\yasha\.dotnet\tools\
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\yasha\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg.Shared_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.1-full_build-shared\bin
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\yasha\AppData\Local\Programs\Microsoft VS Code\bin
<3>WSL (23) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\yasha\AppData\Local\Programs\Git\cmd
[root@Zephyrus ~]#

### 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

Start by reproducing WSL 2 startup with the reported Windows 10 setup and compare the CreateProcessParseCommon and UtilTranslatePathList errors. Investigate the intermittent failure to translate the listed Windows paths and mount C: and D: under /mnt; done means WSL starts without errors and both drives are accessible.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.