我想在我的 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
似乎我缺少
vers=1.0
最后一个 cifs 参数。有效的命令:如果你想要它
/etc/fstab
,并且有来宾用户 RW 支持: