Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active January 25, 2020 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/3b24b9b85122ff6afc078db43abd5def to your computer and use it in GitHub Desktop.
Save keijiro/3b24b9b85122ff6afc078db43abd5def to your computer and use it in GitHub Desktop.
How I recovered Windows Boot Manager removed by the Ubuntu installer.

What happened

I upgraded Ubuntu 18.04 to 19.10 on my main PC. After installation, Windows Boot Manager disappeared from the GRUB boot menu. I found the EFI partition was missing the /EFI/Microsoft directory. It seemed that the Ubuntu installer mistakenly removed the boot manager from EFI.

How I recovered it

  • Create a Windows installation media (USB stick) using Windows Media Creation Tool.
  • Boot the Windows installer and choose "Repair your computer".
  • Launch the command prompt from the repair tool menu.
  • bcdboot [Windows drive]:\Windows /s [EFI drive]: /f UEFI
  • Reset and boot Windows Boot Manager via motherboard setup menu (BIOS).

I also had to use the boot-repair tool on Ubuntu to recover the Windows Boot Manager entry in the GRUB menu using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment