microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.26k stars 812 forks source link

WSL no longer able to mount windows drives after update to MS store version #9811

Closed Ikariusrb closed 1 year ago

Ikariusrb commented 1 year ago

Windows Version

Microsoft Windows [Version 10.0.19045.2728]

WSL Version

WSL version: 1.1.3.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.90.1

Distro Version

Ubuntu 20.04.5 LTS

Other Software

No response

Repro Steps

Ran upgrade of WSL to latest version as advised in terminal via "wsl --upgrade" if I recall- cannot find it in command history

Expected Behavior

After update I expect it to continue working, including ability to mount my windows drives

Actual Behavior

After the upgrade (and a full reboot) WSL is no longer able to mount my windows drives.

The messages on starting an ubuntu terminal:

<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Program Files (x86)\Common Files\Oracle\Java\javapath
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Windows\system32
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Windows
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Windows\System32\Wbem
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0\
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Windows\System32\OpenSSH\
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Program Files\Git\cmd
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Program Files\dotnet\
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Users\rbecker\AppData\Local\Microsoft\WindowsApps
<3>WSL (2703) ERROR: UtilTranslatePathList:2721: Failed to translate C:\Users\rbecker\AppData\Local\Programs\Microsoft VS Code\bin
Failed to mount C:\, see dmesg for more details.
Failed to mount D:\, see dmesg for more details.
Failed to mount E:\, see dmesg for more details.

Diagnostic Logs

Found the following in dmesg:

[    5.062207] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[    5.114959] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[    5.126791] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[    5.142426] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[    5.179143] /sbin/ldconfig.real:
[    5.179145] /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

[    5.264567] 9pnet: Could not find request transport: virtio
[    5.264610] WSL (1) ERROR: MountWithRetry:307: mount(drvfs, /mnt/c, 9p, 0x00000400, cache=mmap,msize=262144,trans=virtio,aname=drvfs;path=C:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    5.264611] ) failed: Invalid argument
[    5.264764] 9pnet: Could not find request transport: virtio
[    5.264794] WSL (1) ERROR: MountWithRetry:307: mount(drvfs, /mnt/d, 9p, 0x00000400, cache=mmap,msize=262144,trans=virtio,aname=drvfs;path=D:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    5.264795] ) failed: Invalid argument
[    5.264933] 9pnet: Could not find request transport: virtio
[    5.264954] WSL (1) ERROR: MountWithRetry:307: mount(drvfs, /mnt/e, 9p, 0x00000400, cache=mmap,msize=262144,trans=virtio,aname=drvfs;path=E:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    5.264955] ) failed: Invalid argument
[    5.363305] systemd[1]: systemd 245.4-4ubuntu3.20 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
benhillis commented 1 year ago

/logs please

microsoft-github-policy-service[bot] commented 1 year ago

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

antgustech commented 10 months ago

Did you ever solve this?