Originally Posted by puntino
I have one hard disk splitted beetwen WinXP (professional) and Suse 10.1 and I use Grub as boot loader.
Now I want to unistall WinXP (is not run well) without loose the Suse partition and I want to install again WinXP (I always want to protect my Suse partition).
How to do it ?
How do I update grub afther the installation of WinXP?
Plese explain me step by step.
Thank you in advance
uninstalling windows will have no affect on the suse partition. Reinstalling will.
once you reinstall windows, it will overwrite grub, so you'll have to rebuild it.
Do yourself a favor & print out the file /boot/grub/menu.lst - keep it for reference
Also, before you start, download and burn a live linux CD distro - Knoppix or Ubuntu or something similar - something that will load up linux without installing to the HD.
Go ahead and install windows completely. After you do this, when you boot up, there will be no grub & you'll just go straight to Windows. This is ok.
Now boot off the live CD. Open a terminal. type "grub" - this will give you a grub prompt
now get that printout & look for a line that looks something like:
type that in at the grub prompt (whatever yours is - it may not be hd0,0 - just type in what's on your printout)
now all you need to do is install grub to the MBR of your boot drive. I'll assume that the drive Linux is installed on is also the drive Windows is installed on which is also the drive that the BIOS is set to boot from. If this is the case, then install the boot loader by typing:
the hd0 comes from the root(hd0,0) - if it was root (hd1,0), then you would do "setup (hd1)". If those assumptions I made earlier are incorrect, well... reply here & I'll give further instructions. It's a lot to type & I don't want to do it if I don't have to.
Now you're done. Just type:
to save everything. Remove the live CD, reboot, and you should have your grub back.