2010-12-08, 21:09
All credit for the following guide goes to harryzimm. I know that I would be dead in the water without this information so I figured posting as a guide might help some one else.
Here are the steps i used, using xbmc-freak rc1.
1) Go through the installation process, using the partitioner to set up your raid1 array to bo mounted to /home. Complete the installation.
How to Partition for RAID
2) when you boot for the first time, an error message will appear. Choose m (or ESC, in my case) for manual recovery(drop to shell)
3) At the terminal (if you want to use ssh, type "sudo service ssh start" without the quotes then continue from your other machine.)
type
select no configuration when promted. When its finished,
4) type
It should output your /dev/md0 devices and uuid
Make a note of your uuid and devices (/dev/sda1, /dev/sdb1, etc) Write these down.
5) type
replace the uuid that is mounted to /home with "/dev/md0" it should look something like this
/dev/md0 /home ext4 defaults 0 2
save (Ctrl + o) then (Ctrl + x)
6) type
At the end of the file, insert
ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371
Replacing the uuid with the one you noted down
save (Ctrl + o) then (Ctrl + x)
7) type
replacing /dev/sda1 and /dev/sdb1 with the devices from before.
8) type
9) type exit at the terminal of your htpc. It should boot into xbmc.
Here are the steps i used, using xbmc-freak rc1.
1) Go through the installation process, using the partitioner to set up your raid1 array to bo mounted to /home. Complete the installation.
How to Partition for RAID
2) when you boot for the first time, an error message will appear. Choose m (or ESC, in my case) for manual recovery(drop to shell)
3) At the terminal (if you want to use ssh, type "sudo service ssh start" without the quotes then continue from your other machine.)
type
Code:
sudo apt-get update
Code:
sudo apt-get install mdadm
select no configuration when promted. When its finished,
4) type
Code:
sudo mdadm --examine --scan --verbose
It should output your /dev/md0 devices and uuid
Make a note of your uuid and devices (/dev/sda1, /dev/sdb1, etc) Write these down.
5) type
Code:
sudo nano /etc/fstab
replace the uuid that is mounted to /home with "/dev/md0" it should look something like this
/dev/md0 /home ext4 defaults 0 2
save (Ctrl + o) then (Ctrl + x)
6) type
Code:
sudo nano /etc/mdadm/mdadm.conf
At the end of the file, insert
ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371
Replacing the uuid with the one you noted down
save (Ctrl + o) then (Ctrl + x)
7) type
Code:
sudo mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
replacing /dev/sda1 and /dev/sdb1 with the devices from before.
8) type
Code:
sudo mount -a
9) type exit at the terminal of your htpc. It should boot into xbmc.