Samba mount using cifs method reported an error:
mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Check the Log:
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.
Reason and Solution:No cifs share version specified, cifs are divided into smb1.0/2.0/3.0/3.1
mount -t cifs //ip/data /test -o username=test,password=test,vers=3.0
The sec parameter setting may also lead to similar errors, you can check through man to select the sec parameter setting for that one
Read More:
- [Solved] Centos Mount Error: XFS: log mount mount/recovery failed : error -117
- [Solved] Ubuntu16.4Install vcs2016 Error: mount.vboxsf: mounting failed with the error: Invalid argument
- [Solved] Mount error: Mount: unknown filesystem type ‘defaults’
- How to Fix Ubuntu(Linux) mount error(22)
- Docker -v Directory Mount (How to Use)
- [Solved] chroot: failed to run command ‘mount’: Exec format error
- Ubuntu Run Error: not syncing : VFS: Unable to mount root
- [Solved] S3fs mount error: s3fs: unable to access MOUNTPOINT…
- [Solved] Linux Calls mmap Error: mmap: Invalid argument
- ERROR: Invalid subnet : invalid CIDR address: [How to Fix]
- [Solved] shc -f xxx.sh shc: invalid first line in scrip
- [Solved] Yum Install Software Error: Invalid configuration value: failovermethod=priority…
- [Solved] Fluent error: invalid command [initialize-flow
- Solution to gzip: stdin: invalid compressed data — format violated error in decompressing. Tgz file under Linux
- VMware: vmw_ ioctl_ Command error invalid parameter [How to Solve]
- [Solved] Except CvBridgeError,e:SyntaxError:invalid syntax
- [Solved] Environment: failed conda all InvalidVersionSpecError: Invalid version spec: =2.7
- [Solved] sys.stderr.write(f“ERROR: {exc}“) SyntaxError: invalid syntax
- [Solved] Invalid signature error for ROS repository while trying to do sudo apt-get update