Reinstalled WinXP -> dual boot w/ RedHat9 doesn't work
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Reinstalled WinXP -> dual boot w/ RedHat9 doesn't work
Hi everyone,
I had a dual boot with WinXP / RedHat9 and grub (the standard setup when installing Windows first and then RedHat). But, then I reinstalled WinXP and probably overwrote the MBR. I don't know how to recover the MBR.
If go into the rescue mode (by booting from RH CDs) my root partition is mounted under /mnt/sysimage so the Linux is still there.
If I go into the interactive setup and tried to update the existing linux partition on /dev/hda3 and get an error message: "can't enable swap partition /dev/hda3"
If boot from a RH boot disk, I get the syslinux boot prompt and if:
- I press enter and go with the default I get "kernel panic. try passing on init= to kernel"
- 'Linux -boot=/dev/hda -root=/dev/hda3' it goes for 30 seconds and stops because it "can't find driver hda"
Does this make sense to anyone?
I have a feeling that this should be easy and I'm just making it complicated because I don't know enough.
I went into the rescue mode and:
chroot /mnt/sysimage
/sbin/grub-install /dev/hda
Grub-install prompted that the installation was successful. I reboot the computer and it still boots to WinXP... However, just before WinXP start loading, I can see some text which looks like grub, bur only for a half second.
WinXP and RedHat are on the same hard drive and /boot/grub/grub.conf:
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hda=ide-scsi
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.