My Weblog
22 05 2004

Sat, 22 May 2004

My Proposed Partitioning Scheme
Lately I've been thinking of redoing my partitioning scheme. Currently I'm using an LVM-root setup, which has caused me some difficulty. I have been unable to upgrade to the new 2.6 kernel because I can't seem to build a kernel and initrd that support the version of LVM I'm using (can't find the correct version of vgscan). My solution is to move the root partition out of LVM, since I'm never going to resize it anyway. Also, this eliminates the need for an initrd and a seperate /boot partition. In addition, if the LVM partition gets hosed, I have a basic system I can use to fix it.

Here's my planned setup. This will be used on two drives, one 200GB and one 40GB (my laptop). The /var partition is larger because that's where my Apt cache is, and I need it for package downloads. 2.0GB is plenty for me for /usr because I don't install much under /usr/local (Debian has everything packaged already :-), I don't install packages I don't need, and I do my kernel builds under $HOME. /home usually fills the remainder of the disk (or physical volume) unless the disk is huge. I don't think I'll ever exceed 40GB for personal files, but I can always resize /home if I need to.

/dev/hda1	/	ext3	150MB
/dev/vg01/usr	/usr	ext3	2.0GB
/dev/vg01/tmp	/tmp	ext3	1.0GB
/dev/vg01/var	/var	ext3	1.0GB
/dev/vg01/swap	swap	ext3	1.0GB
/dev/vg01/home	/home	ext3	between 10GB and 40GB

Update: 2004-05-22
I've repartitioned my desktop according to the above scheme and it works well. The only problem I had was that I didn't have enough room to build a 2.6 kernel with the options I needed (none of the Debian kernel packages would work because I needed the CONFIG_IDE_STROKE option set). I was able to mount my old /home LV and use the extra space there to build the kernel.

Next time I'll make my root partition about 50 - 100 MB bigger, just to have more room to work with in case I lose my volume group or something. I don't want to use much more than that because I don't see the need for something like a 500 MB root partition with this setup.

posted at: 10:06 | path: /computers/linux | permanent link to this entry