Now, I removed Ubuntu completely from my PC (since it was installed before using Wubi Installer). And re-installed it the old fashion way. Installation was smooth no problems at all except, when I rebooted to boot ubuntu for the first time, it did not boot and showed an error and saying GRUB Rescue > What shall I do now ?! I searched google and found out about boot repair. The thing is, will it mess my windows ?! Or does repair Ubuntu and linux distributions only ?!
-
1It adds a grub boot loader that will allow you to boot windows – Meer Borg Mar 13 '13 at 18:50
-
Windows boots fine, Ubuntu is not booting at all – Mar 13 '13 at 18:57
-
It finds all partitions that have operating systems, creates a menu of them and you will then be able to boot both, used boot-repair a few times its a life saver – Meer Borg Mar 13 '13 at 19:00
2 Answers
I haven't heard of boot repair, but I might have a working solution for you.
- Get a live USB and boot into the system.
- Find out which partition is Ubuntu. You can do this via running disk utility (palimpsest in terminal). Then click on your harddisk and select your ubuntu partition. Write down the device, for example: "/dev/sda5".
Open a terminal (Ctrl + Alt + T) and mount the ubuntu partition:
sudo mount /dev/sda5 /mnt
Install grub on your ubuntu partition:
sudo grub-install --root-directory=/mnt /dev/sda
The command above assumes your hardrive device is /dev/sda, so it will install the grub bootloader on the harddrive. If everything goes well, grub will try to find all the operating systems located on your computer. After that you should be able to reboot and see a normal grub menu. Good luck!

- 253
-
boot-repair is "preferred" as it is a graphical tool. See https://help.ubuntu.com/community/Boot-Repair – Panther Mar 13 '13 at 19:01
you have to reinstall grub. use boot-repair. it is easy to use. go on live ubuntu and the install boot-repair. open boot-repair and go to recommended repair. one thing, you have to write down the link showed before reboot message.

- 16
-
Thanks for the help I used boot repair and it worked fine, just had to update grub through the terminal since the boot menu did not show windows. – Mar 15 '13 at 05:39