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 can save a SMART report to the boot drive for the forum

Smart
~/tips/tip-unraid-smartctl-report

smartctl -a /dev/sdX > /boot/smart_report.txt

Saves a full SMART report of one disk to a file you can attach to a support post.

Asking the Unraid forum about a drive without a SMART report gets you the same reply every time: attach the report.

Open the web terminal from the top-right menu and run smartctl against the disk. Find the device name, like sdb, on the Main tab. The docs show how to save the output to the boot drive so you can attach it.

smartctl -a /dev/sdX > /boot/smart_report.txt

If that returns an error, tell smartctl the device type: add -d ata for a SATA disk or -d nvme for NVMe. You can also start a self-test. A short test takes a few minutes, a long one can take hours.

smartctl -t short /dev/sdX
smartctl -t long /dev/sdX

The docs list the attributes to watch: reallocated sectors (5), reported uncorrectable errors (187), pending sectors (197) and uncorrectable sectors (198). Anything above 0 on those deserves attention, and a growing count means plan a replacement.

The caveat: replace sdX with the right device, and note that the docs say SMART monitoring works for SATA but not for SAS drives. The letters can change after a reboot, so check the Main tab each time.

Further reading: Unraid docs: Command line interface, Unraid docs: SMART reports and disk health, On this site: acknowledge the orange SMART icon so it only warns you about new changes, On this site: mirror the syslog to the boot drive, but only for a few days

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