Copying grub to your other hard disks (eg for RAID setup)

So, you've got your shiny new RAID setup working nicely, you're booting your OS from it and all is grand.  But, when you did the install, grub will have only installed the the mpr of the first disk.   If that disk dies then it's a right royal pain!  So, we can copy grub to the mbr of the other disks using the following methd:

[root@fs02 ~]# grub
Probing devices to guess BIOS drives. This may take a long time.

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]

grub> device (hd0) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
grub> device (hd0) /dev/sdc
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Go back