Thursday, September 30, 2010

GRUB manual install into the boot sector

One of the useful things to know is how to install GRUB onto a disk when you replace one in the software RAID.

Installing GRUB natively

Caution: Installing GRUB's stage1 in this manner will erase the normal boot-sector used by an OS. 

# grub
grub> device (hd0) /dev/sdf
grub> root (hd0,0)
grub> find /grub/stage1
grub> setup (hd0)
grub> quit

No comments: