LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble linking 2 folders (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-linking-2-folders-685741/)

villumanati 11-24-2008 09:15 AM

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!!

segmentation_fault 11-24-2008 09:27 AM

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" ;-)

salter 11-24-2008 10:55 AM

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.


All times are GMT -5. The time now is 10:45 PM.