当我尝试挂载路由器的 samba 共享时
$ sudo mount.cifs //192.168.1.1/sda1 /mnt/hd2 -o guest
我收到错误,
mount error(2): No such file or directory
答案1
这是因为它正在尝试 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