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.

When the bootloader (GRUB) is broken, I cannot access neither Ubuntu nor Windows.

I heard that an easy solution to fix this is to use the Boot-Repair tool from an Ubuntu liveCD (or liveUSB).

What are the steps to do this?

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted
  1. Insert the Ubuntu disc, or connect the Ubuntu liveUSB.
  2. Setup the BIOS to make it boot on the Ubuntu disc
  3. Reboot the PC
  4. When asked, choose Try Ubuntu Try Ubuntu
  5. Connect internet
  6. Open a terminal, and type (or copy-paste) the following command:

sudo add-apt-repository -y ppa:yannubuntu/boot-repair

Press Enter, then type the following command (useful if you are using an Ubuntu14.04 disc):

sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list

Press Enter, then type the following command:

sudo apt-get update

Press Enter, then type the following command:

sudo apt-get install -y boot-repair && boot-repair

Press Enter. That's it, the Boot-Repair window will appear!

Boot-Repair main window

share|improve this answer
    
It would be awesome to get this pre-installed on the live dvd's for future releases, because this is such a critical tool with the latest window$8 UEFI mess :( –  AmanicA Dec 5 '13 at 12:11
1  
you can vote for this: bugs.launchpad.net/boot-repair/+bug/806291 –  LovinBuntu Dec 5 '13 at 21:19
    
This gives me an error "must run in 64 bit session" –  JohnMerlino Apr 27 at 17:49
    
John, that message indicates you need to use a 64bit Ubuntu disc. –  LovinBuntu Apr 27 at 22:33
add comment

I am using Ubuntu 12.04.

You should use

sudo apt-get install -y --force-yes boot-repair && boot-repair

instead of

sudo apt-get install -y boot-repair && boot-repair
share|improve this answer
add comment

protected by Community Mar 5 at 15:33

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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