PDA

View Full Version : [ubuntu] Repairing GRUB loader



hemajith
June 11th, 2008, 05:09 PM
I had a dual boot system with XP and Ubuntu. I had to reinstall Windows and installed Vista. Now I cannot get the Ubuntu to load! How can I recover my Ubuntu and get the Grub loader to work?

mxg01
June 11th, 2008, 05:17 PM
You can restore GRUB using the Ubuntu liveCD.

Here is a thread on how to do it:

http://ubuntuforums.org/showthread.php?t=224351

hemajith
June 11th, 2008, 05:25 PM
I tried running the grub shell, it goes to 'grub>'. But when I give 'find /boot/grub/stage1' command, it says 'error15 : file not found'

mxg01
June 11th, 2008, 05:51 PM
If you know which drive and partition grub is installed on then you can progress to the next step using the values you know. So, if you have one hard drive and /boot on the first partition then type:


root (hd0,0)

where hd0 is the hard drive and 0 is the partition number. If it's the second partition then it's (hd0,1).

Try that and see how it goes.

meierfra.
June 11th, 2008, 06:09 PM
post the output of


sudo fdisk -l
(l is a lowercase L)

hemajith
June 11th, 2008, 06:20 PM
This worked! Thank you MXG.... find would not work but I opened the menu.lst file in a text editor and found the partition Ubuntu is installed and then followed the rest of the commands and it was pretty simple afterwards..Thank you very much...