Cannot open a file from WSL2 share with Notepad++

  • Hi,

    I have a WSL 2 drive mounted in Windows 10:


    Te problem is that if i try to open any file with Npp then i get the following error:

    The same file opens just fine with other editors. Is there a way to make this work with Npp?


  • @Raigo-Tingas ,

    I don’t know the specific WSL2 technology for network drives.

    However, I use Notepad++ on a daily basis to edit files throughout my network at work, including mounts from other windows machines and mounts from Linux samba servers. I usually use the full UNC path (\machine\path\to\file.txt) rather than mapping to a drive letter (like your Z:), but I can also use a mapped network drive without difficulty.

    As far as I know, if Windows can see then file, then Notepad++ should be able to see the file.

  • @PeterJones

    I also have no problems with regular network drives. This only seems to occur with WSL2 mounts.

    A colleague of mine is having the exact same problem on his setup so its not just me. Strange thing is that this only affects Npp, regular Notepad and all other editors are able to open and edit the files just fine.

  • Note that the message refers to Folder and not File. I tried to lookup it up in the code. Didn’t reverse engineer the entire mess but it seems to be related to snapshot and/or backups.

    Try disable them both and see if the file opens.
    If so try to find the which setting exactly cause the failure.

  • same problem - notepad don’t found wsl disc and files. windows notepad open wsl files without any problems

    On screen explorer and npp file > open.

  • @WinterSilence

    Works fine for me with Notepad++ 8.1.4 64-bit using the network drive approach:


    as well as the net use drive letter approach:



  • @Michael-Vincent i found problem - i open NPP before add disc and it’s not displayed

Log in to reply