Categories Ubuntu

Restore GRUB boot loader after installing Windows

By installing Windows 7 after Linux Ubuntu, you will be unable to boot on it. Windows will have erased the boot loader called GRUB which contained the list of available operating systems. So we need to reinstall GRUB to get back access to Ubuntu and Windows. Simple handling that takes less than 5 minutes.

Capture d'écran - Réparateur de démarrage Ubuntu

Step 1 — Create a live CD/USB from Ubuntu

This first step will allow us to have a live version of Ubuntu. In other words, we will be able to access the latter and proceed with the restoration of GRUB. This system will reside in RAM and has no connection to the inaccessible version of Ubuntu. You're following me?

To carry out this operation, please refer to tutorial Create a live USB from Ubuntu 11.10.

Step 2 — Reinstallation of the GRUB charger with Boot Repair

The second step is to start on your Ubuntu live.

To do this, insert your CD or USB stick and boot it. You may have to change a parameter in the BIOS. Often, just press F8 or F12 when booting and then select the DVD player or USB port.

Now we need to install a magic utility that will allow us to automatically solve the boot problem. Note that the installation is only virtual as nothing is registered on your hard drive.

To do this, open a Terminal then run the following command:

sudo add-apt-repository ppa:yannubuntu/boot-repair & & sudo apt-get update & & sudo apt-get install -y boot-repair

Press the button Entry when asked, then wait a few moments.

Capture d'écran - Installation de Boot Repair sous Ubuntu
Screenshot — Installation of Boot Repair under Ubuntu

Once the operation is complete, enter boot in the Ubuntu search tool then launch Start-up repairer.

Capture d'écran - Lancement du logiciel Boot Repair
Screenshot — Launch of Boot Repair software

It is likely that you will be asked to update what to do by clicking on Yes.

Capture d'écran - Mise à jour de Boot Repair
Screenshot of screen — Update of Boot Repair

Here we are finally ready to restore your boot. Just click on the button Recommended repair then let the software do.

Capture d'écran - Réparateur de démarrage Ubuntu
Screenshot — Ubuntu Start Repair

If you wish, unwind the menu Advanced Options for a fine paramity.

Capture d'écran - Options avancées du réparateur de démarrage
Screenshot — Advanced Start Repair Options

Be careful to understand what you are doing in this particular case! To validate, do not forget to do Apply.

After the recovery operations are complete, restart the computer and then check that Windows is again in the list of available operating systems.

This solution deserves to be better known because it was difficult for me to find a clear and effective method of restoring the GRUB boot loader. This tutorial should make your life easier! 


Leave a Reply

  • Mealin

    Of course, a solution that is clearly set out and that works without taking the lead, I think that many have long been dreaming of it!

    Thank you for this great tuto as always.

    • Dukyduke

      Yes, it works very well under Seven 64 bits.
      I had to fix Windows 7 and therefore overwrite the GRUB fromubuntu to pass seven in test mode. Indeed, there is no way to run the command “bcdedit -set testsigning on” from the dualboot. FreeOTFE (encrypted players) uses unsigned drivers that seven refuses to install, unless seven works in test mode. So I repaired seven with the install dvd which removed the Ubuntu/Seven dualboot. Then I passed seven in test mode. Then I fixed the dualboot with Aurélien’s super tuto. Everything works nickel: dualboot Ubuntu/Seven and Seven is in test mode! Thanks for the tuto.

  • arrgh

    thanks for the tutorial, in training I'm forced to use this crappy windows, but at your tip I saved my mint! the ubuntu community is the best to make computer love

  • nitneuq95

    Thank you very much for your solution, it should really be better known, even on Google, I‘ve been searching for days and I just found this page (and even typing the full title of the tutorial I don’t fall on your site). Maybe you should put tags, I don't know.
    otherwise can you contact the support of ubuntu to offer them the publication of this solution? (I can do it with your consent).
    Anyway, thank you again, I was stuck. Well done.

  • Thi54

    Good morning.

    I am on Xubuntu 18.04 in dual-boot with Windows 10.
    But Xubuntu no longer starts, I tried with a USB stick, with Boot repair, and an installation CD via the EUFI, and also via Windows for CD and USB stick.

    I tried to reinstall Ubuntu by USB stick or CD it doesn't work.
    After that, I thought of formatting the Linux partition that is dual-boot with Windows.
    But I don‘t know if I can reinstall it again with a USB stick, since it doesn’t restart at that level.

    I just found super Grub, here I would like to know your opinion, be I format and try to reinstall or I use suber Grub to repair Grub.
    What do you think?
    Are there other options for me to restart the Xubuntu partition?

    Thank you in advance


    Good morning
    Win 10 is installed on the “C” SSD
    Linux MINT Cinnamon is embedded on disk “D”
    My DATA personal data, accessible from Windows or LINUX, is stored on the “E” disk.
    My problem is this: To switch from Windows to LINUX, I have to restart the machine after changing the boot order.
    Do I need to install a GRUB charger, and how to proceed?

    My boot contains:
    — Windows BootManager (P3: Kingston)
    — Ubuntu (P3: WDC)

    Thank you for your help