4

I am trying to mount a windows share folder that is on the local network on the windows ubuntu terminal The command is:

sudo mount -t cifs //xxx.xxx.x.xxx/foldername /mnt/x -o user=username

But I have:

mount error: cifs filesystem not supported by the system mount error(19): No such device

What can I do to mount my ubuntu terminal to my local windows share folder ?

Darky
  • 78

3 Answers3

13

I got it working with Microsoft's drvfs provider, as described in: https://blogs.msdn.microsoft.com/wsl/2017/04/18/file-system-improvements-to-the-windows-subsystem-for-linux/

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

Leave out the -o option with credentials, as it grabs those from Windows.

CaldeiraG
  • 2,623
  • 8
  • 21
  • 34
tholesen
  • 246
0

If you are using WSL 1, cifs may not be available. It is part of the kernel only under WSL 2. Source: https://unix.stackexchange.com/a/613615/154924

See information on changing the default WSL version and on changing it for already installed distroes e.g. here: https://winaero.com/set-linux-distro-version-to-wsl-1-or-wsl-2-in-windows-10/

jciloa
  • 211
-1

your Ubuntu can not find cifs in filesystem. it is not necessary to add cifs.ko to kernel. you can dreat it in menuconfig in kernel und choose cifs in filesystem. after that copy the new zImage