In any event, in your second attempt you used the device command to align grub's (hd0) to sdb and installed grub stage1 to its MBR.
To double-check grub is in the sdb MBR (although you won't be able to decipher its embedded pointer to the sector address of stage2), you can do:
Code:
dd if=/dev/sdb of=mbrsdb bs=512 count=1
xxd mbrsdb
That will give you a hex dump of the sdb MBR. Since you don't have a separate /boot partition and you are using a single partition RAID1 array, you should be able to copy the MBR from one disk to the other, although it is just as easy to do it with the grub shell installing to both. All stage1 in each MBR cares about is being able to find its stage2. Keep in mind that grub has to be set up as booting from a single disk (although on the kernel line in menu.lst the root= statement needs to use the array device name, i.e., /dev/md1).
Your caution re copying the MBR is well-advised, although in your simple setup with just 2 partitions on identical disks both in arrays there shouldn't be a problem because the table will be identical. For booting purposes, the loader can be copied without the table by just using the first 440 bytes instead of all 512.
Bookmarks