Thursday, November 1, 2007

Gutsy: Existing RAID Partitions

As a follow up to : http://tuxgurl.blogspot.com/2007/06/raid-1-setup.html

If you have existing raid partitions. Here's how to set em up.

I messed up again and installed Ubuntu first and then had the partitions detected. On my next install Ill try installing with RAID outright.

- Install mdadm: sudo apt-get install mdadm
- Reboot

Thats it..

- Create mount directories: sudo mkdir audio

- Add the drives to fstab: sudo gedit /etc/fstab
/dev/md0 /home ext3 defaults 0 0
/dev/md1 /audio ext3 defaults 0 0
/dev/md2 /neuro ext3 defaults 0 0
/dev/md3 /video ext3 defaults 0 0
/dev/md3 /virtuo ext3 defaults 0 0

- Mount the file-systems: sudo mount -a

- Give the directories user privileges (recurses directories): sudo chown -hR wraith /audio

Done!