[SC.LUG] GRUB Bootloader and 'MS Windows'

Ian Molton spyro at f2s.com
Mon Jul 25 17:03:48 BST 2005


Roger Gibson wrote:

> Reloading Windows happily leaves my partitions intact, and only 
> over-writes the primary Windows partition.  However it also pinches my 
> GRUB Bootloader, and I can find no way of replacing it without reloading 
> my SUSE Linux.  Not a big chore as /home lives on another partition, but 
> a chore nevertheless.
> 
> Is there a simple way to restore the GRUB Bootloader after reloading 

yep.

boot from a rescue CD or some live distro that provides grub.

run grub from the commandline

from grubs prompt, type:

root (hdX,Y)
setup (hdX)

which will restore the bootloader.

remember GRUB counts from 0 so hda1 is (hd0,0) in grubspeak (on a normal 
system).

Have fun.



More information about the SC mailing list