I have Ubuntu and Windows XP installed on my computer. Everything was working fine, when one fine day I suddenly had the inspiration to install a software which would allow me to access Linux partition from Windows. After Googling for it, I did find such a software. Unfortunately, either something went wrong with installation or the software was just plain dumb. Anyway, I ended up messing up my GRUB and wasn't able to boot either Windows or Linux. After much hair-pulling and searching on the net, I found a way to restore GRUB. For the benefit of any other unfortunate beings caught in the same situation here is the way:
Boot using Ubuntu Live CD
Open a terminal
>sudo find /boot/grub/stage1
This will show you the partion where Grub is installed. In my case it was (hd0,8)
>sudo grub
>root (hd0,8)
In your case the partition returned by the previous command
>setup (hd0)
>quit
You are done.Just reboot the computer and your GRUB is back.
No comments:
Post a Comment