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 -d sat reads smart data of a drive in a USB enclosure

Smart
~/tips/tip-smart-smartctl-d-sat-usb

sudo smartctl -d sat -a /dev/sdb

Reads the smart data of a USB-attached drive by using SAT pass-through.

A drive in a USB dock often returns nothing useful until smartctl is told how to talk to the bridge chip.

sudo smartctl -d sat -a /dev/sdb
sudo smartctl -d sat,12 -a /dev/sdb

-d sat sends the ATA commands through SCSI-to-ATA translation, which most USB bridges support. If it fails, try sat,12, or a chip-specific type such as usbjmicron. Some enclosures block the pass-through completely, and then the only option is to attach the drive over SATA directly. Run smartctl --scan first to see what type smartctl itself suggests for the device.

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