Ubuntu – Boot-Repair created too many grub menu entries for Windows


I recently installed Ubuntu in dual boot along with Windows 10 on an HP laptop. Initially I was unable to boot up Windows using grub as selecting the Windows options would just loop back to grub.

Then I performed a boot repair, and all these extra options showed up in the grub menu.

I'm able to open up Windows using "Windows UEFI bootmgfw.efi" option, but not using the standard option of "Windows Boot Manager (on /dev/sda1).

How do I reduce these entries and why can't I boot Windows using the latter option?

Here's an image of grub. The first option is Ubuntu:

grub - the 1st option is Ubuntu

Best Answer

Windows is off-topic here, but the answer is that this is very old technology and the boot sector is only 512 bytes, so it's not big enough to hold everything we would like it to hold.

To easily add and remove entries from grub all on your own, please:

  1. Take a full system back-up of your entire computer including the other OSes using CloneZilla Live
  2. No, I wasn't kidding! Take a full system back-up first! :-)
  3. Whenever someone tells you to install a PPA be very cautious, do your own research if this is what you really want and only then continue
  4. Install grub-customizer by executing the following commands:

    sudo add-apt-repository ppa:danielrichter2007/grub-customizer
    sudo apt update
    sudo apt install grub-customizer
  5. Start grub-customizer and customize the hell out of it: enter image description here

  6. If you run into serious trouble, restore your system back-up.