[linux-cifs-client] cifs: mount error 20 = Not a directory, while it works with smbclient

Chris G cl at isbd.net
Wed Nov 21 23:12:13 GMT 2007


On Wed, Nov 21, 2007 at 10:56:56PM +0100, Andreas Hegyi wrote:
> 
>    On my compies network I want to mount a Windows share under my Linux
>    box. While I can access the share with smbclient, I cannot mount it
>    with mount -t cifs. The only reason I can imagine is that for the
>    share that I mount I don't have permission to have a directory listing
>    (see result of smbclient below), but I *can* change to the
>    subdirectory ( in this case 'iedereen', which is actually the relevant
>    one for me). mount -t cifs says that the share is not a directory. Any
>    suggestions how I could get mount working?

Sounds like my problem with a Freecom network drive (which is an SMB
server).

Try the following (as root) on your Linux client:-

    modprobe cifs
    echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
    mount /mountPoint

Where /mountPoint goes with an entry in /etc/fstab like:-

    //winmachine/share          /mountPoint                cifs   noauto,user,password="" 0 0


You can of course put the full mount.cifs command on the command line
and not bother with the /etc/fstab entry.


-- 
Chris Green


More information about the linux-cifs-client mailing list