GRUB Hard Disk Error

Christopher Chan christopher.chan at bradbury.edu.hk
Mon May 24 00:56:04 UTC 2010


> How can I install grub to these two pendrives, so that if one of the
> pendrives die, it would still be a bootable system?
>
>

What did you use to install your, er Debian was it?, OS? I assume you 
mean something Debian based. The Ubuntu Live CD? (just looking for 
another excuse to have a go at the Ubuntu installer :P)

You want to tell grub to store the location of the second stage file 
that is on the local disk member of the raid and not the other member.

After you boot up, you want to use the grub shell to reinstall grub on 
the second mirror member. Assuming that /boot is the (hd1,0) partition 
in grub speak (it will be different if /boot is not on its own partition 
-- prepend /boot to the paths if that is the case):

grub> root(hd1,0)
grub> install --stage2=/grub/stage2 /grub/stage1 (hd1) (hd1,0)/grub/stage2 p

That should allow you to boot up with the second disk connected but the 
first one disconnected.




More information about the ubuntu-users mailing list