I've done this on raid-1. I assume the procedure for raid-0 will be the
same. Here is how I do it. I'm not guaranteeing this is the best way:
First I'll make some assumptions. First you would like to boot to your root
md0 filesystem. Second, you have a kernel that is new enough to support
booting on raid and the raid-0 personality is compiled into the Kernel.
Third, your copy of lilo is new enough to support booting to md devices.
And 4th, you're using IDE drives.
1. Using fdisk make the partition id's of all raid partitions (on both
disks) "fd". Use the "t" option in fdisk to do this.
2. Edit /etc/lilo.conf so that root=/dev/md0 and boot points to a valid
boot drive. (/dev/hda in my case.)
3. Drop to your command prompt and run lilo. (Ex. Type "lilo" followed by
enter at the prompt.)
4. Reboot.
Be sure to have a boot disk handy. If this fails for any reason you'll need
it to boot your computer. Additions or comments on this nano-procedure are
welcome.
Good Luck.
----- Original Message -----
From: Jim Ford
To: linux-raid
Sent: Thursday, December 02, 1999 10:59 AM
Subject: Help on root fs using raid-0
I'm stuck!
I've got two 1gig disks that I want to concatenate together using raid-0 and
mount as / with Slackware 7 installed.
I've created a minimal installation on a 60meg partition and used this to
create a full installation on a raid-0 partition - /dev/md0, which I can
mount and umount on /mnt to my heart's content (but which isn't much use
there)!
For 64,000 dollars - how can I mount /dev/md0 as / ?
I've read the docs, but find them quite opaque. Surely there's an simple
way!
Regards: Jim Ford