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
Mapping network drive to \\wsl$\path does not work #3996
Your Windows build number: (Type ver at a Windows Command Prompt)
10.0.18362.53
In Windows explorer write address "\wsl$", select the displayed "Ubuntu" icon and select "Map network drive...". Try to map preselected path "Ubuntu" (grayed out, not editable) to driver letter W:. It will fail with "Windows cannot access Ubuntu" window.
Alternatively in command path try:
net use w: \\wsl$\Ubuntu\
System error 67 has occurred.
The network name cannot be found.
What's wrong / what should be happening instead:
Would be nice to be able to map drive letter to \wsl$\distro_path. If this is not yet possible then Explorer should not display "Map network drive..." menu entry if it is known to fail
TLDR: we first need to open the distribution (Ubuntu in my case), to do this, from you Windows start menu, click on the Ubuntu icon. Then the map network drive will work from File Explorer.
I am trying to map to a network drive because JetBrains' PyCharm debugger has difficulty showing current line-of-execution while debugging these files in a virtual wsl drive.
I imagine other programs have compatibility problems with operating on files in the wsl virtual drive as well.
Windows build: Microsoft Windows [Version 10.0.19043.1466]
Christophe Avonture (@cavo789) This is not the problem. The distribution is opened.
I can add \wsl$\debian or \wsl.localhost\debian but cannot add \wsl$\ssh-debian\home\username
So no path can be added. Strange.
Windows 11 build: 10.0.22572.0 (22572.1.amd64fre.ni_release.220304-1536)
Activity
Biswa96 commentedon Apr 24, 2019
Fixed in 18860 (Skip Ahead). See issue #3854
kapitanluffy commentedon Apr 29, 2019
I tried mapping a directory from WSL and it does not work
Biswa96 commentedon Apr 29, 2019
See the previous linked issue.
drillyme commentedon Oct 17, 2021
hi there,
build 22000
same issue, thou just adding \wsl$ works fine
cavo789 commentedon Nov 24, 2021
Hello
I had the same problem today: impossible to map the distribution; here is the solution: https://www.reddit.com/r/bashonubuntuonwindows/comments/hos80y/comment/fxleabf
TLDR: we first need to open the distribution (Ubuntu in my case), to do this, from you Windows start menu, click on the Ubuntu icon. Then the map network drive will work from File Explorer.
jfritz commentedon Jan 20, 2022
Hello. Same problem encountered here just today as lakhan pundhir (@drillyme) 's error message.
I am trying to map to a network drive because JetBrains' PyCharm debugger has difficulty showing current line-of-execution while debugging these files in a virtual wsl drive.
I imagine other programs have compatibility problems with operating on files in the wsl virtual drive as well.
Windows build: Microsoft Windows [Version 10.0.19043.1466]
Grarie commentedon Mar 17, 2022
Christophe Avonture (@cavo789) This is not the problem. The distribution is opened.
I can add \wsl$\debian or \wsl.localhost\debian but cannot add \wsl$\ssh-debian\home\username
So no path can be added. Strange.
Windows 11 build: 10.0.22572.0 (22572.1.amd64fre.ni_release.220304-1536)
cavo789 commentedon Mar 17, 2022
Hello
For my need, yes, this is the solution. Using what I've typed, I can map my folder.
Something else in your case. Hope you'll find.