How to Repair the GRUB of a Dual-Boot Kali-Windows or Ubuntu-Windows Computer

GRUB menu with operating system choices on a dual-boot PC

You have set up a dual-boot with Kali or Ubuntu on your Windows computer, but you’ve just noticed that the boot menu, commonly known as GRUB, no longer shows the option to boot into Windows. This issue happens more often than you might think and is usually the result of an update to Kali or Ubuntu.

Why Does GRUB Disappear After an Update?

During a Kali or Ubuntu update, GRUB can be overwritten or misconfigured, preventing the menu from displaying correctly. Windows updates can also change the boot order in the UEFI, thereby removing access to GRUB.

Steps to Restore GRUB

1) Detect the Operating Systems Installed on Your Hard Drive

Open a terminal and enter the following command:

sudo os-prober

The terminal will then display the other OS (Windows) also installed on your hard drive.

2) Update GRUB

Updating GRUB is very simple with the following command:

sudo update-grub

For many of you, this command will be enough to get your full and functional GRUB back. You can turn off your computer and restart it to verify.
If that’s not the case, you’ll need to enter a few additional commands. It’s not complicated at all, but we recommend following the instructions in the video below to make things easier.

Watch This Video for the Detailed Procedure: