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
  • 11,918
  • 44
  • 119
  • 208
Agustin
  • 323
  • 1
  • 2
  • 8
  • 2
    Please specify what version of Windows 10 you are using, when you provide this information as an edit to your question, also include vital information about your WSL environment. In the accepted answer to the possible duplicate, the author wrote the commands as two seperate command, but you wrote them as a single command. Is there a reason? Before running the 2nd command did you verify the mkdir was sucessfull? You are doing this as root I presume? – Ramhound Sep 12 '19 at 15:41
  • I did run them as 2 separate commands and the first one now says "mkdir: cannot create directory ‘/mnt/share’: File exists" when I try to run it again which I assume means it has worked. I'm using the sudo command at the start, is that different to doing it as root? Thanks – Agustin Sep 13 '19 at 08:06
  • What vital information about my WSL environment? I'm using Ubuntu 18.04 – Agustin Sep 13 '19 at 08:08
  • Mainly your Windows 10 version and the WSL distribution which you provided only 3 hours ago. – Ramhound Sep 13 '19 at 11:23
  • You should take the time to properly format the command you ran in that case. – Ramhound Sep 13 '19 at 11:31

3 Answers3

9

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,067
  • 3
  • 13
  • 23
Agustin
  • 323
  • 1
  • 2
  • 8
-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
  • 11,918
  • 44
  • 119
  • 208
-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.