-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL automount failure #4101
Comments
Your wsl.conf should be multiple lines, like this:
|
@benhillis thanks for advise, it looks exactly as yours, it got broken after I submitted the issue |
however manual mount works just fine:
|
I am seeing the same thing. My wsl.conf looks like this (trying to set the metadata arguments). I also am able to manually mount afterwards. [automount] |
i got this issue on WSL 2 too ERROR: UtilCreateProcessAndWait:655: /bin/mount failed with status 0x insiders build 19624 |
I'm getting the same on insiders build as well |
+1 for me as well under alpine on lastest win10 insiders fast |
+1 for me too (builds 19624 and 19628) |
I see these errors in dmesg: |
@SvenGroot has some recent fixes in this path that are on the way to Insider Fast. |
Glad to hear that.
|
thanks, any estimate on when this will go out? it broke the development envs of multiple devs, I know we shouldnt had been on the "fast" builds but this windows release is going out soon never expected to be breaking stuff. |
+1. thx all, any ideas when this is solved. all my work is stopped because no distro is working now! Any solution in between to work! we had also docker integrated with wsl 2. and after last windows update, not work any more! |
subbing |
Same here, my computer actually shuts down the first time whenever I turn it on from a cold boot, it restarts and comes back on immediately. The only thing I did was update Windows. When it comes back on, this is the only error I found (the one this issue is about) and several programs fail to initialize. Not sure if it's related at all, still looking into it. |
I was able to resolve this by removing/renaming the config file at %USERPROFILE%.wslconfig , and shutting down wsl (wsl --shutdown) . I found this workaround here: |
I have no .wslconfig on my %USERPROFILE% and still not work here. |
Is there any workaround while you get the fix out? I tried @glevy's suggestion but no luck. |
MS delivers driver dated the year 2006 for USB3 external SSD drive with capacity 2 Tb with Windows 10 release 2005 dev release. How do you suppose it can work? Who knows about USB 3 and 2Tb SSD storage that year? |
+1 |
Same issue |
@benhillis what's the exact version? I'm running on Fast already |
@benhillis Thanks. I'm on build 19640.mn_release.200530-1731 and still doesn't work. Is it a random issue or a known bug of particular builds? |
Can confirm issue is still persisting on |
I have to re-integrate my Ubuntu 20.04 every day, maybe, after restart on build 19640. |
@SvenGroot - Could you look into this more please? |
There are two issues being mentioned in this thread. The OP's issue is in WSL1, and then @yelkarama mentioned a WSL2 issue that should be fixed in more recent builds. Is anyone still seeing an issue with WSL2 in build 19640, and if so could they please post the output of For @eugenetaranov's original WSL1 issue, the only thing I can think of that might affect this is the formatting of wsl.conf. Make sure the file is using Unix line endings (LF), not Windows line endings (CRLF). If you're not sure, try recreating the file using a Linux editor (vi, emacs, nano, whatever you prefer). If that does not help, can you verify that automounting works if you remove wsl.conf, and also collect detailed logs using step 8 here while reproducing the issue. |
I can't remember which build. I think it happened since it asks me to run Suuuper long log but that repeated the same error for each drive:
Your comment making me try it on WSL1 and it works. So only WSL2 failed |
@SvenGroot Is the solution to turn UAC on? Is the lowest level sufficient? Right now I'm unable to get work done on my work computer. |
|
Happening to me on [Version 10.0.20175.1000]. WSL 2 18.04 dmesg.log > https://pastebin.com/X6d8pbky |
I had the same when I tried to use a device that is not supported by Windows. The device itself is 100% functional because when I connected it directly to my router running media server it started to work out-of-the-box. |
everybody, Try to turn ON/OFF UAC and run into Super Admin. I don't why but my Windows back to normal now (and UAC off, everything back to normal as before) |
I tried many things including device manager, storage manager, etc. Most of Windows utilities hang when trying to manage large disks. |
I believed you're a different problem than WSL? To check your drive format. It should be FAT32 / exFAT / NTFS for windows. FAT32/exFAT is better for cross-platform ** backup it before actions. |
Tried toggling UAC on both normal and super admin accounts, doesn't change anything. |
Sad :( Someone shared an auto-mount script on Reddit |
I see the drive format of my SSD connected to my WiFi router as NFS via the router's configuration UI. It is the factory formatting of my SSD. |
I agree that it is not a WSL bug because the max size of the distro file system is published - 256 Gb. But this is a critical function gap - the user shall be able to use external disks of any size. The problem is:
|
@KayLeung I can't mount manually and that script doesn't do anything for me unfortunately. edit: Managed to fix it by reinstalling this update https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel and shutting down/restarting wsl. |
UPDATE: a full system restart with 20175 solved the problem. Getting the dmesg failure under U18 after a recent update: WSL1. However my windows mount is properly mounted in every way I can see. No /etc/wsl.conf file, I was wondering if I had an old smb mount around somewhere, but I don't have an fstab. I was experimenting with mounting samba servers through WSL but I don't think it was on this machine / WSL instance. It would be nice if the error message said which /bin/mount entry, or is that always the root? |
i am with 20190 still have same problem, but you can use this command for a while : |
I had the same problem as everyone else. |
after upgrading to Microsoft Windows [Version 10.0.20201.1000] WSL2 failed to mount on startup.
|
Thank you, I am on Version 2004 (OS Build 20241.1000) same issue. I ran powershell as admin
then I restarted my pc and wsl mounted correctly on start up. |
My wsl version doesn't have the |
I have the same problem. how can I fix this ? this is my .wslconfig file : [wsl2] |
@ted-marozzi wrote:
Verified that this worked for me... In my case I didn't need the elevated powershell (probably due to the way I installed WSL). |
I solved by:
|
This fixed it for me, TYVM! |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Your Windows build number: (Type
ver
at a Windows Command Prompt)Version 10.0.18362.113
What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
Created /etc/wsl.conf with automount options:
cat /etc/wsl.conf [automount] enabled = true options = metadata
terminated wsl with
wsl.exe --terminate ubuntu
After wsl/ubuntu is launched, windows volumes are not mounted at all:
mount rootfs on / type lxfs (rw,noatime) none on /dev type tmpfs (rw,noatime,mode=755) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime) proc on /proc type proc (rw,nosuid,nodev,noexec,noatime) devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,gid=5,mode=620) none on /run type tmpfs (rw,nosuid,noexec,noatime,mode=755) none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,noatime) none on /run/shm type tmpfs (rw,nosuid,nodev,noatime) none on /run/user type tmpfs (rw,nosuid,nodev,noexec,noatime,mode=755) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime) cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755) cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
dmesg [ 0.010291] Microsoft 4.4.0-18362.1-Microsoft 4.4.35 [ 0.113173] <3>init: (1) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0 [ 0.113181] 2000 [ 0.113492] <3>init: (1) ERROR: LogException:23: FS: Could not start file system server. Operation not permitted @.\plan9.cpp:33 (TranslatePath) [ 0.133961] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Program Files\WindowsApps\CanonicalGroupLimited.UbuntuonWindows_1804.2019.521.0_x64__79rhkp1fndgs [ 0.134017] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Windows\system3 [ 0.134081] init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Windows [ 0.134127] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Windows\System32\Wbe [ 0.134180] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0 [ 0.134227] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Windows\System32\OpenSSH [ 0.134288] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Program Files\Git\cm [ 0.134335] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Users\e\AppData\Local\Microsoft\WindowsApp [ 0.134382] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Users\e\AppData\Local\Programs\Microsoft VS Code\bi [ 0.134442] <3>init: (4) ERROR: UtilTranslatePathList:2154: Failed to translate C:\Users\e\AppData\Local\hyper\app-3.0.2\resources\bi
Windows volumes should be auto mounted with metadata option.
Thank you.
The text was updated successfully, but these errors were encountered: