Installing Grub onto RAID-1 Partition with ReiserFS

Joe Haynes of Terra Firma Software Solutions, Inc.

1  Synopsis

I had a devil of a time getting grub (GRand Unified Boot loader) to install on two IDE drives setup in a RAID-1 configuration with ReisferFS. These are the steps I used to finish that setup on a Gentoo system.  

2  The Steps

  1. Edit grub.conf (this is usually under /boot/grub/) and add your two partitions (referenced below).
  2. Run grub manually (type grub at the command prompt)
  3. At the grub prompt (i.e. 'grub>') issue the command find /grub/stage2 and you should see the two raid partitions appear
    (hd0,1)
    (hd1,1)
  4. Type root (hd0,1) and you should see this:
    Filesystem type is reiserfs, partition type Oxfd
  5. Type setup (hd0) You should see something similar to this appear:
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "embed /boot/grub/reiserfs_stage1_5 (hd0)"... 26 sectors are embedded. succeeded
    Running "install /boot/grub/stage1 (hd0) (hd0)1+26 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
    Done.
  6. (Running the commands for the second drive) Type root (hd1,1) and you should see this:
    Filesystem type is reiserfs, partition type Oxfd
  7. Type setup (hd1) You should see something similar to this appear:
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "embed /boot/grub/reiserfs_stage1_5 (hd1)"... 26 sectors are embedded. succeeded
    Running "install /boot/grub/stage1 (hd1) (hd1)1+26 p (hd1,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
    Done.
  8. That's it! Now all you have to do is exit out of grub by issuing the quit command.



File translated from TEX by TTH, version 3.66.
On 26 Jan 2005, 21:51.