Reinstalling GRUB after Windows install: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
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. | 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 | * boot from install CD (knoppix did not work in my case, use openSUSE CD) | ||
sux - | sux - <-this is optional, just use 'su' | ||
grub | grub | ||
find /boot/grub/stage1 // Will print something like (hd0,1) | find /boot/grub/stage1 // Will print something like (hd0,1) | ||
or | |||
find /boot/grub/menu.lst | |||
root (hd0,1) | root (hd0,1) | ||
setup (hd0) | setup (hd0) <- ignore prompt for partition | ||
quit | quit |
Latest revision as of 14:52, 9 March 2011
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' grub find /boot/grub/stage1 // Will print something like (hd0,1) or find /boot/grub/menu.lst root (hd0,1) setup (hd0) <- ignore prompt for partition quit