brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: smartctl -t long reads the whole surface, and a smart log keeps the result

Smart
~/tips/tip-smart-smartctl-t-long-test

sudo smartctl -t long /dev/sda

Starts a full-surface self-test inside the drive and shows how long it will take.

The long test reads every sector, so it finds weak areas that the short one skips. Start it and leave the machine alone.

sudo smartctl -c /dev/sda | grep -A1 'Extended'
sudo smartctl -t long /dev/sda

-c prints the estimated time of the test, which is hours on a large disk. The test runs inside the drive and survives you logging out. Read the outcome later with smartctl -l selftest. You can stop a running test with smartctl -X.

Further reading: smartctl manual page

More Smart tips sudo nvme smart-log /dev/nvme0 sudo smartctl -q silent -a /dev/sda sudo smartctl -l devstat /dev/sda sudo smartctl -l scttemphist /dev/sda sudo smartctl -t select,1000000-2000000 /dev/sda All Smart tips (19) All topics

Link