Hello,
I have Gentoo & RedHat Linux running on my laptop which came installed with Win XP. While doing "emerge world", I found myself having to re-setup grub. Now, I can boot my Linuxes but not XP (yes, I know, "So what's the problem?
The scenario: XP is on /dev/hda1 (NTFS), my boot partition is /dev/hda5 and is set up to be used by RedHat and Gentoo (different kernels in different subdirectories).
What I did at first: while running grub, I confused (hd0) with (hd0,0):
> root (hd0,4)
> setup (hd0,0)
When this didn't work, I did what I actually meant to do (write to MBR):
> root (hd0,4)
> setup (hd0)
After this, grub starts fine when booting, all the Linuxes boot, but when I try to chainload Win XP, it keeps returning to grub (since I accidentally installed it on (hd0,0)).
Is there a way to clean up (hd0,0) without erasing partitions? I know that the Windows programs FDISK and FIXMBR can rewrite the MBR, but I really want to avoid screwing up my data.
Thanks in advance for any help.
Dhavide
PS: Here's the grub.conf, but I'm quite sure it's not the problem since it was working previously.
# grub.conf generated by anaconda
#
default=2
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
title Red Hat 9.0 (2.4.20-8)
root (hd0,4)
kernel /RedHat/vmlinuz-2.4.20-8 ro root=LABEL=/RH9.0 hdc=ide-scsi pci=biosirq
initrd /RedHat/initrd-2.4.20-8.img
title Gentoo
root (hd0,4)
kernel /Gentoo/bzImage-2.4.25 ro root=/dev/hda7 hdc=ide-scsi pci=biosirq
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1