Thursday, October 26, 2006

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!

No comments: