挂载samba/smb提示不支持的问题
[root@xyarch mnt]# mount.cifs -o user=xy,password=hahaha //192.168.199.139/xshare /mnt/smb
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
查看日志
说明:journalctl默认需要按右箭头才能查看完整,可以采用 journalctl -ex|tail 的方式查看
[root@xyarch mnt]# journalctl -ex
7月 08 12:05:33 xyarch kernel: CIFS: Attempting to mount //192.168.199.139/xshare
7月 08 12:05:33 xyarch kernel: 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.
7月 08 12:05:33 xyarch kernel: CIFS VFS: Dialect not supported by server. Consider specifying vers=1.0 or vers=2.0 on mount for accessing older servers
7月 08 12:05:33 xyarch kernel: CIFS VFS: cifs_mount failed w/return code = -95
正确的挂载方式
[root@xyarch mnt]# mount -t cifs -o vers=2.0,user=xy,password=hahaha //192.168.199.139/xshare /mnt/smb
验证已正常挂载
[root@xyarch mnt]# df -h /mnt/smb
文件系统 容量 已用 可用 已用% 挂载点
//192.168.199.139/xshare 1008G 494G 515G 49% /mnt/smb