WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Mapping network drive to \\wsl$\path does not work

Open jonitis opened this issue 7 years ago • 8 comments

  • 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

jonitis avatar Apr 24 '19 18:04 jonitis

Fixed in 18860 (Skip Ahead). See issue #3854

Biswa96 avatar Apr 24 '19 19:04 Biswa96

I tried mapping a directory from WSL and it does not work

image

kapitanluffy avatar Apr 29 '19 07:04 kapitanluffy

See the previous linked issue.

Biswa96 avatar Apr 29 '19 07:04 Biswa96

I tried mapping a directory from WSL and it does not work

image

hi there,

build 22000 same issue, thou just adding \wsl$ works fine

drillyme avatar Oct 17 '21 11:10 drillyme

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.

cavo789 avatar Nov 24 '21 08:11 cavo789

Hello. Same problem encountered here just today as @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]

jfritz avatar Jan 20 '22 18:01 jfritz

@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)

Grarie avatar Mar 17 '22 18:03 Grarie

Hello

@cavo789 This is not the problem.

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.

cavo789 avatar Mar 17 '22 18:03 cavo789