Image 01 Image 02

Archive for June 6th, 2007

Recover grub after windows install

Wednesday, June 6th, 2007

I had to reinstall my windows today morning and as a result lost my ubuntu grub . I see that many others have been doing this .Here is a quick how to restore .

1. Boot in to the OS using the ubuntu live cd or if you are using any other GNU/Linux variant then use you boot cd in to rescue mode ( Assuming you know how to boot in to single user mode) .

2 . on the command prompt

$sudo -i ( su for other variants)

root#grub

grub> find /boot/grub/stage1


(hd0,1) (might vary ,so note down this)


grub>root (hd0,1)


grub>setup (hd0)

and you will have the grub written and boot in to the linux :-)

[tags]grub,ubuntu[/tags]


FireStats icon Powered by FireStats