# Reinstalling GRUB after Windows install

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`