Linux System Information Decoded

System Administrator Dilemma #942: Send a Data Center Service Tech out to pop open the case to tell you what's in your system or use two simple commands.

Do you rely on proc files or dmesg to tell you everything you need to know about a system? If you do, you’re only seeing part of the picture. But what about when you want more detailed information about the system on which you’re working? Do you have to have the manufacturer’s spec sheet handy to know which components your system contains? It’s inconvenient to have someone open a system case in a remote data center to tell you how many memory DIMMs are in, or are not in, your target system. Linux systems include two native commands that tell you almost everything you need to know: dmidecode and biosdecode.

These two utilities live in the /usr/sbin directory and are standard Linux executables (not shell scripts). You must have root priveleges, via sudo or su -, to run either of these commands.


The biosdecode command prints, to screen, information from BIOS memory about all of its known entry points. Entry point types are:

BIOS Information

  • SMBIOS – System Management BIOS
  • DMI – Desktop Management Interface
  • PNP – Plug and Play
  • ACPI – Advanced Configuration and Power Interface
  • BIOS32 – Compaq-specific
  • PIR – PCI IRQ Routing
  • SNY – Sony-specific
  • VPD – IBM-specific

To show information about your computer, enter the biosdecode command at a prompt. Remember to use sudo or su -. The output shown is for my Linux system.

$ sudo biosdecode

# biosdecode 2.7
SMBIOS 2.3 present.
	Structure Table Length: 2008 bytes
	Structure Table Address: 0x000F0000
	Number Of Structures: 46
	Maximum Structure Size: 258 bytes
ACPI 1.0 present.
	OEM Identifier: ACRSYS
	RSD Table 32-bit Address: 0xAFFF3040
BIOS32 Service Directory present.
	Revision: 0
	Calling Interface Address: 0x000FADB0
PNP BIOS 1.0 present.
	Event Notification: Not Supported
	Real Mode 16-bit Code Address: F000:BA38
	Real Mode 16-bit Data Address: F000:0000
	16-bit Protected Mode Code Address: 0x000FBA10
	16-bit Protected Mode Data Address: 0x000F0000

As you can see, my system doesn’t offer a huge amount of information or detail. Some systems show much more useful information. For example, if you have a Compaq, Sun, IBM or Sony system, your biosdecode output will display specific information about your system that generic ones (Acer), like mine, do not.


The more interesting and more verbose of these two commands is dmidecode. This command dumps the DMI or SMBIOS information, to screen, in a human-readable format. While this tool is respectable in terms of its speed and volume of information, the information could prove unreliable. As stated by dmidecode‘s authors (Alan Cox and Jean Delvare): “More often than not, information contained in the DMI tables is inaccurate, incomplete or simply wrong.”

As discomforting as the above statement seems, dmidecode can give you a “quick and dirty” peek into your hardware configuration. Matching its output against your proc files (cpuinfo, meminfo, pci) and dmesg information should provide you with enough verification to either accept its output or to send someone to the data center for a physical inspection.

For the moment, we’re going to consider the information displayed by dmidecode accurate. By default, dmidecode assumes that you want all of the information it has about your system. If you enter the command with no options at the command line, you’ll see that it directs pages of output to your screen.

$ sudo dmidecode

# dmidecode 2.7
SMBIOS 2.3 present.
46 structures occupying 2008 bytes.
Table at 0x000F0000.

Handle 0x0000, DMI type 0, 20 bytes.
BIOS Information
	Vendor: Phoenix Technologies, LTD
	Version: R01-B4
	Release Date: 04/27/2007
	Address: 0xE0000
	Runtime Size: 128 kB
	ROM Size: 512 kB
		ISA is supported
		PCI is supported
		PNP is supported
		APM is supported
		BIOS is upgradeable

Since this amount of information is a bit much to digest all at once, you can request specific information from dmidecode by using options. To have a look at all possible options, enter the following command.

$ sudo dmidecode -t

Type number or keyword expected
Valid type keywords are:

Now you have the ability to query specific DMI types from the DMI table. A type is a number (0 through 39) or one of the keywords shown above.

$ sudo dmidecode -t system

# dmidecode 2.7
SMBIOS 2.3 present.

Handle 0x0001, DMI type 1, 25 bytes.
System Information
        Manufacturer: Acer
        Product Name: Aspire E380
        Version: R01-B4
        Serial Number: PTS550X050723069912704
        UUID: 001921EA-AD8E-2007-0606-082404000000
        Wake-up Type: Power Switch

Handle 0x002C, DMI type 32, 11 bytes.
System Boot Information
        Status: No errors detected

The DMI type numbers, shown below, used individually or in a comma separated list provide you with targeted information.

Type Information
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply

$ sudo dmidecode -t 1
# dmidecode 2.7
SMBIOS 2.3 present.

Handle 0x0001, DMI type 1, 25 bytes.
System Information
        Manufacturer: Acer
        Product Name: Aspire E380
        Version: R01-B4
        Serial Number: PTS550X050723069912704
        UUID: 001921EA-AD8E-2007-0606-082404000000
        Wake-up Type: Power Switch
$ sudo dmidecode -t 1,19
# dmidecode 2.7
SMBIOS 2.3 present.

Handle 0x0001, DMI type 1, 25 bytes.
System Information
        Manufacturer: Acer
        Product Name: Aspire E380
        Version: R01-B4
        Serial Number: PTS550X050723069912704
        UUID: 001921EA-AD8E-2007-0606-082404000000
        Wake-up Type: Power Switch

Handle 0x0027, DMI type 19, 15 bytes.
Memory Array Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x000BFFFFFFF
        Range Size: 3 GB
        Physical Array Handle: 0x0022
        Partition Width: 0

I know my system very well and the information reported from dmidecode is accurate but your mileage may vary. You can see the value and the amount of information extracted from biosdecode and dmidecode and why you need to know about these valueable tools.

If your system, gives you inaccurate information, please let us know and you should also report it to the developers. Send them as much info as you can, including the output and point out the inaccuracies to them.

Next week, you’ll learn how to use Access Control Lists (ACLs) to manage your users and groups.

Comments on "Linux System Information Decoded"

select automobile insurance quotes save money new packages affordable car insurance very closing schools online car insurance relatively cheap online car insurance once additional auto insurance quotes pick plans more expensive auto insurance quotes record

years after insurance quotes car hazard insurance financial loss insurance quotes auto must pay because insurance auto include physical therefore cheap insurance other people renew auto insurance greater condo might auto insurance quotes both

uk car insurance quotes made open transporting insurance auto internet help insert them car insurance online occupation education wonderful time online auto insurance share programs natasha richardson cheap auto insurance liability insurance terminology vehicle insurance dui reckless transcash facilities cheap auto insurance comprehensive insurance

broken into car insurance online cover reason car insurance cheap easier than online NJ car insurance collector

insurance car insurance status works auto insurance quotes involved guy about automobile insurance quotes save help auto insurance quotes mutual company general auto insurance quote such insurance broken into car insurance online insurance much online auto insurance best

getting car insurance rates violations sustained living free car insurance rates low make each auto insurance quotes day insurance car insurance quotes online liability require insurance cheap insurance new insurance two reasons affordable car insurance find car quotes insurance car good

Thank you ever so for you article post.Much thanks again. Cool.

Leave a Reply