On my Windows-10 computer, I have a WSL (Ubuntu).
The WSL mount command gives (amongst others) the following result:
...
C:\ on /mnt/c type drvfs (rw,noatime,uid=1000,gid=1000,case=off)
On my Windows system, I have a drive mapping to a network directory:
Prompt> net use
Status Local Remote Network
---------------------------------------------------------------
...
OK Z: \\fileserver\verboden Microsoft Windows Network
On my WSL, I have the directory /mnt/z:
WSL Prompt>/mnt$ ls -ltra
total 0
drwxr-xr-x 1 root root 4096 May 26 2021 ..
drwxrwxrwx 1 scampsd scampsd 4096 Mar 4 08:22 c
...
drwxrwxrwx 1 scampsd scampsd 4096 Mar 4 16:05 z
drwxr-xr-x 1 root root 4096 Mar 4 16:05 .
I would like to mount /mnt/z to the mentioned network drive.
I've found a command, based on the cifs-utils library, but I don't have this library, installed on my computer and I can't download new libraries (apt install doesn't work).
Does anybody know a way to get this done?
Thanks in advance
Edit:
Quite quickly, two proposals have been done in order to help me out:
The second one mentions a command. This however does not seem to work, as you can see:
WSL Prompt$ sudo mount -t drvfs '\\fileserver\verboden' /mnt/z
[sudo] password for scampsd:
mount: /mnt/z: cannot mount \\fileserver\verboden read-only.
<3>init: (409) ERROR: UtilCreateProcessAndWait:501: /bin/mount failed with status 0x2000
The first comment mentions this not being possible, but this answer was written in 2016, and I hope it has been outdated since then
For your information, hereby the result of wslfetch, mentioning the build number of my WSL:
Windows 10 Linux Subsystem
scampsd@MyComputer
BUILD: 19045
BRANCH: vb_release
RELEASE: Ubuntu 20.04.2 LTS
KERNEL: Linux 4.4.0-19041-Microsoft
UPTIME: 2d 0h 7m