[ale] Grub and auxiliary boot partition

Jeff Hubbs jeffrey.hubbs at gmail.com
Thu Apr 30 11:21:23 EDT 2009


I have a server with two disks that I use for booting and rooting - sda and
sdb.  I partition them like this:

|--sda1=/boot-----|--sda2 (type fd)------------------------|

|--sdb1=/auxboot--|--sdb2 (type fd)------------------------|

sdb1 and sdb2 are made into md0 in kernel RAID 1 and md0 is mounted as /.
sda1 and sdb1 have the bootable flag set.  /auxboot holds the same files as
/boot.

I want to have things such that if sda is dead, grub can be told to boot
entirely using just sdb.

When I install grub, I envision these commands:

grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)

Does that look like it will do what I want, acknowledging that the
settings in grub.conf in /boot
would come up and therefore would have to be changed by hand in the
grub start menu before actually
booting?

If so, I expect I could do away with the human intervention by putting
sda and sdb in the BIOS'
boot list in that order, changing the grub.conf in /auxboot to use
sdb2 as /, and then running the
grub commands above.

What do you think?

- Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20090430/e24f63a9/attachment.html 


More information about the Ale mailing list