Samba掛載報錯mount error(22): Invalid argument
Samba掛載采用cifs方式報錯:mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
查看系統(tǒng)日志:
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共享的版本,cifs分為smb1.0/2.0/3.0/3.1
mount -t cifs //ip/data /test -o username=test,password=test,vers=3.0
sec參數(shù)設置也可能導致類似報錯,可通過man查看選擇sec參數(shù)設置為那一項

標簽: