[linux-cifs-client] Re: mount a sub-directory
Steve French (IBM LTC)
smfltc at us.ibm.com
Wed Aug 11 01:14:48 GMT 2004
The "device name" for cifs is \\server\share not \\server\share\path (NFS is one of
the few filesystems that allows such syntax). To achieve the effect of mounting a
subdirectory, mount to \\server\share use the --bind option of mount to associate the
subdirectory with a different path.
This did expose a bug in Samba though ....
mount -t cifs //server/share1/share2 ...
ends up being treated by the server as a request to mount
mount -t cifs //server/share2 ...
which is incorrect and will usually fail. This server bug is being fixed.
>
> From: Reinhold Jordan <r.jordan at asc.de>
> Subject: [linux-cifs-client] mount a sub-directory
> To: CIFS <linux-cifs-client at lists.samba.org>
> Message-ID: <41111334.3090705 at asc.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I'm trying to mount a sub-directory without success:
>
> mount.cifs //FILESERVER1/User/JordaRe1 /mnt/drive_U -o user=JordaRe1,pass=qwerty
>
> return this:
>
> mount error 22 = Invalid argument
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
>
> After some experiments I found that there should no
> sub-directory in this option. So
>
> mount.cifs //FILESERVER1/User /mnt/drive_U -o user=JordaRe1,pass=qwerty
>
> works fine. But I have no rights on this directory. And a
>
> cd /mnt/drive_U/JordaRe1
>
> does not work. I found also, that the konqueror from KDE can show
> this with
>
> smb://FILESERVER1/User/JordaRe1
>
> on another PC. But mounting is also impossible there. Is there any way to
> mount this?
>
> Regards, Reinhold
>
> --
> ASC telecom AG Research & Development
> Seibelstr. 2 F: +49-6021-5001-309
> D-63768 Hösbach E: r.jordan at asc.de
> Visit us on http://www.asctelecom.com
>
> ------------------------------
>
> _______________________________________________
> linux-cifs-client mailing list
> linux-cifs-client at lists.samba.org
> http://lists.samba.org/mailman/listinfo/linux-cifs-client
>
> End of linux-cifs-client Digest, Vol 9, Issue 4
> ***********************************************
More information about the linux-cifs-client
mailing list