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 short runs a quick smart self-test inside the drive

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

sudo smartctl -t short /dev/sda

Starts a quick background self-test on the drive and reads the result from its log.

The drive can test itself while the system keeps running. The short test is a cheap way to find a clear problem.

sudo smartctl -t short /dev/sda
sudo smartctl -l selftest /dev/sda

The command returns at once and tells you when the test should end, usually within ten minutes. Later -l selftest shows the log: Completed without error is good, and Completed: read failure lists the first bad LBA. The test runs inside the drive, so the system stays usable.

Further reading: smartctl manual page

Going deeper: Keep a domain pointed at your home with Cloudflare DDNS on Unraid

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