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 --scan lists every device with the -d type to use for smart

Smart
~/tips/tip-smart-smartctl-scan-device-types

sudo smartctl --scan

Lists the devices smartctl can read and the -d type that fits each.

Behind a RAID controller or a USB bridge, smartctl does not always guess the right device type.

sudo smartctl --scan

Each output line has the device and the -d option that smartctl would use, for example /dev/sda -d scsi or /dev/nvme0 -d nvme. Copy that pair into your own command. If a drive is missing from the list, try --scan -d sat or look at the smartmontools wiki page for your controller. Use --scan-open when you want smartctl to probe the devices as well.

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