| smartmontools | |
|---|---|
| Software | |
| Environment | Ubuntu 26.04 LTS · official repository |
| Package checked | smartmontools 7.5-2 · November 10, 2026 |
| Devices | Directly connected internal SATA HDDs or SSDs and NVMe SSDs |
| Command | smartctl -H · drive-reported health summary |
Install smartmontools on Ubuntu
The Ubuntu 26.04 LTS repository listed 7.5-2 when checked. Install the package in a terminal, then confirm that smartctl -V prints a version.
sudo apt install smartmontools
smartctl -V
The package includes smartctl for checking status and smartd for ongoing monitoring. These steps use smartctl for a single check.
Identify the drive by model and capacity
lsblk -dp -o NAME,MODEL,SIZE,TRAN
Match the internal drive’s model and capacity to the list. NAME gives the device path and TRAN shows the transport when available. If the transport is blank, confirm the physical model and the other details. Select the disk or NVMe namespace path.
Use the path you confirmed on your own computer. The following lines show examples for a SATA disk and an NVMe SSD. Run the one that applies.
sudo smartctl -H /dev/sda
sudo smartctl -H /dev/nvme0n1
Read PASSED, FAILED and unavailable results
- PASSED means the drive reported a passing summary at the time of the check. Check whether you can actually read your files and whether copies of important data are available.
- FAILED or a health warning means you should copy important files to separate storage before further tests. If files are already difficult to read, first check your backups and recovery options.
- Cannot open the device or status unsupported calls for a check of the path, permissions, connection and device support. A USB enclosure or RAID controller can expose the device without passing through SMART health information.
For NVMe, -H uses the reported Critical Warning value. SATA uses the result of the drive’s SMART status command, which may be unavailable through an intermediary. Look up the device type in the official manual when you need to interpret a particular value.
Official sources
- Official Ubuntu 26.04 smartmontools package ↗
- Official Ubuntu package download and checksum ↗
- Ubuntu smartctl manual · Health and device types ↗
- Ubuntu lsblk manual · Device listing and paths ↗
- Official smartmontools project · smartctl and smartd ↗
