Web Hosting Talk







View Full Version : Harddrive Mounting/Paritioning


PuNkEr
11-13-2004, 10:26 AM
I'm still quite a n00b at linux unfortunately and don't know how to partition my server into the following formats and filesystems like below.

=====
/dev/hda6 on / type ext3 (rw,usrquota)
none on /proc type proc (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /home type ext3 (rw,usrquota)
none on /dev/shm type tmpfs (rw)
/dev/hda2 on /usr type ext3 (rw,usrquota)
/dev/hda7 on /var type ext3 (rw,usrquota)
=====

I was told this by cPanel support that I need it like that in order for quotas in users accounts to work. Can some please help me with the commands to do that :/

My current mounts are like this :

====

vzfs on / type vzfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)

====

Thanks in advance :)

Cheers
PuNkEr~

firestarter
11-13-2004, 11:04 AM
To partition a hardrive you can use fdisk /hda or /hdb and then you can choose the way you want it.

PuNkEr
11-13-2004, 11:28 AM
can you do it without loosing data? As I have cPanel installed etc... not any critical files however. Just be easier if i could do it on the spot if you know what i mean.

Thanks In Advance :)

firestarter
11-13-2004, 11:49 AM
In an existing cpanel server changing the partitions will remove your data. You will have to request your DC to repartion the HDD and before that take backup of the data that you have. Ask the DC that you need partitining as per your requirement.

PuNkEr
11-13-2004, 11:53 AM
thanks for ur help firestarter. really appreciated it :)