PDA

View Full Version : Fixing the Grub boot loader after reinstalling windows. Help



Postmortem
07-11-2002, 06:46 AM
I had windows XP and Linux installed and I used grub as the boot loader.. I recently had a problem with windows so I had to format that partition and reinstall it. I didnt even think About linux and grub. now when my PC boots. It boots straight to windows. Is there any way to fix this to boot from grub again without having to reinstall linux? please help me. thanx

Bern
07-11-2002, 11:17 PM
Boot from your boot floppy and reinstall grub.

Postmortem
07-12-2002, 02:26 AM
I didnt mak a bot disk =) I'm stupid.. also. how would I ONLY install grub without installing the OS. I am using Redhat (the newest one)

Bern
07-12-2002, 08:22 AM
You can use your install cd as a rescue disk, see this (http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-rescuemode-boot.html) page at redhat. When you have it started you can reinstall grub to the mbr with " grub-install /dev/hda"

Postmortem
07-12-2002, 11:35 AM
Thanx soooo much!

Bern
07-12-2002, 11:38 AM
Your welcome :-)

Postmortem
07-16-2002, 12:17 PM
I tried but it said its not found in /sbin
but I didnt however get to the recovery counsel. anything else I should Try?

Bern
07-16-2002, 12:26 PM
You can try reinstalling grub from the redhat cd, back up all your grub conf files, reinstall and then try to reinstall it to the mbr after restoring your conf files.