LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-24-2008, 10:15 AM   #1
villumanati
Member
 
Registered: Jun 2008
Posts: 43

Rep: Reputation: 15
Trouble linking 2 folders


I am having problems linking 2 folders.

Ok i have an ftp folder located at /var/ftp/uploads
I also have an external drive mounted at /ftpDrive.

I am essentially trying to have all data sit on /ftpDrive but make it "appear" to be in the /var/ftp/uploads directory because of an ftp (proftpd) program that i have installed.

Does anyone know how i can accomplish.


Thanks in advance!!
 
Old 11-24-2008, 10:27 AM   #2
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
why don't you mount the external disk at /var/ftp/uploads ?
or, if you want just to "appear" to be at /vat/ftp/uploads while the disk is mounted at /ftpDrive type (on a terminal):
ln -s -T /ftpDrive /var/ftp/uploads
Also type "man ln" ;-)
 
Old 11-24-2008, 11:55 AM   #3
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
As root mount your external drive like:
# mount -t <your-filesystem> /dev/<your-device> /var/ftp/uploads

The original contents of /var/ftp/uploads remain intact (if there are any), but as long the drive is mounted the drive contents will be accessed.

Or add something like
/dev/<your-device> /var/ftp/uploads <your-filesystem> rw,user,auto 1 2
to your /etc/fstab file to automatically mount at boot time.

Last edited by Tinkster; 10-30-2010 at 06:18 PM.
 
  


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
trouble with C++ linking bigearsbilly Solaris / OpenSolaris 1 07-02-2007 04:07 AM
linking folders war1025 Debian 3 01-15-2007 08:43 PM
g++ linking trouble ? an-arhos Programming 5 05-04-2006 02:05 PM
trouble linking with g++ WanglessOlasov Programming 5 12-28-2003 01:25 PM
Linking Folders into /etc/skel otisthegbs Linux - Software 0 11-24-2003 04:37 PM


All times are GMT -5. The time now is 10:01 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