-
-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
I get errors when starting wsl. This also makes vscode not work with WSL anymore.
PS C:\Users\George> wsl --shutdown
PS C:\Users\George> wsl
wsl: Failed to mount C:\, see dmesg for more details.
wsl: Failed to mount D:\, see dmesg for more details.
wsl: Failed to translate 'C:\Users\George'
wsl: Failed to translate 'C:\Windows\system32'
wsl: Failed to translate 'C:\Windows'
wsl: Failed to translate 'C:\Windows\System32\Wbem'
wsl: Failed to translate 'C:\Windows\System32\WindowsPowerShell\v1.0\'
wsl: Failed to translate 'C:\Windows\System32\OpenSSH\'
wsl: Failed to translate 'C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common'
wsl: Failed to translate 'C:\Program Files\dotnet\'
wsl: Failed to translate 'C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR'
wsl: Failed to translate 'C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\'
wsl: Failed to translate 'C:\Program Files\Sunshine'
wsl: Failed to translate 'C:\Program Files\Sunshine\tools'
wsl: Failed to translate 'C:\Program Files\Git\cmd'
wsl: Failed to translate 'C:\Python314\Scripts\'
wsl: Failed to translate 'C:\Python314\'
wsl: Failed to translate 'C:\Users\George\AppData\Local\UniGetUI\Chocolatey\bin'
wsl: Failed to translate 'C:\Users\George\AppData\Local\Microsoft\WindowsApps'
wsl: Failed to translate 'C:\Users\George\AppData\Local\Programs\Microsoft VS Code\bin'
wsl: Failed to translate 'C:\Users\George\AppData\Local\Microsoft\WinGet\Links'
wsl: Failed to translate 'C:\Users\George\.dotnet\tools'
wsl: Failed to translate 'C:\Users\George\AppData\Local\PowerToys\'
mounting the drives manually with these commands works just fine:
sudo mount -t drvfs C: /mnt/c
sudo mount -t drvfs D: /mnt/d
ChatGPT thinks /bin/mount is missing at boot, I have no idea whether this is correct, but it's present once I'm in WSL.
To Reproduce
I have no idea what caused this, I have updated nixos-wsl system recently, but it worked fine since the updated, today, it does not (I have installed some thing windows-side though, and windows might have updated).
Logs
I think this might be the relevant part of the dmesg:
[ 0.691958] EXT4-fs (sdc): mounted filesystem 8fd5d69a-f323-4e4f-8bfe-e3f1db7de17e r/w with ordered data mode. Quota mode: none.
[ 0.885938] WSL (2 - init-systemd(NixOS)) WARNING: /etc/resolv.conf updating disabled in /etc/wsl.conf
[ 0.889538] WSL (3 - init-systemd(NixOS)) ERROR: UtilCreateProcessAndWait:685: execv(/bin/mount) failed with 2
[ 0.890304] WSL (2 - init-systemd(NixOS)) ERROR: UtilCreateProcessAndWait:707: /bin/mount failed with status 0xff00
[ 0.891274] WSL (4 - init-systemd(NixOS)) ERROR: UtilCreateProcessAndWait:685: execv(/bin/mount) failed with 2
[ 0.891791] WSL (2 - init-systemd(NixOS)) ERROR: UtilCreateProcessAndWait:707: /bin/mount failed with status 0xff00
[ 0.892238] WSL (2 - init-systemd(NixOS)) WARNING: hostname set to tuvok-wsl in /etc/wsl.conf
[ 0.896559] WSL (2 - init-systemd(NixOS)) WARNING: /usr/share/zoneinfo/Europe/Bucharest not found. Is the tzdata package installed?
[ 0.902064] WSL (2 - init-systemd(NixOS)) ERROR: UtilExecCommandLine:757: popen(systemctl is-system-running | grep -E "running|degraded") failed 2
Here's the entire dmesg:
dmesg.log.txt
WSL version
WSL version: 2.6.1.0
Kernel version: 6.6.87.2-1
WSLg version: 1.0.66
MSRDC version: 1.2.6353
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.7019
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working