One from many
cifs mount error 11 = Resource temporarily unavailable
.
.
If you are to mount a Windows resource from Linux using cifs and getting mount error 11:
mount -t cifs //111.222.333.444/share /mnt/mount_directory -o "username=username,password=xxxxxx"
mount error 11 = Resource temporarily unavailable
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Do you have another cifs share mounted from the same remote machine (and possibly as the same user), e.g.:
//111.222.333.444/other_share /mnt/other_mount_directory
If you do, try:
ls /mnt/other_mount_directory
This is due to the fact that the other share may be in state DISCONNECTED:
\\111.222.333.444\other_share Uses: 1 Type: NTFS DevInfo: 0x20 Attributes: 0x700ff
PathComponentMax: 255 Status: 3 type: DISK DISCONNECTED
A simple ls of the other share could just allow the mount to work, when tried aagin.
ls /mnt/other_mount_directory
mount -t cifs //111.222.333.444/share /mnt/mount_directory -o "username=username,password=xxxxxx"
To debug you can enable debugging on CIFS:
echo 1 > /proc/fs/cifs/cifsFYI
Then try your mount and check the debug info:
cat /proc/fs/cifs/DebugData
Ironically, even if the other mount being in state DISCONNECTED and the ls and mount work, you may find that the info in /proc/fs/cifs/DebugData still reports type: DISK DISCONNECTED for both shares... but they work.
Do not forget to disable debugging:
echo "" > /proc/fs/cifs/cifsFYI

