Using Zorin OS with Secure Boot Enabled
In this article
Zorin OS supports Secure Boot out of the box because it uses a signed shim loader. You can usually install and run Zorin OS without disabling Secure Boot in your BIOS or UEFI settings.
Time 8 min · Steps 6 · Level Easy
Configure Your Hardware for Zorin OS Secure Boot
- Verify UEFI Mode. Ensure your computer is set to UEFI mode rather than Legacy or CSM, as Secure Boot requires UEFI to function.
- Check Secure Boot Status. Enter your BIOS/UEFI menu during startup to confirm Secure Boot is enabled or set to "Standard" mode.
- Prepare Installation Media. Use a tool that supports UEFI booting to flash the Zorin OS image onto a USB drive.
- Boot from USB. Select the UEFI version of your USB drive from the boot menu to ensure the signed shim is used.
- Complete Installation. Follow the on-screen prompts to install Zorin OS; the installer will automatically register the bootloader with your firmware.
- Test the Boot Sequence. Restart the machine and verify that Zorin OS loads directly without a "Security Violation" or "Invalid Signature" error.
Understand How the Signed Shim Works
Secure Boot is a security standard developed by the PC industry to help make sure that a device boots using only software that is trusted by the Original Equipment Manufacturer. It prevents rootkits and other malicious software from hijacking the boot process before the operating system even loads. Zorin OS handles this by using a small piece of software called a shim. The shim is a bootloader that is digitally signed by Microsoft, which is the authority most PC manufacturers trust by default.
When your computer starts, the UEFI firmware checks the signature of the shim. Because Microsoft signed it, the firmware allows it to run. The shim then takes over and verifies the signature of the Zorin OS GRUB bootloader using a key embedded within the shim itself. This creates a chain of trust from the hardware firmware to the Linux kernel. This process happens in milliseconds and is invisible to you, allowing the system to maintain high security without requiring you to manually import keys into your BIOS.
If you are using a system where the manufacturer has locked the Secure Boot keys to a specific vendor, the shim is the only way to boot Linux without completely disabling the security feature. By relying on the Microsoft Third-Party UEFI Certificate Authority, Zorin OS ensures compatibility across a vast range of laptops and desktops. This removes the need for users to hunt for obscure BIOS settings or risk leaving their systems vulnerable to boot-level attacks.
Handle Third-Party Driver Signing Issues
While the Zorin OS kernel is signed and will boot under Secure Boot, third-party drivers—specifically proprietary Nvidia graphics drivers or certain Wi-Fi adapters—are not signed by the same authority. When you install these drivers via the Driver Manager, the system cannot simply load them into the kernel because they lack a trusted signature. To solve this, Zorin OS uses a process called MOK, or Machine Owner Key.
When you install a proprietary driver, the system will prompt you to create a password for MOK. This is a temporary password used only for the next reboot. After you restart, you will not see the usual Zorin OS loading screen. Instead, you will see a blue or black screen with a menu called "Perform MOK management." You must select "Enroll MOK," then "Continue," and finally "Yes" to enroll the key. You will then be asked to enter the password you created during the driver installation. Labels in this menu may differ slightly by version or hardware manufacturer.
Once the key is enrolled, the UEFI firmware trusts the specific drivers you just installed. You can then boot normally, and your graphics card or wireless adapter will function at full speed. If you miss this window or ignore the MOK screen, the system will boot, but the proprietary drivers will be blocked. You would then need to reinstall the drivers or use a terminal command to trigger the MOK enrollment process again. This is a one-time setup per driver update that changes the kernel signature.
Fix Boot Failures and Signature Violations
A "Security Violation" or "Invalid Signature" error typically occurs when the chain of trust is broken. This often happens if you have manually updated the GRUB bootloader or modified the kernel without signing the changes. In some cases, a BIOS update might reset your Secure Boot keys to "Factory Defaults," which can occasionally wipe out the MOK keys you enrolled for your drivers. If this happens, you will find that your system boots, but your Wi-Fi or GPU stops working.
One common misconception is that you must disable Secure Boot to get the best performance out of your hardware. This is incorrect. Secure Boot does not throttle your CPU or GPU; it only verifies the identity of the code being executed. The only reason to disable it is if you are using a very niche Linux distribution that does not provide a signed shim or if you are developing your own custom kernel and do not want to deal with signing keys. For the vast majority of Zorin OS users, keeping Secure Boot enabled is the safer and recommended choice.
If you encounter a boot loop where the system refuses to load despite using a standard Zorin OS installation, check your BIOS settings for a setting called "OS Type." Some motherboards have a toggle between "Windows UEFI" and "Other OS." For Zorin OS with Secure Boot, you should typically leave this on "Windows UEFI" because that is the mode that looks for the Microsoft-signed shim. Switching to "Other OS" sometimes disables the signature check entirely, which effectively turns off Secure Boot regardless of the main toggle switch.
Apply Secure Boot Logic to Dual Booting
Dual booting Zorin OS alongside Windows is the most common scenario for Secure Boot users. Because both operating systems use the same Microsoft-signed infrastructure for their bootloaders, they can coexist peacefully. The Windows Boot Manager and the Zorin OS GRUB loader both satisfy the UEFI signature requirements. When you boot the computer, GRUB typically acts as the primary menu, allowing you to choose between Zorin OS and Windows.
Consider a worked example of a user with a 512 GB SSD. They allocate 200 GB for Windows and 312 GB for Zorin OS. During the installation of Zorin OS, the installer detects the existing EFI System Partition (ESP), which is typically a small partition of about 100 MB to 500 MB. Zorin OS places its signed shim and GRUB files into this existing partition. Because the ESP is shared and both loaders are signed, the UEFI firmware accepts both. The user does not need to create a second EFI partition, which would actually complicate the boot process and potentially confuse the Secure Boot verification.
If you find that the computer boots directly into Windows without showing the Zorin OS menu, you do not need to disable Secure Boot. Instead, you need to change the boot order. Go to BIOS > Boot > Boot Priority and move "zorin" or "ubuntu" to the top of the list. This tells the firmware to load the Zorin shim first. Once the shim loads, it will present the menu to choose between the two operating systems. This maintains the security of both systems while giving you control over which one starts first.
Zorin OS Security for Advanced Hardware
Some users with high-end workstations or specific server-grade hardware may encounter "User Mode" vs "Setup Mode" in their UEFI settings. Setup Mode allows you to install your own custom Platform Keys (PK), which means you could theoretically remove the Microsoft keys and replace them with your own. While this is possible, it is not necessary for Zorin OS and can lead to a situation where Windows will no longer boot because its signature is no longer trusted by the hardware.
For most users, the "Standard" or "Default" Secure Boot mode is the correct choice. This mode uses the keys pre-installed by the manufacturer. If you are using a laptop with a proprietary "Secure Boot Customization" tool, avoid using it unless you are an experienced system administrator. The risk of "bricking" the boot process—meaning the computer will not boot any OS at all—is higher when manually manipulating the PK, KEK (Key Exchange Key), and db (Signature Database) variables in the UEFI.
If you ever need to completely remove Zorin OS and return to a single-boot Windows system, you can simply delete the Zorin partitions from within Windows Disk Management. To clean up the boot menu, you can use the Windows command prompt to remove the Zorin entry from the EFI partition. Secure Boot will continue to protect the Windows installation without any further configuration. The transition is seamless because the underlying security architecture remains unchanged throughout the process.
Official source: Zorin OS Documentation