Skip to content

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

Closed

Description

@jonitis
  • 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

Activity

  1. Biswa96 commented on Apr 24, 2019

    @Biswa96

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

  2. kapitanluffy commented on Apr 29, 2019

    @kapitanluffy

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

    image

  3. Biswa96 commented on Apr 29, 2019

    @Biswa96

    See the previous linked issue.

  4. drillyme commented on Oct 17, 2021

    @drillyme

    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

  5. cavo789 commented on Nov 24, 2021

    @cavo789

    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.

  6. jfritz commented on Jan 20, 2022

    @jfritz

    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]

  7. Grarie commented on Mar 17, 2022

    @Grarie

    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)

  8. cavo789 commented on Mar 17, 2022

    @cavo789

    Hello

    Christophe Avonture (@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions