Windows 共享文件夹挂载错误:系统不支持 cifs 文件系统

Dar*_*rky 4 mount cifs ubuntu sharing windows-subsystem-for-linux

我正在尝试在 windows ubuntu 终端上挂载本地网络上的 windows 共享文件夹命令是:

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

但我有:

挂载错误:系统不支持 cifs 文件系统挂载错误(19):没有这样的设备

我该怎么做才能将我的 ubuntu 终端安装到我的本地 Windows 共享文件夹?

小智 11

我让它与微软的 drvfs 提供商合作,如: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
Run Code Online (Sandbox Code Playgroud)

省略-o带有凭据的选项,因为它会从 Windows 中获取凭据。