Missing Windows from Grub After Dual Boot? Here's What You Can Do

Can't see Windows in Grub after successfully dual booting? That's because os-prober is disabled. Here's how to fix it.
Warp Terminal

One of the issues I encountered after dual booting Windows with Linux is the missing Windows entry from the grub menu.

Here's the scenario. Windows was present on the computer. I installed CachyOS alongside Windows. I selected to install the Grub bootloader that allows booting into Linux, Windows (and any other OS present on the system) along with the option to access UEFI.

Only this time, Grub did not show Windows in the menu πŸ˜”

Windows missing from grub bootloader in dual boot
Missing Windows from Grub bootloader

That was disappointing but not surprising because I am aware that this is a feature.

Let me show you how you can fix this by enabling os-prober feature in Grub and then updating it.

Step 1: Enable os-prober in grub

Grub config file is located at /etc/default/grub. If you open it via Nano or some editor, you'll see at the end of this file that os-prober is disabled by default sighting security reasons.

Grub config file showing that OS prober is disabled

If you are familiar with any terminal-based text editor, use it to uncomment the line # GRUB_DISABLE_OS_PROBER=false by removing the # at the beginning of the line.

However, if you are absolutely new to the command line, you can use this command in the terminal:

echo "GRUB_DISABLE_OS_PROBER=false" | sudo tee -a /etc/default/grub

It will ask for your password. It should be the same account password you use to log in to the system.

🚧
When you type the password in Linux terminal, nothing is reflected on the screen. It feels as if your system is hanged, as there is no visible feedback. Don't worry. It's a security feature and most Linux terminals won't even show asterisks (*) as you enter the password. Just type it in and enter.

With os-prober enabled, Grub will look for the presence of other operating systems in EFI folder and will add them in the bootloader menu.

There is one little problem. The config changes won't take place unless you update grub.

Step 2: Update grub

On Ubuntu and some other distributions, there is a dedicated command to update grub:

sudo update-grub

However, on Arch and some other distributions, you'll end up with update-grub command not found error.

That's because update-grub is not a standard command. It is just la stub for this command:

sudo grub-mkconfig -o /boot/grub/grub.cfg

Run the above command if your system doesn't have update-grub.

It should show an output like this:

Run update grub command to see the effect of os prober finding Windows boot manager

And as you can see in the above output, grub is probing for other OS and has found Windows boot manager. This is an indication that when you reboot the system, grub should show Windows in the available option.

Getting Windows back in Grub bootloader
And Windows is back in Grub

Still no Windows boot manager?

See, this method only works when dual boot succeeded properly and you have all EFI settings located in the same folder under the same ESP partition.

If that's not the case, you could try accessing the UEFI settings, go to boot order. Windows boot manager should be present there and if you move it up the order, you can boot from it into Windows.

This is not the most convenient option, I understand but it's a workaround until you figure out why Grub bootloader could not see Windows.

πŸ’‘ Bonus tip: The time synchronization issue

Since we are discussing dual booting Windows and Linux, let me share another potential issue you'll encounter. You'll notice that system time changes when you switch between Windows and Linux. You can fix it, if you want.

[Solved] Wrong Time in Windows 10 After Dual Boot With Linux
If you dual boot Windows and Linux, you’ll notice that often one of them shows incorrect time. Here’s why that happens and what you can do to fix it.

πŸ’¬ I hope this little trick helps you get a better dual booting experience. Let me know in the comments if you were able to get Windows back in Grub.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries πŸ•΅οΈβ€β™‚οΈ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.