TOOL » LINUX » MANAGER

Smartctl

Usage

shell
smartctl OPTIONS DEVICE
OptionDescription
-i --infoPrints device information.
-a --allPrints all SMART information about the disk.
-l --logPrints various device logs. Ex: selftest selective
-c --capabilitiesPrints SMART capabilities (available tests, progress of running tests, etc).
-C --captiveRuns self-tests in captive (foreground) mode.
-t --testExecutes a test immediately. Ex: short long conveyance
-X --abortAborts non-captive SMART Self Tests.
-H --healthPrints the health status of the device. Use -a if problems are detected.
-d --deviceSpecifies the type of the device. Ex: sat. See also USB Device Support.

Examples

Start a short test in the background:

shell
sudo smartctl -t short /dev/sda

Check test progress:

shell
sudo smartctl -c /dev/sda

Print disk health status:

shell
sudo smartctl -H /dev/sda