LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Grub Disappeared When I Installed Windows Xp (https://www.linuxquestions.org/questions/linux-general-1/grub-disappeared-when-i-installed-windows-xp-443145/)

mesh2005 05-09-2006 11:19 AM

Grub Disappeared When I Installed Windows Xp
 
I had SUSE 10 and Windows XP, I re-installed Windows XP then I didn't find the Grub! my pc boots to Windows only... How can I fix that?? I tried to boot from the SUSE CD 1 but I didn't find any repair option, only install and update...
I hope you can help

weibullguy 05-09-2006 11:36 AM

That's because Windows is sooooo smart, it just knows you don't need Linux.

Here's how to get Linux back as a boot option:

1. Boot using a live-cd (Knoppix, Slax or SystemRescueCD)
2. Mount the linux partition
3. chroot the mounted partition
4. Install grub -> grub-install /dev/hda (or wherever you need it)
5. Edit grub.conf or menu.lst to chainload Windows.

ioerror 05-09-2006 11:44 AM

Yes, Windows arrogantly ignores other operating systems that you have installed. However, it shouldn't have touched your linux installation (hopefully), just overwrote the mbr. Boot from your Suse install CD and switch to another terminal, there should be a few open. Run grub and reinstall it.

EDIT: Pipped to the post again. Arow replied while I was making some tea. Must get a beefier kettle.

pixellany 05-09-2006 02:40 PM

Putting GRUB on a floppy avoids this annoyance. I keep meaning to move it to the mbr, but it works the way it is--so no motivation.

mesh2005 05-09-2006 03:25 PM

I have no Live CD, I used the SUSE Rescue system (an option on CD1), I logged as root
I tried to run grub-install /dev/hda8 (linux partition) but I got "/dev/root not a valid device"!!!
I tried to mount the /dev/hda8 to /mnt/tmp but I got "Format not recognized"
Can you help?
thanks

ioerror 05-09-2006 04:27 PM

I've had trouble trying to use grub-install, frankly I think it's a bit flaky. It's generally easier to run grub and install it from there, i.e.:
Quote:

root (hd0,7)
setup (hd0)

mesh2005 05-11-2006 01:26 AM

Thanks for your help, I solved it, the easiest solution is to use the first SUSE CD, select Installation, when the options (New or update) appear, select Repair from the other menu at the bottom and then select the Expert mode to install a new boot loader.
Thanks.


All times are GMT -5. The time now is 04:11 PM.