Operating System - Linux
1834636 Members
3682 Online
110069 Solutions
New Discussion

mounting smb or nfs dir to existing windows path

 

mounting smb or nfs dir to existing windows path

Machines:
Windows 2003 SP1
RHEL4.4

Task:

Share /tmp/share from the the RHEL box. (Completed w/ Samba or NFS)

Mount /tmp/share to D:\Data\Share on windows 2003 box (Completely Lost)

Question:

Is it possible to mount an existing directory to a samba or nfs share?

Reason:

At the moment we have been using SFU for windows to run an NFS Server to share out D:\Data\Share and then mount from fstab on the RHEL side. I would like to house the shares on the RHEL side and mount them from the windows side, but it has to be mounted to D:\Data\Share otherwise I will be breaking a lot of other things that write to this.

From my experience I can only mount a new drive from the windows side and not an existing path\folder

Thanks in advance! JB
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: mounting smb or nfs dir to existing windows path

You can't mount a share into a directory. I think that you could map the network share as, for example, H:, and then create a link into d:\data\ with the name "share".

See:

https://confluence.slac.stanford.edu/display/core/Windows+Symbolic+and+Hard+Links
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?

Re: mounting smb or nfs dir to existing windows path

Ivan,
Thanks for that! Almost nearly exactly what I was looking for. You definately have the right idea. I am having an issue though using any of the suggested solutions as I am trying to map x: (what the samba share is mounted on in windows) to D:\Data\Share and it's yelling that it's not a reparse point and if I go directly to \\server\share (x:) it yells it only works on ntfs partitions.... I am continuing to look into it but ideally I would like a junction\reparsepoint\symlink between x: and D:\Data\Share. Thanks so far!
spex
Honored Contributor

Re: mounting smb or nfs dir to existing windows path

Hi,

Here's a piece of freeware that might accomplish what you're looking to do. It's called "Junction Link Magic". Note that I've never tried it, so I can't comment on how well it works.

http://www.rekenwonder.com/linkmagic.htm

PCS

Re: mounting smb or nfs dir to existing windows path

spex, thanks but no such luck. This needs to have the source file as NTFS which is really ext3. So I might be out of luck, but what I am looking for is a way to sym link an ext3 (samba share on linux mounted in windows) to an existing folder in windows....