= Linux SSD health check =

All of the SDDs these days offer a built-in monitoring protocol called SMART or Self-Monitoring, Analysis, and Reporting Technology. In order to tap into this, you will need to install:

1
apt install smartmontools

After the package is installed, you can check if the protocol is available on your device:

1
2
smartctl -i /dev/sdb
smartctl -i -a /dev/sdb

You can also run a short self-test like so:

1
2
smartctl -t short /dev/sdb
sh -c 'sleep 120 && smartctl -l selftest /dev/sdb'

= References =