我想在我的 Ubuntu 19.10 上安装 BlackArmor NAS 220/media/BlackArmor
解决方案
我遗漏了vers=1.0
最后一个cifs
参数。有效的命令是:
sudo mount -t cifs -o guest,vers=1.0 //192.168.1.3/Public /media/BlackArmor/
原始问题
我尝试按照此处的官方说明进行操作:https://www.seagate.com/em/en/support/kb/how-to-mount-nfs-and-cifs-file-systems-on-linux-with-the-seagate-blackarmor-nas-209791en/但它不起作用。
我也尝试遵循一些其他的说明,但没有任何效果。
这是我已经尝试过的:
$ sudo mount -t cifs -o noperm //192.168.1.3/Public /media/BlackArmor/
mount: /media/BlackArmor: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
$ sudo mount -t cifs //192.168.1.3/DataVolume/Public -o username=***,password=***,rw,nounix,iocharset=utf8,file_mode=0644,dir_mode=0755 /media/BlackArmor/
mount: /media/BlackArmor: special device //192.168.1.3/DataVolume/Public does not exist.
$ sudo mount -t nfs 192.168.1.3:/Public /media/BlackArmor
mount.nfs: Connection timed out
该设备本身正在运行,我可以访问它smb://ba-07***.local/
并查看所有内容。
有任何想法吗?
PS 我想在启动时安装它,但那是另一个问题。
更新 我现在也尝试过这个:
sudo mount -t cifs -o user=***,pass=***,rw,nounix,iocharset=utf8,file_mode=0644,dir_mode=0755 //192.168.1.3/Public /media/BlackArmor/
(这与第二个基本相同,只是我使用user
andpass
而不是username
and password
)我得到了这个:
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)
当我检查时,dmesg
我看到了这一点:
CIFS: Attempting to mount //192.168.1.3/Public/
No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
CIFS VFS: cifs_mount failed w/return code = -2
答案1
似乎我遗漏了vers=1.0
最后一个 cifs 参数。有效的命令:
sudo mount -t cifs -o guest,vers=1.0 //192.168.1.3/Public /media/BlackArmor/
如果您希望它位于 中/etc/fstab
,并且具有来宾用户 RW 支持:
//192.168.1.3/Public /media/BlackArmor cifs guest,uid=myuser,iocharset=utf8,file_mode=0777,dir_mode=0777,vers=1.0,noperm 0 0