LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GRUB Gone!!! (https://www.linuxquestions.org/questions/linux-newbie-8/grub-gone-494814/)

maverick_awp 10-23-2006 06:15 AM

GRUB Gone!!!
 
Hi,
I am using ubuntu with dual boot winXP...
Recently I repaired my winXP partition. In the process the MBR got replaced. Now GRUB is gone. How can I boot into ubuntu.

Thanks in advance,
Karthik

sn68 10-23-2006 07:04 AM

search for "reinstall grub" (LQ or google, both will turn up enough material)

pixellany 10-23-2006 08:01 AM

Boot from a live CD--or from the Ubuntu install disk.

When Windows is installed (or sometimes repaired) it puts its own boot code in the mbr. This is why conventional wisdom is always to install Win first, then Linux.

If you boot up form the Ubuntu install disk, there should be an option to restore, repair, etc.

From a live LinuxCD (eg Knoppix) you should be able to run the grub shell (type "grub" at a terminal prompt)

Once in the grub shell, you do this:
root (hd0,X)
setup (hd0)
"X" is the partition number where your grub config file is---typically this is the /boot partition of your Linux install. If Linux is on the second partition of your only drive, then you would use "1" (grub numbering starts with "0")

To find all the partitions (running from the live Linux):
fdisk -l


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