11

I am using Windows 10 version 1903 OS Build 18362.356 and WSL (Ubuntu 18.04). I can access files in my C: drive just fine, however there is a a drive under the "Network" section on windows explorer that I can't find anywhere. I am aware that this has been asked here before but when I try the answer: https://superuser.com/a/1261563/1089317

i.e.:

$ sudo mkdir /mnt/share
$ sudo mount -t drvfs '\\server\share' /mnt/share

(which I did as 2 separate commands, the 1st one runs fine) and I get the error after the 2nd statement:

mount: mnt/share: mount point does not exist. <3>init: (5524) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0x2000 No error information

any help will be very appreciated.

Thanks

jww
  • 12,722
Agustin
  • 333

3 Answers3

10

Edit: run: net.exe - I believe this located the shared drives

Run sudo mkdir /mnt/share

Run sudo mount -t drvfs '\\server\share' /mnt/share

Note: \\server\share will be the name of your shared drive which you should be able to see when you run net.exe.

It worked for me after that, just cd to /mnt/share and all the files should be accessible now.

It has worked now, I had to use the command net.exe first and then it did find the shared drives. But it looks like I have to run the command sudo mount -t drvfs '\\server\share' /mnt/share every session, which I guess is not the end of the world. Just annoying.

Clonkex
  • 1,156
Agustin
  • 333
-1

Here is the OP's answer that was added to the question:

It has worked now, I had to use the command net.exe first and then it did find the shared drives. But it looks like I have to run the command sudo mount -t drvfs '\server\share' /mnt/share every session, which I guess is not the end of the world. Just annoying.

jww
  • 12,722
-3

Steps to Access Files on Network Drive from Windows Subsystem for Linux

Very simple steps to control files on Network Drive from WSL are as follows:

  1. At first, tap down both the Windows and the letter E key at a time. This will open the File Explorer on the screen.
  2. After that, from the left-hand side panel click on Linux and then hit on the Distros shortcut, that is present at the right-hand side of the window.
  3. Next, open the running WSL distro (ex: Ubuntu) folder, to see the files that you want.
  4. Further, double-click on the folder named as Home under the list, to open.
  5. Now, open the folder.

That's it.