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
  • 1
  • 1
  • 4
  • 1
    See this link and scroll down to answer by BW-userx.....https://www.linuxquestions.org/questions/linux-newbie-8/mount-error-cifs-filesystem-not-supported-by-the-system-4175593855/ – Moab Oct 13 '19 at 13:40
  • This may help https://github.com/microsoft/WSL/issues/4423. OP did it with `/etc/fstab`. – Biswapriyo Oct 13 '19 at 18:17
  • Thanks for the links, is all working now. Thanks for the help. – Darky Oct 15 '19 at 09:20

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,536
  • 7
  • 18
  • 33
tholesen
  • 246
  • 2
  • 3
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
  • 2
  • 5
-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