Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How to know if I'm booting using UEFI?

I was searching, but didn't find an obvious way to know if GRUB is using UEFI in the system boot, or the BIOS compatibility mode, or a full fledged BIOS. I found only Windows methods. Is there something in GRUB or the Kernel boot logs that shows if I'm using UEFI, EFI or BIOS?
by

1 Answer

Kajalsi45d
If you've booted using the UEFI firmware as opposed to using BIOS firmware then your system should make the EFI NVRAM variables available in:
/sys/firmware/efi/vars/

or
/sys/firmware/efi/efivars/


When booting using a BIOS (or the BIOS emulation mode of UEFI firmware) then these variables aren't available.

In fact, as @Santropedro pointed out, the path
/sys/firmware/efi

is missing when booting using a BIOS, which is easier to check.

Login / Signup to Answer the Question.