46

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?

LovinBuntu
  • 3,615
  • 2
  • 20
  • 21

1 Answers1

50
  1. Insert or connect the Ubuntu live media (DVD or USB).
  2. Find out how to boot your computer from removable media.

    Note that there is a difference between booting of older computers (BIOS/MBR) and newer ones designed for Windows 8 and later releases (UEFI/GPT).

    Reboot the computer from live media and choose Try Ubuntu when asked.

    Try Ubuntu

  3. Connect to the internet, then open a terminal with Ctrl+Alt+t, paste the following commands and run them by pressing Enter:

    sudo apt install software-properties-common; \
    sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"; \
    sudo add-apt-repository -y ppa:yannubuntu/boot-repair; \
    sudo apt-get update; \
    sudo apt-get install -y boot-repair && boot-repair
    

    Note: You copy and run them all at once. If you want to run them individually just remove the trailing "; \".

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

    Boot-Repair main window

Related:

Thermostat
  • 124
  • 6
LovinBuntu
  • 3,615
  • 2
  • 20
  • 21
  • 7
    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 05 '13 at 12:11
  • 2
    you can vote for this: https://bugs.launchpad.net/boot-repair/+bug/806291 – LovinBuntu Dec 05 '13 at 21:19
  • This gives me an error "must run in 64 bit session" – JohnMerlino Apr 27 '14 at 17:49
  • John, that message indicates you need to use a 64bit Ubuntu disc. – LovinBuntu Apr 27 '14 at 22:33
  • What if I don't have internet on the PC I want to repair? How can I get Boot Repair on the live usb? – a06e Aug 01 '14 at 15:10
  • 2
    becko, you can use a disk (USB or CD/DVD) with Boot-Repair pre-installed. See https://help.ubuntu.com/community/Boot-Repair#A1st_option_:_get_a_disk_including_Boot-Repair – LovinBuntu Aug 01 '14 at 21:56