Technical Anshu
Tutorials Blog
🐧 Dual Boot Fix

Windows Missing From the GRUB Menu After Installing Ubuntu

The GRUB menu appears, Ubuntu starts — but there is no Windows line to choose. Windows itself is unharmed and a keypress away through the firmware menu. What is missing is one menu entry, and the reason is a GRUB default that surprises everyone the first time.

✍️ Technical Anshu🐧 Ubuntu and Windows⏱️ 7 minute read
🎥 Watch the video — the dual boot installation this menu belongs to, shown live

GRUB builds its menu by scanning for other operating systems with a helper called os-prober. Since GRUB 2.06 — the version Ubuntu 22.04 arrived with — os-prober is switched off by default when GRUB updates its configuration, for security reasons. Installations done the automatic alongside way usually still get their Windows entry from the installer itself, but a manual install, a GRUB reinstall or a later configuration update can leave the menu with Ubuntu only. The fix is one line and one command.

1

First Confirm Windows Is Really Still There

Before changing any configuration, prove the patient is alive. Nothing in this fix matters if Windows itself is gone, and it almost never is.

  1. Restart and open the firmware one-time boot menu — commonly F12, F8 or Esc
  2. Choose Windows Boot Manager and confirm Windows starts normally
  3. Back in Ubuntu, run lsblk -f and look for your Windows NTFS partition in the list

Windows present in both checks means the situation is exactly the title of this page — a missing menu entry, not a missing system. That is the good outcome, and the rest is configuration.

2

Why GRUB Stopped Looking — the os-prober Default

It helps to know this is deliberate, not a bug in your install. Scanning other systems' boot files and trusting what it finds was judged a security risk, so GRUB's makers disabled the scan by default and left a switch for people who genuinely dual boot.

  1. Automatic alongside installs usually keep their Windows entry because the installer adds it directly
  2. Manual partitioning installs and GRUB repairs are where the entry goes missing
  3. Any later update-grub run without the switch keeps the menu Ubuntu-only

So the fix is not to hack the menu by hand. It is to flip GRUB's own switch back on, once, and let the tool rebuild the menu the proper way.

3

Enable os-prober and Rebuild the Menu

Three moves in a terminal: open the GRUB settings file, add the switch, regenerate.

  1. Open the settings with sudo nano /etc/default/grub
  2. Add the line GRUB_DISABLE_OS_PROBER=false — the name reads backwards, but false here means os-prober is allowed to run
  3. Save with Ctrl + O, exit with Ctrl + X
  4. Rebuild with sudo update-grub and watch the output

The line you are hoping to see scroll past is in the panel below — GRUB announcing that it found Windows Boot Manager. When it appears, restart and the Windows entry is sitting in the menu.

Terminal — Ubuntu — update-grub finding Windows
$ sudo update-grub Generating grub configuration file ... Found linux image: /boot/vmlinuz Found initrd image: /boot/initrd.img Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi Adding boot menu entry for UEFI Firmware Settings ... done
The Found Windows Boot Manager line is the success signal. Version numbers and drive names on your machine will differ slightly.
4

Still No Windows Entry — Deeper Causes

If os-prober is enabled and the Found line never appears, the scan ran but found nothing it trusted. The causes narrow quickly from there.

  1. Mixed boot modes — Ubuntu installed in legacy mode cannot chain to a UEFI Windows; both must share one mode, as the main guide explains
  2. EFI partition not mounted during the update — check that the EFI partition appears in lsblk output and mounts without error
  3. Windows boot files damaged — if Windows will not start from the firmware menu either, repair its boot files from a Windows USB first, then rebuild GRUB

Work them in that order. Mode mismatch is the most common of the three by far, and it is also the one no amount of update-grub runs can fix from inside Ubuntu.

5

Keep the Entry From Disappearing Again

Once the switch is set, later configuration updates keep using it — the Windows entry survives ordinary updates. What can still remove it is a fresh GRUB reinstall or a repair tool writing a new default configuration.

  1. After any bootloader repair, glance at /etc/default/grub and confirm the os-prober line survived
  2. If the entry ever vanishes again, the fix is the same three moves on this page — nothing new has broken
  3. Keep booting both systems occasionally; a Windows feature update followed by months away is how small boot issues compound unnoticed

Dual boot menus are machinery, and machinery likes a little attention. One enabled switch turns this particular failure into a thirty-second non-event forever.

🔴 Do not hand-edit the generated GRUB menu file (grub.cfg) to paste Windows in. It is rebuilt on every update and your edit will vanish. The os-prober switch in /etc/default/grub is the input the rebuild reads — fix it there and the entry is permanent.

🎥 Watch the Dual Boot Video

Watch the complete dual boot installation and menu setup from the video, done live from ISO to GRUB.

▶️ Watch Full Video
❓ Frequently Asked Questions

Why did Windows disappear from my GRUB menu but not from the PC

Because the menu and the system are separate things. GRUB stopped scanning for other systems by default — os-prober is disabled in current GRUB versions — so a rebuilt configuration contains only Ubuntu. Windows was never touched, which the firmware boot menu proves in one start. Enabling os-prober and running update-grub restores the entry.

Is enabling os-prober a security risk

It reverses a deliberate default, so be aware of the trade: GRUB will scan attached systems' boot files when building its menu. On your own home machine with your own Windows install, that is the normal dual boot arrangement millions of people run. On a machine exposed to untrusted drives, the default exists for a reason — the choice is yours and it is documented here honestly.

update-grub ran but still did not find Windows

Then the scan found nothing usable. The usual reasons are a boot mode mismatch — Ubuntu in legacy mode cannot add a UEFI Windows — an EFI partition that is not mounting, or damaged Windows boot files. Confirm Windows still starts from the firmware boot menu; that single test splits the causes in half.

This guide is based on the Technical Anshu video linked above • Stuck on a step? Ask in the video comments — you will get a reply 🙏