Question : mounting a remote share withing a local share on Linux

I have a cifs share on a windows box that I wanted to mount on a linux box on a NAS...

So I have NAS1 which is mounted locally on the linux box as /drive/workgroup and then I would like to mount a folder (//remoteserver/Public underneath /drive/workgroup.

Can I run something like: "mount -t cifs //remoteserver/Public /drive/workgroup/new" and have everything under the public folder show up in the /drive/workgroup as a folder there or do I need to go about this another way?

Answer : mounting a remote share withing a local share on Linux

Basically it's OK.

If you need a userid and a password to access the share add these options to the command (-o user=xxx,password=yyy)

There are many more options. Please have a look at this

http://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html

mount.cifs is basically the same as mount -t cifs, because mount will convert "-t type" to "/sbin/mount.type")

wmp

 

Random Solutions  
 
programming4us programming4us