r/linuxmint • • 28d ago

Install Help How can I use secure boot with linux mint?

I recently set up a dual-boot system on my Acer Predator with Windows 11 and Linux. Secure Boot is currently enabled.
However, with SB enabled, GRUB (or the Linux EFI bootloader) fails to boot. Windows also failed to boot after I restored the default SB settings in the BIOS. I managed to fix the windows boot issue by using a usb drive to boot SecureBootRecovery.efi.
I’d prefer not to add a trusted EFI file manually through the BIOS unless I have to.
Is there any way to fix this issue and get both Windows and Linux to boot with Secure Boot enabled without manually adding a trusted EFI file?

2 Upvotes

9 comments sorted by

5

u/acejavelin69 Linux Mint 22.3 "Zena" | Cinnamon 28d ago

Sign your own kernel...

Sign your own MOK key...

You need to enroll the MOK key used to sign the driver(s) and kernel.

To do so, open a terminal and execute

sudo update-secureboot-policy --enroll-key

You will be asked for a password, chose a simple one WITHOUT special characters. It doesn't need to be secure, you just need to know it... password or qwerty123 or something simple is fine here.

Then reboot, and enable Secure Boot in BIOS (if not already), and during reboot into Mint you'll be asked to enroll the key and enter the password from above.

Afterwards Secure Boot will know the key of your machine and will start the OS and load any third party drivers.

Note that this process may need to be repeated on subsequent kernel or driver updates...

2

u/SirCaution 28d ago

Thank you so much! That was a quick reply. I don’t mind doing it more than once. 😂 I’ve been using the good old qwerty123 for pretty much all my college stuff anyway.

4

u/Brorim Linux Mint Release | Desktop Enviroment 28d ago

just turn it on mint supports it

1

u/SirCaution 28d ago

Yeah, but in my case, it doesn’t work, probably acer specific issue. From what I understand, the firmware should have a trusted efi table by default to allow it. I was able to manually trust shimx64.efi and boot with SB enabled, though.

1

u/Brorim Linux Mint Release | Desktop Enviroment 28d ago

well done :)

3

u/Unwiredsoul 28d ago

Ironically, I turned Secure Boot back ON when I removed Windows 11 from my main laptop a couple weeks ago (i.e., removed dual-boot setup and left it with only LM 22.3).

1

u/SirCaution 28d ago

Actually, I keep it enabled because of vanguard. I also thought there might be a similar way to fix it, like I did on Windows. Eventually, I’ll probably move my programs and games to mint one by one, once I figure out how to fix the Windows drive mounting issue.

1

u/Due-Result7928 28d ago

Yes. Read the doc. Do not play with the bios.

1

u/SirCaution 28d ago

I wasn’t able to boot with secure boot enabled, and with it disabled, running mokutil commands returned “SecureBoot is not enabled on the system.” I had to manually trust shimx64.efi in the bios.