How to determine Disk Model, Mirror Status, BIOS version, BIOS date, and Model Product Name of a computer using Ubuntu

Here are some really useful Linux commands that helps you examine what kind of computer hardware you have and it’s status.

BIOS Version

~ sudo dmidecode -s bios-version 


~ sudo dmidecode -s bios-release-date

CPU Data

To see how many cores / threads / sockets:

lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'

Or just the basic info of how many cores:

grep -c ^processor /proc/cpuinfo

Disk Model

hdparm -I /dev/sda | grep -i model

Hard Drive Model and Serial

lsblk -o +MODEL,SERIAL

Hard Drive by ID

ls /dev/disk/by-id

Mirror Status

mdadm -D /dev/md0

Motherboard Model

~ sudo dmidecode -s baseboard-product-name

Motherboard / Computer Manufacturer

~ sudo dmidecode -s baseboard-manufacturer
Intel corporation

Motherboard & RAM

This is useful if you want to know if you can upgrade a laptop:

~ sudo dmidecode -t 2
[sudo] password for root: 
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x000E, DMI type 2, 16 bytes
Base Board Information
Manufacturer: Hewlett-Packard
Product Name: 22DA
Version: KBC Version 92.15
Serial Number: REDACTED
Asset Tag: Not Specified
Board is a hosting board
Board is replaceable
Location In Chassis: 
Chassis Handle: 0x000F
Type: Unknown
Contained Object Handles: 0

➜ ~ free -m 
total used free shared buff/cache available
Mem: 7837 4387 627 771 2822 2381
Swap: 975 764 211

In the instance above, it appears it’s an HP 22DA and has 8GB RAM. Some googling determined that the motherboard uses DDR3L PC3-12800 SDRAM (1600 MHz) and is upgradable to 16GB.

See also



Share this article

Leave a Reply

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

Scroll to Top