LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2006, 01:47 PM   #1
mambley
LQ Newbie
 
Registered: Jan 2006
Posts: 11

Rep: Reputation: 0
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
 
Old 01-24-2006, 07:31 AM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
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
 
  


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Home directory on a vfat partition siepmann Linux - Software 8 01-12-2006 02:09 PM
Proftpd and files outside /home chup Linux - Software 0 01-13-2005 07:18 PM
proftpd, chroot, locking to home..? okan.yuksel Linux - Newbie 1 07-17-2004 02:39 PM
Seperate /home directory to new partition iotc247 Debian 1 05-31-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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