Reinstalling GRUB after Windows install

From Wiki
Revision as of 16:52, 9 March 2011 by Root (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Reinstall GRUB after Windows install

Here is how to reinstall GRUB after you have had to install windows, and windows has overwritten your master boot record (MBR) so that you can't get back into Linux.

  • boot from install CD (knoppix did not work in my case, use openSUSE CD)
sux - <-this is optional, just use 'su'
find /boot/grub/stage1 // Will print something like (hd0,1)
find /boot/grub/menu.lst
root (hd0,1)
setup (hd0) <- ignore prompt for partition