Sunday, June 27, 2010

HowTo reinstall grub after a Windows install wipes the MBR

Note that the exact partition spec will vary depending upon drive and partition order.


) Boot with a Live install,
) Use the disk drive GUI tool to locate
the MBR partition
the / (linux root)
the /boot (linux boot) [this is where /grub/stage(x) is]


grub
grub> root (hd0,1) # Assumes your /boot partition is sda2
grub> install (hd0,1)/grub/stage1 d (hd0) (hd0,1)/grub/stage2 p (hd0,1)/grub/grub.conf

exit and boot

No comments: