mount.cifs - mount error 20 = Not a directory
Hi all,
I'm trying to mount a Win2k3 ADS fs via the command below: mount.cifs //<server>/<share> -o username=xxx,password=yyy,domain=zzz Unfortunately, i'm getting mount error 20 = Not a directory Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) please help thanks! |
1. Have you alreaday run kinit to get a key
2. is the server path correct 3. if all that is good use mount -t cifs //server/share /mnt/mntpoint -o username=username that will ask for the password. This works fine on my systems Soule |
I can see a problem with the following :
mount.cifs //<server>/<share> -o username=xxx,password=yyy,domain=zzz which should be something like mount.cifs //<server>/<share> /<mnt/<point> -o username=xxx,password=yyy,domain=zzz Not sure if this helps but I have the same problem and no idea why. I am using RHEL 4 update 3. - Kurt Edited: I know the mount point exists because I can connect to it via nautilus with no problems at all and smbclient -I 192.168.1.1 -L //fs1 works fine and list the share. |
Folling the trail of thought, it seems as though cifs is not a complete replacement for the old SMB mounting so the problem I suggest is that you should be using the smbfs filesystem and not cifs. You can do this by using mount.smbfs which should then mount it. Now I am getting a corruption with the directory listing which I guess is to do with codepages, etc. If I can figure this out then maybe I can get it to work .
- Kurt |
I am suffering with exactly the same issue. using mount.cifs I get the error 20.... and using mount.smbfs it seems to work but browsing the dir just shows rubbish. If you get any further please post your findings
|
I had the same problem and resolved it by making sure that I had the correct SHARE PERMISSIONS for the user I was trying to mount it with.
|
Point of clarification
Make sure that the user has permission to both access the share and the folder within Windows (Sharing and Security tabs).
|
The following solved this problem for me. (It may work for you but clearly only if this file already exists)
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled |
issue solved :-)
thanks andrewupton !
this "echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled" solved my problem. i use debian sid (updated) with mount (util-linux-ng 2.13.1-rc1) i was trying to connect to a network storage (on my local lan) that is exposing a windows share with samba/cifs protocol. it is an ide storage with external usb/Ethernet which is exposing windows share or ftp server on the network. i use kde 3.5.9 kio smb to browse it easily and i tried to mount it from the command line but could not... until now :-) super thanks :-) |
Thank YOU andrewupton!
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
worked great to solve my little Tuesday morning issue. Thank you very much! |
Guys, I have a strange problems with cifs and Samba. Maybe you could help me as well.
I can write new files on a share, I can update them but I can't write on special occasions. And because of this thunderbird (with a remote profile) does not work as well. Look: Code:
martel@nebula:~$ echo agata > Shared/test5.txt Code:
//share/folder /home/martel/Shared cifs defaults,uid=martel,gid=users,file_mode=0666,dir_mode=0777,credentials=/home/martel/.cifs-credentials |
All times are GMT -5. The time now is 05:39 PM. |