-
Notifications
You must be signed in to change notification settings - Fork 821
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
Updates to wsl.conf no longer immediate #3994
Comments
Thanks for filing! In 1903 we made a change to keep distribuitons running for a while after your last client exits. You could have hit this in 1809, but the Windows was very small. You'd also hit this if you launched something in the background (keeping the distro alive). Work-around is to manually terminate your distro after modifying /etc/wsl.conf using: |
that makes sense, thanks for the quick response! |
Could you explain the rationale behind this? |
^--- I maybe can explain it. The all-singing all-dancing WSL Now, imagine if instead you fired up Rather than leave the instance running forever once started, the devs (apparently) opted for a timeout. Or something. [Since I am here, I finally got around to trying out Chalking up by-design for lack. Terminating isn't really a work-around somuch as it is de-facto SOP. Doing this all "different" is doable, mind, but would be a big ask; the scope of which would go well beyond remounting |
Execute command |
@mattiasghodsian - |
None of this works for me. I've updated my /etc/wsl.conf to:
Then when I run
If I try to unmount /mnt/c. It also does not work.
So how am I supposed to get wsl.conf to activate? I'm running on windows 1909 build. And this is on a literal fresh restart of the computer. |
Ok I was able to umount /mnt/c after another restart. But relaunching bash after wsl.exe --terminate ubuntu, the mount options are still not applied. I had to do this:
|
False alarm! I had a typo in |
For my part I use the plain Ubuntu 18.04 LTS, and Win10 Home (constantly updated) 64bit. Can anyone also elaborate what to specify as . The uname command only says Linux and not anything like Ubuntu. |
Would it make sense to add a note that this step is needed to the documentation on setting the mount options? https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configure-per-distro-launch-settings-with-wslconf |
Please fill out the below information:
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.18362.30]
editing wsl.conf to add this automount section for mounting the C drive with metadata support:
exit and relaunch WSL for the drive to re-mount
Drive is not remounted with new options. After an unknown period of time (~5 mins?) the change takes effect. This behaviour is seems new in windows 10 "1903". Previous build (1809 - something) the change would take effect immediately upon reload of wsl.
terminating wsl with new command
wsl.exe --terminate Ubuntu
causes the change to apply immediatelyforcibly dismounting and re-mounting the volume with the same mount options works as well (though technicallly not reading the wsl.conf?)
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: