Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-24-2008, 09:15 AM   #1
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, 09:27 AM   #2
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, 10:55 AM   #3
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 05:18 PM.


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

All times are GMT -5. The time now is 06:28 PM.

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