Make user uploads go to different hard drive?

Posted by Andrew Fashion on Server Fault See other posts from Server Fault or by Andrew Fashion
Published on 2011-01-07T17:46:30Z Indexed on 2011/01/07 17:55 UTC
Read the original article Hit count: 164

Filed under:

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

© Server Fault or respective owner

Related posts about centos