Windows share folder mount error: cifs filesystem not supported by the system

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 ?


Solution 1:

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.