Mounting Windows Share using SMB 2.1 or greater
If I use ver, it realy types "Invalid argument" but man mount.cifs says that the option name is "vers", not "ver".
vers=
SMB protocol version. Allowed values are:
· 1.0 - The classic CIFS/SMBv1 protocol. This is the default.
· 2.0 - The SMBv2.002 protocol. This was initially introduced in
Windows Vista Service Pack 1, and Windows Server 2008. Note
that the initial release version of Windows Vista spoke a
slightly different dialect (2.000) that is not supported....
it works for me in Mint 18.1:
mount -t cifs //192.168.1.1/public /home/user/Desktop/share --verbose -o vers=2.1,user=winuser
I found the available options in my local man page. Check this on your own machine to see what it supports. Once in the man page, type /vers=
to find that argument quickly.
man mount.cifs
I then mounted my share as follows:
sudo mount -t cifs //nas/homes/mike /media/mike/nashome -o vers=3.11,credentials=/home/mike/.ssh/.smb_nas
This required a credentials file with the following contents at /home/mike/.ssh/.smb_nas so I don't need to enter my password in the command (causing it to be stored in your command history in plain-text) or at the prompt (a nuisance).
username=mike
password=[REAL PASSWORD]
domain=WORKGROUP
I am mounting from a Synology NAS that supports SMB version 3.11. You would have to check your Windows (or whatever's hosting files via CIFS/SMB) version to see what it supports on the server-side.
Oddly enough, if the share computer is not on that IP address, you might get this same error. A change to the DHCP "moved" our NAS and that was the root of my problem. Once the share was back on the proper IP, errors stopped.