LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ProFtpd Home directory on a Diferent Partition (https://www.linuxquestions.org/questions/linux-networking-3/proftpd-home-directory-on-a-diferent-partition-405006/)

mambley 01-18-2006 01:47 PM

ProFtpd Home directory on a Diferent Partition
 
Hello,

I'm very new in Linux so my quiestion can be a little bit silly for you.

The situation is as follows:

I just install a new set of disks to our Red Hat Enterprise 3 Server and we created a Raid5 and mount it. If I issue a df -k the new raid is show up (/dev/md0).

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ida/c0d0p2 67900816 2584132 61867452 5% /
/dev/ida/c0d0p1 98747 15660 77988 17% /boot
none 512712 0 512712 0% /dev/shm
/dev/md0 46112 4124 39608 10% /mnt/raid

I'm being asked to move the Proftpd home directory (where the user are going to upload and download ftp files) to that new partition.

I'm a very Microsoft guy and I'm used to see the partitions physically (C:\, D:\, etc,etc,etc).

How do I move to the new partition, create a directory and direct the Proftpd Home directory to it.

Anything or all the information is usefull.

Thanks

Raul

carl0ski 01-24-2006 07:31 AM

Quote:

Originally Posted by mambley
Hello,

I'm very new in Linux so my quiestion can be a little bit silly for you.

The situation is as follows:

I just install a new set of disks to our Red Hat Enterprise 3 Server and we created a Raid5 and mount it. If I issue a df -k the new raid is show up (/dev/md0).

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ida/c0d0p2 67900816 2584132 61867452 5% /
/dev/ida/c0d0p1 98747 15660 77988 17% /boot
none 512712 0 512712 0% /dev/shm
/dev/md0 46112 4124 39608 10% /mnt/raid

I'm being asked to move the Proftpd home directory (where the user are going to upload and download ftp files) to that new partition.

I'm a very Microsoft guy and I'm used to see the partitions physically (C:\, D:\, etc,etc,etc).

How do I move to the new partition, create a directory and direct the Proftpd Home directory to it.

Anything or all the information is usefull.

Thanks

Raul

I like Linux More than Windows Since the drives arent Binding Like WIndows.
you can change them anytime without breaking things.
you can set a partition to be any folder on your Harddrive no matter how deep.

typing
#mount

will give you a clearer image of your Hardrives.

now to offload a folder of / to another Partition, you copy/move all the contents inside that folder
to the root of the 'Empty' partition you want to use.


do you know which directory Proftd uses?
i'll just guess /var/proftd for the example.


now first mount your new partition.
Harddrives a are laid out
/dev/hda = Primary Master
/dev/hdb = Primary Slave
/dev/hdc = Seconday Master
/dev/hdd = Secondary Slave
/dev/hda2 = 2nd Partition of Primary Master


Code:

mkdir /mnt/tmp/ ; mount -t ext3 /dev/hdb3

cp -R /var/proftpd /mnt/tmp

last edit fstab (tells Linux What Harddrive holds you /var/proftpd contents.

vi /etc/fstab

add the line

/dev/hdb2 /var/proftpd ext3 defaults 1 2


when you reboot the new partition and all its space will be available to the folder /var/proftpd

mount
will confirm it


All times are GMT -5. The time now is 03:27 PM.