Command:
Red Hat Enterprise Linux 6 - Cannot Mount Samba Share Using SMB2 Protocol. Title: Red Hat Enterprise Linux 6 - Cannot Mount Samba Share Using SMB2 Protocol. SYMPTOM: kernel: CIFS VFS: cifsmount failed w/return code = -95. Red Hat Enterprise Linux 6 - Cannot Mount Samba Share Using SMB2 Protocol Document ID: mmrkc-0127394-11 How helpful.
sudo mount -t cifs //<server>/<share> -o username=user@domain,password=**** /mnt/<mountpoint>
error message:
Unable to find suitable address.
The syslog has:
CIFS VFS: Error connecting to socket. Aborting operation.CIFS VFS: cifs_mount failed w/return code = -111
When I check out the documentation for mount via
man mount
![Dm500 Dm500](http://www.digital-kaos.co.uk/images/dk_infobar.png)
I see the following information about the error codes:
So does -111 mean the same thing as 1? If so, how can you diagnose if it's permissions or the command isn't correct?
Adam KalnasAdam Kalnas
5981 gold badge7 silver badges21 bronze badges
2 Answers
So it meant to tell you that you hit every error except 16.
On my Ubuntu 14.04, I had to add
Tankman六四Tankman六四
-o sec=ntlmv2
or it will always give me 111
error, but I don't need that option on my Ubuntu 15.04. Isn't it confusing?
5852 gold badges6 silver badges15 bronze badges
I recently started getting this error on Fedora 27.
Changing option vers=1.0 to vers=2.0 ( -o defaults,vers=2.0,rsize=...) solved the issue.
loopkinloopkin
![Dm500 cifs mount failed windows 10 Dm500 cifs mount failed windows 10](http://i073.radikal.ru/1207/98/143611a005d0.jpg)