我有 Centos 机器想要从 NAS 挂载文件,但是当传递访客用户时,它需要密码:
mount.cifs //192.168.96.2/b/files/ /mnt/files -o guests,nocase
在该虚拟机附近的另一台机器(centos)中,挂载成功。
甚至添加了这个 /etc/fstab :
//192.168.96.2/files /mnt/files cifs nocase,username=guests,password= 0 0
并看到启动日志:
localhost mount: mount error(112): Host is down
localhost mount: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
localhost systemd: mnt-files.mount mount process exited, code=exited status=32
localhost systemd: Failed to mount /mnt/files.
有什么问题?
答案1
最后我发现我应该使用选项 -o vers=1.0 进行安装