5

I got a new Windows laptop, and I wanted to dual boot with Linux. I installed Fedora, before changing my mind and going back to Mint. I'd like to keep Win 8.1 and Mint.

However, now my UEFI boot menu contains five entries: enter image description here

The first two take me to Grub, which I guess is leftover from my Fedora install. The next two both take me to Linux Mint, and the last takes me to Win 8.1.

I'd like to remove both Fedora entries and one Linux Mint entry. The "Setup" interface makes it pretty simple to understand how, but:

  1. I'd like to make sure deleting those entries isn't something stupid
  2. I don't know how to handle those remnants of Grub that are left from the Fedora install. Should I delete them? Ignore them?

If I do delete the Grub remnants, I'm not sure how to do so, or even which partition it's on. Here's a look at my partition table in Gparted and my partition table in Windows. Last but not least, here's what EasyBCD shows:

There are a total of 5 entries listed in the bootloader.

Default: Windows 8.1
Timeout: 30 seconds
EasyBCD Boot Device: C:\

Entry #1
Name: Fedora
BCD ID: {51954931-ff5c-11e4-8caa-f68841e7e615}
Device: \Device\HarddiskVolume1
Bootloader Path: \EFI\FEDORA\SHIM.EFI

Entry #2
Name: ubuntu
BCD ID: {51954933-ff5c-11e4-8caa-f68841e7e615}
Device: \Device\HarddiskVolume1
Bootloader Path: \EFI\UBUNTU\SHIMX64.EFI

Entry #3
Name: UEFI OS
BCD ID: {51954932-ff5c-11e4-8caa-f68841e7e615}
Device: \Device\HarddiskVolume1
Bootloader Path: \EFI\BOOT\BOOTX64.EFI

Entry #4
Name: ubuntu
BCD ID: {51954934-ff5c-11e4-8caa-f68841e7e615}
Device: \Device\HarddiskVolume1
Bootloader Path: \EFI\UBUNTU\GRUBX64.EFI

Entry #5
Name: Windows 8.1
BCD ID: {current}
Drive: C:\
Bootloader Path: \Windows\system32\winload.efi

How should I handle these extra boot options without bricking my laptop?

3

In Linux use the command efibootmgr

efibootmgr -v 

lists entries.

efibootmgr -b 0002 -B

would remove entry number 2 from the menu.

In case you wanted to regenerate these values in case they are deleted: First mount your ESP. Usually to /boot/efi but /mnt is fine to. Then

grub-install --target=x86_64-efi --efi-directory=[ESP mount] --bootloader-id=[name]

(this does not reconfigure GRUB)

If you need to reenter the entry for Fedora or Ubuntu using Shim instead of GRUB

sudo efibootmgr -c -L Fedora -d /dev/sdX -p Y -l \\EFI\\fedora\\shim.efi 

X is the device and Y is the partition number of the EFI system partition (ESP).

Also note \EFI\BOOT\BOOTX64.EFI will be loaded when you select the harddisk from UEFI instead of one of the NVram entries.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.