smartmontools installation and guide — Check drive health on Ubuntu

Last content update 2026-11-10
QUICK ANSWER
Install smartmontools from the Ubuntu 26.04 repository. Use lsblk to check the model, capacity and path of the intended drive, then pass that path to smartctl -H. PASSED is the drive’s reported summary. Copy important files to separate storage if you see a failure or warning. If you cannot read the status, check the path and connection, including any USB enclosure.
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
Official Ubuntu smartmontools package ↗

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

Frequently asked questions

Does smartctl -H write test data to the drive?
The -H option reads the drive’s SMART health summary. Starting a drive self-test or writing files to test capacity is a separate action.
Does PASSED mean I can keep using the drive without a backup?
PASSED is what the drive reported at the time. Investigate actual I/O errors, repeated disconnects or failed reads separately, and keep important files in another location.
Why can’t I see the health of an SSD in a USB enclosure?
The operating system can see the drive even if the USB bridge or enclosure firmware cannot pass through the SMART command. Treat an unreadable status as undetermined.
Should I use the disk or partition path?
Match the model and capacity, then use the whole disk path or the NVMe namespace. For example, /dev/sda is a disk and /dev/sda1 is a partition.