Skip to content

smartctl: Syntax, Options, Examples — by Sara Zivanov (phoenixNAP)

intermediatepageLink only (©)

Walkthrough of smartctl on Ubuntu: installing smartmontools, checking health, viewing attributes, and running short and long self-tests.

Quick steps

  1. sudo apt install smartmontools
  2. sudo smartctl -H /dev/sda
  3. sudo smartctl -a /dev/sda
  4. sudo smartctl -t short /dev/sda

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on phoenixnap.com

Source: smartctl: Syntax, Options, Examples by Sara Zivanov (phoenixNAP). Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

smartctlsmartmontoolsdisk health

More in Hardware & Firmware