Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I messed up my new laptop while trying to set up a dual-boot with Ubuntu and Windows 8.I did a whole bunch of stuff trying to get it to work and now when I try to boot I get stuck in GRUB's recovery mode with no errors.

My question is: Can I boot from Ubuntu on a USB drive to erase both Windows 8 and Ubuntu to just install Ubuntu? Will this get ride of the GRUB rescue mode problem.

share|improve this question
add comment

3 Answers 3

This is already answered here: How to reinstall Grub after burg and tons of other places on this forum.

You are able to boot the Ubuntu installer and erase all of your paritions, but you are also able to save you installs of Ubuntu and Windows but reinstalling GRUB. Once the Ubuntu installer boots, open a command line by pressing Ctlr+Alt+T then type sudo grub-install /dev/sda

share|improve this answer
add comment

Insert your Ubuntu CD, reboot your computer and set it to boot from CD in the BIOS and boot into a live session. You can also use a LiveUSB if you have created one in the past. Install and run

Boot-Repair

Click "Recommended Repair". Now reboot your system. The usual GRUB boot menu should appear. If it does not, hold Left Shift while booting. You will be able to choose between Ubuntu and Windows.

How to install Boot-Repair

sudo apt-get install boot-repair

OR

sudo grub-install

(grub install too)

share|improve this answer
add comment

Don't bother to run Ubuntu live CD. It's not difficult to repair GRUB from the rescue mode.

Command: ls

It will list all your drives and partitions, like:

(hd0) (hd0,msdos2) (hd0,msdos1)

If you don't know your Ubuntu boot partition, check them one by one:

ls (hd0,msdos2)/

ls (hd0,msdos1)/

When you hit the right one, you'll get a line mentioning "lost+found" an so on.

Assuming (hd0,msdos2) is the right partition:

set prefix=(hd0,2)/boot/grub

set root=(hd0,2)

insmod normal

normal

Now you'll be able to boot into Ubuntu. Once you do, execute the following commands:

sudo update-grub

sudo grub-install /dev/sda

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.