-
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
Could not mapping path \\wsl$\<distro_name> to network drive #3854
Comments
CMD.exe does not support UNC paths consistently. Use PowerShell. |
net use
to path under \\WSL$\
@0xbadfca11 - This should work, although there are some more changes inbound to the prerelease branch. Can you verify that the distribution is already running when you try this? |
@benhillis I definitely opened and have not stopped Ubuntu. |
This was a known issue. I believe net use and pushd will be fixed in a subsequent build. |
This should work in the 18342 19h1_release. The fix is making its way to the rs_prerelease branch and should be there soon. |
net use
to path under \\WSL$\
Fixed in 18865 (Skip Ahead). |
@0xbadfca11 That was fixed in 18860 build. BTW, does Explorer shows correct size of that drive? In my case, Explorer shows the 'Used Space' of the actual drive instead of my distribution installed size. Is it by-design? Another thing, |
This is by design--we don't track the amount of space the distro is using. The init process will timeout after a while, or you can terminate it manually with |
Also just a note, unable to map a directory in the distro to a drive but can map the distro share. Possibly by design. |
I'm suffering the same phenomenon. |
Someone should definitely pin this message from @LiamKarlMitchell as it's probably the main reason people see this error now. You can only map a drive to a WSL root, not to any arbitrary dir inside that file system. |
Your Windows build number:
Microsoft Windows [Version 10.0.18836.1000]
What you're doing and what's happening:
In command prompt, could not pushd under
\\wsl$\
.Other file I/O or application can access under
\\wsl$\
.I tried "Fresh Start" from Windows Defender app. But this did not solve it.
pushd does change current directory under
\\wsl$\
.like this tweet.
Strace of the failing command, if applicable:
N/A
For WSL launch issues, please collect detailed logs.
lxcore.zip
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: