LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2006, 12:11 AM   #1
da_kidd_er
Member
 
Registered: Feb 2003
Posts: 52

Rep: Reputation: 15
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!
 
Old 05-11-2006, 07:38 PM   #2
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
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
 
Old 02-12-2007, 08:08 PM   #3
kheine7
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
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.

Last edited by kheine7; 02-12-2007 at 08:09 PM.
 
Old 02-12-2007, 08:42 PM   #4
kheine7
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
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
 
Old 03-05-2007, 01:43 PM   #5
esvcx
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
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
 
Old 03-07-2007, 10:14 AM   #6
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
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.
 
Old 01-12-2008, 06:50 PM   #7
chprpipr
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Point of clarification

Make sure that the user has permission to both access the share and the folder within Windows (Sharing and Security tabs).
 
Old 06-09-2008, 07:18 AM   #8
andrewupton
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
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
 
Old 06-18-2008, 02:00 PM   #9
nadavkav
LQ Newbie
 
Registered: Nov 2005
Location: Israel, Kfar Sirkin
Distribution: Fedora,Debian,Ubuntu
Posts: 12

Rep: Reputation: 0
Smile 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 :-)
 
Old 09-02-2008, 06:36 PM   #10
PRFunky
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Smile Thank YOU andrewupton!

echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
worked great to solve my little Tuesday morning issue.

Thank you very much!
 
Old 10-16-2008, 12:55 PM   #11
Valgoerad
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: Disabled
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 
martel@nebula:~$ cat Shared/test5.txt
agata
martel@nebula:~$ echo agata > Shared/test5.txt 
bash: Shared/test5.txt: Not a directory
martel@nebula:~$ echo agata >> Shared/test5.txt 
martel@nebula:~$ cat Shared/test5.txt
agata
agata
martel@nebula:~$ echo agata > Shared/test5.txt 
bash: Shared/test5.txt: Not a directory
martel@nebula:~$ ls -l Shared/test5.txt
-rw-rw-rw- 1 martel users 12 2008-10-16 19:56 Shared/test5.txt
My share looks like this:

Code:
//share/folder /home/martel/Shared cifs    defaults,uid=martel,gid=users,file_mode=0666,dir_mode=0777,credentials=/home/martel/.cifs-credentials

Last edited by Valgoerad; 10-16-2008 at 12:56 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount smbfs vs cifs Zurvan Linux - Networking 2 12-29-2006 02:46 PM
Fedora 5 mount.cifs showing incorrect permissions Peter Gordon Linux - Software 0 04-18-2006 01:15 AM
Unable to mount via cifs but fine with sbmfs drewhead Slackware 6 01-27-2006 09:31 AM
Mount CIFS partition as user: Invalid or missing username paco36 Linux - General 2 07-04-2005 12:31 AM
long remote mount time for samba with cifs command luna6 Linux - Networking 1 04-01-2005 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration