How To Restore Grub In Ubuntu
If you install a dual boot of Windows or Mac OSX on your Ubuntu machine, you may find that your Grub bootloader are wiped out and you can’t boot into any of your OS. If this is the case, the only way is to restore Grub back in your Ubuntu system.
Restoration of Grub is very easy. All you need is the Ubuntu Live CD (you should already have it if you install Ubuntu).
Boot up your live CD
In the desktop, open terminal (Applications -> Accessories -> Terminal).
sudo grub
This will set it to grub mode
find /boot/grub/stage1
This will locate your boot partition. If you already know the location, you can ignore this step.
root (hd0,0)
Replace the (hd0,0) by your boot partition number. If your Ubuntu is installed in the second partition, then change it to (hd0,1)
setup (hd0)
quit
Reboot your system. You should be able to access the Grub bootloader now.
Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.





5 pingbacks/trackbacks (Click to open)
- Articles Collection of Apr’08 « Dako-Tux
- Tom joj » My computer keeps crashing?
- Recuperando el GRUB después de instalar Windows « Gabuntu
- Recuperando el GRUB después de instalar Windows « Portal Linux
- Recuperando el GRUB después de instalar Windows | El Blog de Rigo
[Click to close]6 Responses
Super Grub Disk rocks! Multi Linux!!
repair restore recover [reinstall] linux GRUB bootloader/menu,
or multi OS/distro multi disks/partitions MBR!
It works on my ubuntu 7.04 in 1 minute!
see their wiki for
“SGD Quick Menu”
“Multi Distribution Boot Howto”
“Boot Problems”
“Howto Fix Grub”
Reply
Argh…
I have tried Super Grub Disc, and i have tried your suggestion as mentioned above, still it didn’t work. My screen showed:
error with boot.ini
then in continued boot to xp.
Reply
Damien Reply:
June 14th, 2009 at 8:23 am
Perhaps you want to try with the Ubuntu Live CD rather than the SuperGrub Disc? It worked for me 100% of the time.
Reply
Hi,im having Vista installed 1st then Ubuntu in my laptop,once i booted i get like dis
Ubuntu 8.10
Other Operating Systems:
Windows Vista (loader)
I’m able to boot into Ubuntu,but when i select Windows Vista and press enter, it says
Starting up…
This is not a bootable disk. Please insert a bootable floppy and press any key to try again…
kindly let me know how to recover the process to boot into Windows Vista
Reply
Stavros Ioannidis Reply:
August 25th, 2009 at 6:31 am
You find a Windows Vista Recovery disc and restore your installation.
Then with the procedure described here you restore grub, and then you can boot both OSs :)
Hope it’s helpful
Reply
yup its great……
but many have the prob with stage1 not being found
i.e $find /boot/grub/stage1
gives an error of not found or so..
in this case we need to mount the boot
here’s it is ..coz i faced the same prob
then type the following using a live cd of ubuntu or any..and in terminal
use sudo whereever needed
mkdir /mnt/orange/
mount /dev/XXX? /mnt/orange (XXX i.e.sda1..)
chroot /mnt/orange /bin/bash
grub-install /dev/XXX (XXX i.e . hd0)
Reply