On Tue, Oct 31, 2006 at 02:59:08AM +0000, fuzzix wrote:
> Hi all,
>> I'm trying to mount a Windows share, which I am able to browse
> successfully with smbclient, with mount.cifs. I run smbclient as follows:
>> $ smbclient //host/share$ -U user -D dir -W DOMAIN
>> -D being the remote directory changed to before the smbclient shell
> appears - this works fine.
>> When I specify the remote directory in the share's path...:
>> # mount.cifs //host/share$/dir local/ -o user=user,domain=DOMAIN
>> ...I get "mount error 6 = No such device or address" - it's no longer a
> recognised share.
>> Is there a way to specify the remote directory in the mount.cifs
> parameters in the same manner as with smbclient?
>Nope ... pure and simple - you mount a share. It'd be easier to define a
new share from the subdirectory you really want ..
As you say - smbclient has a -D option, which literally does a "cd
newdir" before handing it back to you. Think of it as "mount share dir
&& cd dir/otherdir/"
P
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!