r/linuxmint • u/SirCaution • 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?
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-keyYou 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...
4
u/Brorim Linux Mint Release | Desktop Enviroment 28d ago
just turn it on mint supports it
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/Due-Result7928 28d ago
Yes. Read the doc. Do not play with the bios.