PCsuggest

  • Quick tip
  • SECURITY
  • NETWORKING
  • OpenWrt
  • HARDWARE

Check BIOS, UEFI, motherboard info in Linux

Updated - April 3, 2018 by Arnab Satapathi

Sometime it's necessary to check BIOS, UEFI, or motherboard information, mostly for hardware upgrade and troubleshooting purpose.

Its possible to get those information by checking the hardware manufacturer's site, but doing so could be a pain.

In a Linux system it's easy to  find bios version, get the Linux UEFI related information, motherboard serial number with the dmidecode command. There is another command biosdecode to check Linux bios info.

The dmidecode and biosdecode commands are Linux distro independent and preinstalled in most of them, lets start !

Contents

  • How to know if UEFI is present in the system
  • A little about the dmidecode command
  • Filtering the result with DMI type
  • Checking the dmidecode Linux BIOS related information
  • Checking motherboard serial number with dmidecode
  • Other useful commands to get BIOS, UEFI related information

How to know if UEFI is present in the system

General rule of thumb is if the motherboard or laptop shipped after mid of 2011, then it's almost certain that the motherboard has a UEFI based firmware.

You can open up the BIOS setup by pressing the F2, Esc etc. etc keys while powering up, and if there some EFI boot related option, then the system is certainly UEFI enabled.

Note: If UEFI supported by your motherboard it doesn't necessarily mean you're using UEFI to boot operating systems.

On linux, you can easily verify that in two quick way. If there's a UEFI firmware present, it should create a special directory /sys/firmware/efi . And running the efibootmgr command should also return the EFI boot priority order.check uefi or bios on linux

Note: The above method works only if the system is booted from a UEFI bootable media, else it behaves like an older legacy BIOS system.

On Windows 10, you can open up the System Information application to check if the windows is booted into UEFI mode or in legacy BIOS mode.

amazon prime logo
Try AmazonPrime for free
Enjoy free shipping and One-Day delivery, cancel any time.

Below a screenshot, where you can see that Windows 10 is using UEFI.

windows 10 uefi system information

A little about the dmidecode command

DMI stands for Desktop Management Interface, legacy version of SMBIOS system management interface, developed by the DMTF (Desktop Management Task Force).

The command parses the /sys directory and RAM for DMI and SMBIOS related information and prints them in a human readable format. The command requires root privilege.

sudo dmidecode

This will return every available hardware information, we just need to filter that result.

Filtering the result with DMI type

The -t or - -type command line switch is used to display information about the selected DMI type only. Example

sudo dmidecode -t 0

The above command will show only dmidecode Linux BIOS version.

Few useful DMI types

  1.     0   for BIOS version, BIOS vendor etc.
  2.     1 for OEM hardware information, serial number etc.
  3.     2 for motherboard related information.
  4.     3 for hardware chassis related information.
  5.     4  for CPU related details.
  6.     9 for available expansion slots.
  7.     17 for available RAM slots and connected RAMs.
  8.     10 for on board devices.
  9.     22 for batteries, if available.
  10.     27 cooling fan, thermal management.

There are many other DMI/SMBIOS type, it's better to check the man page

man dmidecode

Checking the dmidecode Linux BIOS related information

The BIOS related information is available with dmi type 0 and dmi type 13, the type 13 for BIOS language support.

sudo dmidecode -t 0
sudo dmidecode -t 13

Sample output

# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: Acer
        Version: V1.05
        Release Date: 06/08/2011
        ROM Size: 2560 kB
        Characteristics:
                PCI is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported
                Japanese floppy for NEC 9800 1.2 MB is supported
                8042 keyboard services are supported (int 9h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                BIOS boot specification is supported
                Targeted content distribution is supported
                UEFI is supported
        BIOS Revision: 5.240

Checking motherboard serial number with dmidecode

This could be done by selecting the dmi type 1 or by directly quarrying the system-serial-number string.

sudo dmidecode -s system-serial-number

This command will return the motherboard dmidecode serial number directly. Another example is selecting the dmi type and stripping the result with grep command.

sudo dmidecode -t 1 | grep 'Serial Number:'

Other useful commands to get BIOS, UEFI related information

There are some other commands to get those info, namely biosdecode, vpddecode and ownership.

  1. The biosdecode command works for almost every hardware, but less informative.
  2. The vpddecode command for IBM and Lenovo hardware only, the vpd stands for vital product data .
  3. The ownership command is for only Compaq hardware, to get Compaq specific ownership tag info.

Hope this will help you to know the basic hardware configuration of your PC. Don't hesitate to drop comments if you have any suggestion, question or just say hello. Don't forget to share this with your friends too !

Filed Under: hardware, how to Tagged With: BIOS, hardware, UEFI

Your comments
  1. miguipda says

    December 23, 2015

    Hi,

    have a look to you image at right (same as on the home page of your website).
    You wrote BOIS in place of BIOS....

    Reply
    • Arnab says

      December 24, 2015

      Thanks !!!!! From my heart !!!! I'm fixing it right now.
      You have precise eyes friend !!!

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © PCsuggest.com · All rights reserved.

  • Home
  • About
  • Contact
  • Privacy Policy
  • Sitemap