I am using a pre-made social networking script where all user uploads go to site.com/public/user/
How can I make /public/user/ my secondary hard drive so all user uploads are uploaded to my second harddrive and not the primary hard drive. I have over 100GB of images, and I want them on my other HDD now. Thank you.
I am running CentOS 5.5 64bit w/ Apache and PHP
I have two 250GB Sata HDDs
#sudo parted /dev/sda print
Model: ATA WDC WD2500KS-00M (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 8595MB 8488MB primary linux-swap
3 8595MB 10.7GB 2147MB primary ext3
4 10.7GB 250GB 239GB extended
5 10.7GB 250GB 239GB logical ext3
Information: Don't forget to update /etc/fstab, if necessary.
5 10.7GB 250GB 239GB logical ext3
The procedure would look something like this. You haven't provided much in the way of detail in your question, so I can't give you exact details.
The way I would do this would be to