I have a UEFI laptop with Bitlocker on the Windows partition. This forces the primary bootloader to be Windows Boot Manager with Secure Boot enabled in order for Bitlocker to work properly on Windows. That is to say, with this setup, Windows can only boot if its boot manager was the first thing called by the UEFI, due to the encryption keys used by Bitlocker being stored in the TPM.
Chainloading the Windows Boot Manager from Grub doesn't work [windows does complain about the Secure Boot environment being not safe anymore], so we must do the other way: adding a menu entry for Ubuntu's shimx64.efi
to the Windows Boot Manager using bcdedit.exe
.
I have tried all kind of tricks with bcdedit /copy
bcdedit /create
etc... but even if Windows detects the entry, when jumping into it I get a fatal error at boot time:
File: \EFI\ubuntu\shimx64.efi
Status: 0xc000007b
Info: The application or operating system couldn't be loaded because a required file is missing or contains errors.
Does anyone know what the right bcdedit
magic to add an Ubuntu entry is? TIA.
[Note that this answer sadly produces the above]
edit: Note that if I go to my UEFI Bios and select the Ubuntu entry Linux loads properly. So for now I am stuck with going to BIOS and selecting the OS I'd like to boot.
edit2: Bitlocker is not used from Linux nor I do want to do so; its role here is to encrypt the Windows partition.
bcdedit /set {bootmgr} path \EFI\fedora\grubx64.efi
You have to update the path to the ubuntu .efi – Panther May 10 '18 at 01:02/boot/EFI/ubuntu
looks all right, I can boot into Linux without problems from the BIOS UEFI menu [but it is very inconvenient] – ejgallego May 10 '18 at 02:06Despite that it is bearable, but I would prefer to have a WBM solution.
– ejgallego May 13 '18 at 03:57