LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Oops! Where's GRUB? (https://www.linuxquestions.org/questions/linux-newbie-8/oops-where%27s-grub-92420/)

jhachey 09-13-2003 01:27 PM

Oops! Where's GRUB?
 
Hello,

I had linux and windows XP on seperate drives using GRUB as the bootloader and everything was fine. Yesterday, I reformatted my Windows (C:) drive and reinstalled windows. Now, windows boots up everytime. GRUB does't boot anymore. I'm pretty sure that my new windows installation rewrote the MBR, erasing any entries that GRUB had in there. My question is, how do I get GRUB back without having to reinstall Linux?

Mathieu 09-13-2003 02:49 PM

You can use your Linux boot disk in order to boot the system.
If you do not have a boot disk, you can probably boot into Rescue Mode using your Linux CD.

When the system is booted, login as root and type:
Code:

/sbin/grub-install /dev/hda


All times are GMT -5. The time now is 09:18 PM.