Page 1 of 1

CIFS: "mount error(2): No such file or directory"

Posted: Mon Dec 17, 2012 3:11 pm
by ^rooker
[PROBLEM]
I'm trying to mount a CIFS share, which I've entered in /etc/fstab, but I receive the following error when I try to mount it:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I triple-checked all paths, credentials, etc. - and they were correct.


[SOLUTION]
I tried to mount a subfolder within the samba/cifs share, and there seems to be a problem with that.

So, I've removed the subfolder from the mount parameter and it worked.
Here are bogus fstab example lines:

Code: Select all

//server_name/share/subfolder /mnt/whatever cifs noauto,...
This one didn't work and throws the "no such file or directory" error.

After removing the subfolder after the "share" name, The share can be mounted without problems:

Code: Select all

//server_name/share /mnt/whatever cifs noauto,...
That's strange, because I am doing this successfully on Debian Squeeze (6.0.2), but it doesn't work at the moment on Ubuntu Precise (12.04.1). If I find out why this is not working, I'll update this thread.