Mount Windows Network Disk to WSL

Backgroud

Mount samba directly in wsl like linux is difficult

1
2
3
4
Password for root@//filesystem.domain/root:
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Solution

But is easily mount net disk in windows file manager. So if your windows share is already mapped to a drive in the Windows host, it can be even simpler.

Suppose you already mounted the share on Z:. In that case the following will work:1

1
2
sudo mkdir /mnt/z
sudo mount -t drvfs 'Z:' /mnt/z

Reference

Licensed under CC BY-NC-SA 4.0
最后更新于 2021-09-24 14:21 +0800
使用 Hugo 构建
主题 StackJimmy 设计