Fixed Grub error: “symbol not found: ‘grub_efi_secure_boot'”

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

If you have an EFI bios boot enabled computer then updating Ubuntu would leave Grub with the following error:

error: symbol not found: 'grub_efi_secure_boot'.
error: symbol not found: 'grub_efi_secure_boot'.

The solution to this error is identical to the original hack needed to enable dual boot. The issue is that Ubuntu update copies the updated EFI bootloader to a different location than what your bios boots. First we need to identify the partition in which the EFI boot loader files are located.

To find this we need to take a look at the partition table by booting using a Ubuntu Live CD/USB and then running GParted. It might look somewhat like this:

Check the flags column to find out your boot partition.

Now we mount /dev/sda3 from the live session. To do so open a terminal and do the following

sudo mkdir /media/fat32
sudo mount /dev/sda3 /media/fat32

Now the boot partition is mounted.

Copy EFI/ubuntu/grubx64.efi to EFI/Boot/ followed by renaming EFI/Boot/bootx64.efi to bootx64.efi.old and then renaming EFI/Boot/grubx64.efi to bootx64.efi

You can achieve these by doing:

cd /media/fat32
sudo cp EFI/ubuntu/grubx64.efi EFI/Boot/
cd EFI/Boot
sudo mv bootx64.efi bootx64.efi.old
sudo mv grubx64.efi bootx64.efi

On most machines this should be enough and if you reboot you would get the grub menu, but it won’t have a Windows 7 entry, which we would create by booting in to Ubuntu. However, on my laptop this was not enough and I needed to make another change in EFI/Microsoft folder as given below

cd ../ sudo mv Microsoft/boot/bootmgfw.efi Microsoft/Boot/bootmgfw.efi.old
sudo cp ubuntu/grubx64.efi Microsoft/Boot/bootmgfw.efi

now reboot. This should fix the grub error. You might need to repeat these steps if you update your Ubuntu to a new kernel.

You might also like

Change Default Boot Order in Grub for Fedora 13 You might need...
Uninstall Grub (Replace Grub with Windows 7 Boot Loader) There are times...
Change Default Boot Order Fedora 15 Lovelock To change default...
Change Default Boot Order / Sequence for Grub2 in Fedora 16 Verne Fedora finally...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!


Copyright © 2017 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes