Jump to content

How to Check if UEFI Secure Boot is Enabled/Disabled on Linux


Linux Hint

Recommended Posts

While installing different drivers on your Linux system, you may need to check if UEFI Secure Boot is enabled/disabled on your computer as you may need to perform different installation steps depending on the UEFI Secure Boot status of your computer.

For example, some Linux distributions (i.e. Ubuntu) automatically signs the NVIDIA kernel modules while installing the NVIDIA GPU driver. On some Linux distributions, you may need to manually sign the NVIDIA kernel modules for the NVIDIA GPU driver to work. If UEFI Secure Boot is enabled and you install the NVIDIA GPU drivers with unsigned NVIDIA kernel modules and you don’t sign them manually, you may end up with a black screen. If UEFI Secure Boot is disabled, you won’t have to sign the NVIDIA kernel modules in any Linux distribution for the NVIDIA driver to work. You get the importance of such information.

In this article, I will show you how to check if UEFI Secure Boot is enabled/disabled on your computer from the terminal/command-line of your favorite Linux distribution.

 

Checking the Status of the UEFI Secure Boot on Linux

To check whether UEFI Secure Boot is enabled/disabled on your Linux system, run the following command:

$ mokutil --sb-state

 

If UEFI Secure Boot is enabled on your Linux system, the command will print SecureBoot enabled.

how-to-check-if-uefi-secure-boot-is-enab

 

If UEFI Secure Boot is disabled on your Linux system, the command will print SecureBoot disabled.

how-to-check-if-uefi-secure-boot-is-enab

 

Conclusion

In this short article, I have shown you how to check if the UEFI Secure Boot is enabled/disabled on your Linux system from the command-line using the mokutil tool. It’s important to be aware of the UEFI Secure Boot status before installing device drivers (i.e. GPU drivers) on your Linux system.

 

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...