error log
execute an order
sudo mount -t cifs //ip/sharename /tmp/1 -o username=11,password=tmp
error log
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
solution
View root cause:
tail -f /var/log/kern.log
Note:
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.
The solution has been specified in the prompt, and the version of cifs shared is not specified, cifs is divided into smb1.0/2.0/3.0/3.1.
Solution
sudo mount -t cifs //ip/sharename /tmp/1 -o username=11,password=tmm,
vers=1.0
Read More:
- [Solved] Samba Mount Error: mount error(22): Invalid argument
- Linux: How to Fix undefined reference to `itoa’
- Ubuntu Run Error: not syncing : VFS: Unable to mount root
- linux(aarch64): How to Fix kettle Startup Error Issue
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- How to Fix Oracle listener error Linux error: 111: connection reused
- [Solved] Centos Mount Error: XFS: log mount mount/recovery failed : error -117
- Docker -v Directory Mount (How to Use)
- [Solved] Ubuntu16.4Install vcs2016 Error: mount.vboxsf: mounting failed with the error: Invalid argument
- [Solved] Mount error: Mount: unknown filesystem type ‘defaults’
- Ubuntu Server: How to Install Chrome
- EasyConnect linux (ubuntu 20.04) Run Error [How to Solve]
- Linux: How to Solve sudo operate Error
- How to Solve labelme Install Error in Ubuntu
- linux Ubuntu Error: No command ‘setenv‘ found
- How to Fix error 28 from storage engine
- How to Solve Xmind Install Error in Ubuntu System
- How to Fix No default.conf file in conf.d after Installing Nginx
- Linux: How to Solve vim ~/.bashrc Execute Error
- How to Solve Ubuntu “Failed to fetch” Error