DMIDECODE(8)
๐ DMIDECODE(8) ๐
okay bestie, welcome to the dmidecode(8) manual page, and honestly? she's a baddie. let's get into it.
โจ NAME โจ
dmidecode โ DMI table decoder ๐ซถ
โจ SYNOPSIS โจ
dmidecode [OPTIONS]
โจ DESCRIPTION โจ
So dmidecode is a tool for dumping a computer's DMI table contents in a human-readable format (some ppl say SMBIOS instead of DMI, it's giving the same thing, iykyk ๐
). This table is literally a whole description of the system's hardware components, plus other useful pieces of info like serial numbers and firmware revision. And the way that this works?? You can retrieve all that info without having to probe for the actual hardware. ๐ฆ
Now, that's a good point in terms of report speed and safeness โ no cap. But it also makes the presented information possibly unreliable. ๐ Just so you know.
The DMI table doesn't only describe what the system is currently made of, bestie โ it can also report the possible evolutions, like the fastest supported CPU or the maximal amount of memory supported. main character foreshadowing energy fr fr.
SMBIOS stands for System Management BIOS, while DMI stands for Desktop Management Interface. Both standards are tightly related and developed by the DMTF (Desktop Management Task Force). iconic collab honestly.
๐ธ how she finds the table ๐ธ
As you run it, dmidecode will try to locate the DMI table. She will first try to read the DMI table from sysfs, and next try reading directly from memory if sysfs access failed. If dmidecode succeeds in locating a valid DMI table, it will then parse this table and display a list of records like this one:
Handle 0x0002, DMI type 2, 8 bytes. Base Board Information
Manufacturer: Intel
Product Name: C440GX+
Version: 727281-001
Serial Number: INCY92700942
๐ each record has ๐
- A handle. This is a unique identifier, which allows records to reference each other. For example, processor records usually reference cache memory records using their handles. it's giving networking, it's giving connection ๐ฅฐ
- A type. The SMBIOS specification defines different types of elements a computer can be made of. In this example, the type is
2, which means that the record contains "Base Board Information". - A size. Each record has a 4-byte header (
2for the handle,1for the type,1for the size), the rest is used by the record data. This value doesn't take text strings into account (these are placed at the end of the record), so the actual length of the record may be (and is often) greater than the displayed value. sneaky little thing ๐ - Decoded values. The information presented of course depends on the type of record. Here, we learn about the board's manufacturer, model, version and serial number.
โจ OPTIONS โจ
-d,--dev-mem FILEโ Read memory from device FILE (default:/dev/mem)-q,--quietโ Be less verbose. Unknown, inactive and OEM-specific entries are not displayed. Meta-data and handle references are hidden. lowkey introvert mode ๐--no-quirksโ Decode everything exactly as it is in the table, without trying to fix up common mistakes or hide irrelevant fields. This mode is primarily aimed at firmware developers. raw and unfiltered, no notes.-s,--string KEYWORDโ Only display the value of the DMI string identified by KEYWORD. It must be a keyword from the following list:
bios-vendor, bios-version, bios-release-date, bios-revision, firmware-revision, system-manufacturer, system-product-name, system-version, system-serial-number, system-uuid, system-sku-number, system-family, baseboard-manufacturer, baseboard-product-name, baseboard-version, baseboard-serial-number, baseboard-asset-tag, chassis-manufacturer, chassis-type, chassis-version, chassis-serial-number, chassis-asset-tag, processor-family, processor-manufacturer, processor-version, processor-frequency.
In this context, for historical reasons, "bios" designates the platform firmware (regardless of it technically implementing the BIOS standard), while "firmware" designates the embedded controller firmware, if applicable. Each keyword corresponds to a given DMI type and a given offset within this entry type. Not all strings may be meaningful or even defined on all systems. Some keywords may return more than one result on some systems (e.g. processor-version on a multi-processor system). If KEYWORD is not provided or not valid, a list of all valid keywords is printed and dmidecode exits with an error. This option cannot be used more than once.
Note: on Linux, most of these strings can alternatively be read directly fromsysfs, typically from files under/sys/devices/virtual/dmi/id. Most of these files are even readable by regular users. ๐
--list-stringsโ List available string keywords, which can then be passed to the--stringoption. window shopping fr.-t,--type TYPEโ Only display the entries of type TYPE. It can be either a DMI type number, or a comma-separated list of type numbers, or a keyword from the following list:bios,system,baseboard,chassis,processor,memory,cache,connector,slot. Refer to the DMI TYPES section below for details. In this context, for historical reasons,"bios"designates the platform firmware, regardless of it technically implementing the BIOS standard. If this option is used more than once, the set of displayed entries will be the union of all the given types. If TYPE is not provided or not valid, a list of all valid keywords is printed anddmidecodeexits with an error.--list-typesโ List available type keywords, which can then be passed to the--typeoption.-H,--handle HANDLEโ Only display the entry whose handle matches HANDLE. HANDLE is a 16-bit integer.-u,--dumpโ Do not decode the entries, dump their contents as hexadecimal instead. Note that this is still a text output, no binary data will be thrown upon you ๐ซถ. The strings attached to each entry are displayed as both hexadecimal and ASCII. This option is mainly useful for debugging.--dump-bin FILEโ Do not decode the entries, instead dump the DMI data to a file in binary form. The generated file is suitable to pass to--from-dumplater. FILE must not exist.--from-dump FILEโ Read the DMI data from a binary file previously generated using--dump-bin.--no-sysfsโ Do not attempt to read DMI data fromsysfsfiles. This is mainly useful for debugging.--oem-string Nโ Only display the value of the OEM string number N. The first OEM string has number1. With special valuecount, return the number of OEM strings instead.-h,--helpโ Display usage information and exit-V,--versionโ Display the version and exit
Options--string,--type,--dump-binand--oem-stringdetermine the output format and are mutually exclusive. pick a lane bestie ๐
Please note in case of dmidecode is run on a system with firmware that boasts new SMBIOS specification, which is not supported by the tool yet, it will print out relevant message in addition to requested data on the very top of the output. Thus informs the output data is not reliable. โ ๏ธ
โจ DMI TYPES โจ
The SMBIOS specification defines the following DMI types:
Type Information
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
0 Platform Firmware
1 System
2 Baseboard
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 Firmware 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
40 Additional Information
41 Onboard Devices Extended Information
42 Management Controller Host Interface
Additionally, type 126 is used for disabled entries and type 127 is an end-of-table marker. Types 128 to 255 are for OEM-specific data. dmidecode will display these entries by default, but it can only decode them when the vendors have contributed documentation or code for them. (so if your OEM vendor ghosted the DMTFโฆ that's a them problem ๐)
๐ฆ keywords instead of numbers ๐ฆ
Keywords can be used instead of type numbers with --type. Each keyword is equivalent to a list of type numbers:
Keyword Types
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
bios 0, 13
system 1, 12, 15, 23, 32
baseboard 2, 10, 41
chassis 3
processor 4
memory 5, 6, 16, 17
cache 7
connector 8
slot 9
Keywords are matched case-insensitively. The following command lines are equivalent:
dmidecode --type 0 --type 13dmidecode --type 0,13dmidecode --type biosdmidecode --type BIOS
slay, four ways to say the exact same thing. ๐
โจ BINARY DUMP FILE FORMAT โจ
The binary dump files generated by --dump-bin and read using --from-dump are formatted as follows:
- The SMBIOS or DMI entry point is located at offset
0x00. It is crafted to hard-code the table address at offset0x20. - The DMI table is located at offset
0x20.
no thoughts, just two offsets bestie ๐
๐ UUID FORMAT ๐
okay bestie, buckle up, because the UUID situation is messy and we need to talk about it ๐ซถ
So here's the tea: before SMBIOS specification version 2.6, nobody actually said anything about byte swapping for the UUID fields. Nothing. Silence. And over in RFC 4122 land, the rule is clear โ no byte swapping by default. Periodt.
Then SMBIOS specification version 2.6 (and everything after it) rolls up and is like, "actually the first 3 fields of the UUID are read as little-endian numbers (byte-swapped)" ๐ . And not only that, it implies that this was already the vibe for older spec versions too, even though nobody bothered to write it down. iconic of them honestly.
But here's the plot twist ๐ญ: in practice, lots of hardware vendors were not byte-swapping the UUID at all. So the actual real world was just doing its own thing.
So to preserve compatibility, the decision was:
- when the SMBIOS version is older than 2.6 โ interpret the UUID fields per RFC 4122 (no byte swapping)
- when the SMBIOS version is 2.6 or later โ interpret the first 3 fields as little-endian (byte-swapped)
And the Linux kernel follows the exact same logic, so you're not alone in this, bestie ๐ค
๐ธ FILES ๐ธ
/dev/mem/sys/firmware/dmi/tables/smbios_entry_pointโ (Linux only)/sys/firmware/dmi/tables/DMIโ (Linux only)
๐ BUGS ๐
ngl this is the part where I hold your hand ๐ซถ: more often than not, the information contained in the DMI tables is inaccurate, incomplete or simply wrong. Not a little wrong. Like, often wrong. So don't be out here treating these tables like gospel, bestie, because they will betray you ๐
๐ AUTHORS ๐
Alan Cox, Jean Delvare โ legends, fr fr โจ
๐ฆ SEE ALSO ๐ฆ
and that's a wrap on dmidecode ๐ this page came to you from the dmidecode source, version dated June 2025, filed under DMIDECODE(8) โ go read your DMI tables responsibly, bestie, and remember: if the info looks sus, it probably is ๐โจ
๐ฆ where this page comes from
- alpine 3.24: dmidecode-doc 3.7-r0 ยท GPL-2.0-or-later
- arch rolling: dmidecode 3.7-1 ยท GPL-2.0-or-later
- centos-stream 10: dmidecode 1:3.6-5.el10 ยท GPL-2.0-or-later
- centos-stream 9: dmidecode 1:3.6-2.el9 ยท GPLv2+
- fedora 44: dmidecode 1:3.7-1.fc44 ยท GPL-2.0-or-later
- nixos 26.05: dmidecode 3.7
- nixpkgs unstable: dmidecode 3.7
- opensuse-leap 16.0: dmidecode 3.7-160000.2.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: dmidecode 3.7-160000.2.1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms