LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] CIFS mounting - can a remote directory be specified?

[ILUG] CIFS mounting - can a remote directory be specified?

Proinnsias Breathnach proinnsias at linux.ie
Tue Oct 31 12:20:19 GMT 2006


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



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell