You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WSL2 init process only mounts /usr/lib/wsl/* for first-started distro #5506
Windows build number: 10.0.20152.0
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL2
Steps to reproduce
Run wsl --shutdown to clear any active WSL2 sessions
Start a WSL2 distro
Start a different WSL2 distro
The first distro has the paths /usr/lib/wsl/* mounted (good)
The second distro does not have the paths /usr/lib/wsl/* mounted (bad)
Expected behavior
The paths at /usr/lib/wsl/* should correctly mount for all distros regardless of start/boot order.
Actual behavior
Only the first-started distro has the DXGI library paths mounted. For example, when running Docker Desktop (with WSL2 backend) you cannot use the DXGI Machine Learning AI libraries in any distro because the /usr/lib/wsl/* paths are only mounted for the Docker distro because it was the first one started on bootup/login to Windows.
Reacted by therealkenc, Muhammad Ridwan Hakim, S.T., CPITA, ITPMCP and techtide
$ dmesg -H -T -P
[Fri Aug 5 15:52:51 2022] Microsoft 4.4.0-19041.1237-Microsoft 4.4.35
[Fri Aug 5 15:52:51 2022] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/drive
[Fri Aug 5 15:52:51 2022] : 19
[Fri Aug 5 15:52:51 2022] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/lib
[Fri Aug 5 15:52:51 2022] 19
chq-jeffsi@CHQ-JEFFSI-LX:~$ uptime
17:46:45 up 1:53, 0 users, load average: 0.52, 0.58, 0.59
chq-jeffsi@CHQ-JEFFSI-LX:~$
The mount command looks like:
QQQQQQ@QQQQQQQQQ:~$ uptime
17:46:45 up 1:53, 0 users, load average: 0.52, 0.58, 0.59
qqqq@@@@@@@:~$ sudo mount -t cifs //10.x.xx.xxx/mis_YYYY_YYYY\$ /mnt/q/ -o "username=QQQQ"
Password for //10.x.xx.xxx/mis_YYYY_YYYY\$:
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
$
Activity
therealkenc commentedon Jun 29, 2020
Confirmed here:
The dmesg looks like:
onomatopellan commentedon Sep 26, 2020
I think this can be considered as fixed in insider builds.
therealkenc commentedon Sep 26, 2020
/fixed 20190 (or thereabouts)
jeffsilverm commentedon Aug 6, 2022
I am still having this issue:
The mount command looks like:
onomatopellan commentedon Aug 7, 2022
Jeff Silverman (@jeffsilverm) Your distro is WSL1. Try in a WSL2 distro and it should mount
/usr/lib/wsl/.