LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2009, 04:35 PM   #1
thebighere
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
How to Create Invisible Link to dir on different server


Hello,

I think this may be a simple fix, but I can't seem to ask it right to google or here.

I have a directory on a redhat file server which is getting close to full. I'd like to move the contents of that dir to a windows box, but make it transparent to the many users who save data to the redhat dir.

Not sure if I should mount the windows folder to the redhat? Should they be the same name? Can it be transparent so that my users don't have to change all their settings?

thanks
 
Old 08-07-2009, 09:19 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
You would do the following

1) on the file server, move the current directory X contents to directory Y (temporarily). Directory X will now be an empty directory.

2) share a folder X on the windows box (can be the same name as the one on the Red Hat server, but doesn't have to be)

3) mount the folder X on the windows box to the Red Hat server (using either 'smbmount' or 'mount.cifs'; look at the man pages of these for more details). It is given a "mount point", which is your empty directory X on the Red Hat server. Once this is done, anything you place in directory X on the Red Hat server will actually end up on the Windows machine.

4) Copy the contents of temporary directory Y into directory X (effectively moving them across to the Windows machine). If this is successful, you can then delete directory Y.

Step 3 will only mount the folder until the next reboot. If you want it mounted permanently (ie, even after the file server reboots), you will need to place an entry in the '/etc/fstab' file.

Keep in mind this will be slower than serving directly from the Windows box, because you are transferring the files into the Red Hat server, and then back out to the Windows box (presumably over the same network link).

You should also be aware that the file systems on the two operating systems may behave a little differently, particularly when it comes to file permissions and time stamps.
 
Old 08-07-2009, 12:39 PM   #3
andyofne
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by thebighere View Post
Hello,

I think this may be a simple fix, but I can't seem to ask it right to google or here.

I have a directory on a redhat file server which is getting close to full. I'd like to move the contents of that dir to a windows box, but make it transparent to the many users who save data to the redhat dir.

Not sure if I should mount the windows folder to the redhat? Should they be the same name? Can it be transparent so that my users don't have to change all their settings?

thanks
Can you not add another drive to the linux box to expand the storage capacity on that machine?
 
Old 08-07-2009, 12:52 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
As neosignal very well said, if you need to mount shares involving Windows boxes, cifs or samba are your best bets. NFS is also supported, but I don't think it works that efficiently.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create dir/file... JATA01 Linux - Server 3 01-08-2009 04:45 AM
create dir Rock'n'Metal Linux - Newbie 2 03-09-2008 09:24 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 08:40 AM
Bourn shell: how to see if a dir is a link ? 2007fld Programming 3 10-05-2007 03:36 PM
Is it possible to make a dir a symbolic link? dr_zayus69 Linux - General 4 03-09-2005 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration