SMART tools | Disk Inspection and Monitoring
mouse 263 · person cloud · link
Last update
2023-08-13
2023
08-13
«S.M.A.R.T. Monitoring Tools
had disk status and error checking/reporting»
1
2
3
4
5
6
7
8
9
sudo bash

apt install smartmontools gsmartcontrol # will install `smartd` daemon too

smartctl -i    /dev/sda  # show drive identity info
smartctl -s on /dev/sda  # turn ON monitoring
smartctl -a    /dev/sda  # show all drive S.M.A.R.T. data

gsmartcontrol  # GUI interface for smartctl

From gsmartcontrol > tab Self-Tests > execute Short Self-test, you can see the Lifetime hours for the drive.

Configure auto monitoring by commenting DEVICESCAN line in /etc/smartd.conf and append:

1
2
3
DEFAULT -d removable -n standby -a -m root,my_user@domain.ext
/dev/sda
/dev/sdb

Source: askubuntu, wikipedia