Samba

OpenWRT Samba 分享

  • October 20, 2020

當我嘗試安裝路由器的 samba 共享時

$ sudo mount.cifs //192.168.1.1/sda1 /mnt/hd2  -o guest

我得到錯誤,

mount error(2): No such file or directory

這是因為它正在嘗試 Samba 3.0 而我的伺服器不支持,

$ sudo mount.cifs //router/sda1 /mnt/hd2  -o vers=2.0,guest,vers=3.0
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
$ sudo mount.cifs //router/sda1 /mnt/hd2  -o vers=2.0,guest,vers=2.0

我只需要 vers=2.0

引用自:https://unix.stackexchange.com/questions/615368