JAEN

Linux

smartctl

SafeDisk health via SMART

smartctl -a <device>

Reads SMART data. Rising Reallocated_Sector_Ct means replace soon. -t short runs a self-test.

Examples

  • smartctl -a /dev/sda | grep -i -E 'health|realloc'Key health indicators

Syntax

smartctl [-a] [-t short] <device>

Before you run it

Read and self-test only.

Used when you see

Linux disk health check
1
Read SMART attributes (reallocated sectors etc.)Combine -a output with a short self-test.
See the whole flow →

Related commands

  • dmesgShow kernel ring buffer
  • fsckCheck filesystem
  • lsblkList block devices

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store