Command:
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
I see the following information about the error codes:
RETURN CODES
mount has the following return codes (the bits can be ORed):
0 success
1 incorrect invocation or permissions
2 system error (out of memory, cannot fork, no more loop devices)
4 internal mount bug
8 user interrupt
16 problems writing or locking /etc/mtab
32 mount failure
64 some mount succeeded
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?
111 = 64+32+8+4+2+1
So it meant to tell you that you hit every error except 16.
On my Ubuntu 14.04, I had to add -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?