Home » Internet » How to Fix Grub After Windows 10 Upgrade

How to Fix Grub After Windows 10 Upgrade

by Pratik

Windows has been pushing a lot of updates lately and there is one thing consistent amongst all of them. They all override the Windows Boot Manager. So, in case you are running Ubuntu and Windows on dual boot, you will not be able to boot into Ubuntu after the Windows update. Nevertheless, we have found a couple of unique ways to fix this issue.

How to Fix Grub After Windows 10 Upgrade

Case 1: Faulty Windows Boot Manager

Post-Windows update, Microsoft overrides the Windows Boot Manager to use the NT bootloader. So, now when you restart your system, it directly boots up to Windows 10. This is because the Windows bootloader cannot identify Ubuntu. In order to enable booting to Ubuntu, we would need to make changes in the Windows boot registry.

To do that, open the command line with administrator privileges and run the following command.

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

ubuntu-grub-bcdedit

This would change the bootloader back to GRUB. Now, reboot your system and most probably, you will get the violet GRUB menu.

grub2-boot-screen

But, in case you get a “System Bootloader not found” error message, we would need to disable secure boot through the UEFI firmware.

system-bootloader-not-found.jog

To get to the firmware settings, press F2 or F10 on the boot splash screen. In the firmware settings, disable secure boot. I am using an Acer E5-575G laptop, so my firmware settings would be different from yours. In Acer, you need to set the Supervisor password in order to disable Secure Boot.

disable-secure-boot

Case 2: Faulty GRUB file

If the first solution didn’t fix your problem, a possible reason may be that you have a broken GRUB file. In that scenario, we would need to repair the file using a tool called Boot Repair. Now, since you cannot boot into Ubuntu, we would need a bootable USB drive or Ubuntu live CD. You can download the Ubuntu ISO image from the official website and then use a Bootable USB Software to flash the image on the USB. Plugin the bootable USB media or live CD, restart your system and select “Try Ubuntu without installing”.

try-ubuntu

Once you boot into live Ubuntu, open the command line, and type the following command.

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

The command will add the Boot Repair tool’s repository to apt and also update all the repositories.

add-apt-repository

Now, we can download the repair tool using the following command

sudo apt-get install -y boot-repair

install-boot-repair

After downloading the tool, run it using the following command.

boot-repair

The Boot Repair tool will now automatically scan all the disks in your system to find the ext4 partition. Post that, you will be presented with 2 options. Click on “Recommended Repair” and it will handle all the complexities. If you have dealt with GRUB before and you have an in-depth idea of the Ubuntu file system, you can also select “Advanced Options”. This will provide you more drilled down controls. However, it’s recommended to go with “Recommended Repair” as it mostly solves the problem.

If you get a prompt saying secure boot is enabled, click on Continue and head over to the BIOS settings and disable secure boot.

recommended-repiar-boot

Restart your system and now you should see the GRUB boot menu which will let you boot to Ubuntu.

Wrapping Up

These solutions should fix your problem. There are slim chances that they won’t and in that case, you would have to install a fresh copy of Ubuntu all over again.

For more queries or issues regarding Ubuntu and GRUB2, let me know in the comments below.

Also Read: How to Disable Incognito Mode in Windows, Ubuntu, and macOS

You may also like

Leave a Comment