Thursday, October 26, 2006

Dapper directory sizes


Just for reference for someone who wants to set up multiple partitions but has no clue how much space is required.

This is what my file system currently looks like (fresh Kubuntu install a year ago, a few essential apps + dist-upgrade to some recent stuff):

/bin 4.5M
/boot 9.4M
/dev 5.5M
/etc 40M
/home 862M
/lib 110M
/proc 900M
/root 24M
/sbin 8.5M
/tmp 31M
/usr 2.8G
/var 1.3G

Initializing existing RAID-0 setup to install Ubuntu on it


If you have your root partition on RAID-0 and for some reason decided to delete the system while keeping /home (or any other directories) and start over, here's how to do it:

1. Boot the 'alternate' disc.
2. Go through the setup until you get to partitioning.
3. Switch to console (for example: ALT+F2).
4. Issue the following commands, replacing hde3 and hdg8 with your RAID partitions:

# modprobe md
# mdadm --assemble /dev/md0 /dev/hde3 /dev/hdg8
# mount /dev/md0 /mnt

You can now access your stuff in /mnt. Delete what you need, keep the rest. Then:

# umount /mnt
# mdadm --stop /dev/md0

Go on with the installation. Make sure not to format your RAID!