SMART over USB
sudo smartdisk usb disk4macOS only offers SMART for internal or directly attached SATA and NVMe drives. Its USB
mass-storage driver does not pass SMART commands through, which is why smartctl cannot read USB
enclosures on a Mac. Without this command, smartdisk info only shows vendor, USB ID, serial
number and USB speed for a USB disk.
On Linux none of this is needed: the kernel passes the commands through, and smartdisk info
reads USB disks like internal ones.
How it works
Section titled “How it works”smartdisk usb works without a kernel extension:
- Cleanly unmounts the disk. It stops if the disk is in use.
- Detaches the macOS driver through libusb (this needs root) and selects the adapter’s Bulk-Only mode.
- Speaks USB Bulk-Only Transport directly and wraps ATA commands in SCSI ATA PASS-THROUGH (16). Only read commands are sent: IDENTIFY DEVICE, SMART READ DATA, SMART READ THRESHOLDS and SMART READ LOG. Behind a Realtek USB-to-NVMe adapter it uses Realtek’s NVMe pass-through: IDENTIFY CONTROLLER and the SMART / Health log.
- Hands the disk back to macOS, also on errors or Ctrl-C. macOS mounts it again.
The command line tool needs libusb; SmartDisk for Mac bundles it.
Adapters
Section titled “Adapters”- Works with USB-to-SATA adapters that support Bulk-Only and SAT, which covers most current hard-disk enclosures. Tested with a WD Elements 12 TB.
- Realtek RTL9210 / RTL9220 USB-to-NVMe adapters are supported following smartmontools’ implementation, tested against an emulated adapter, not yet against real hardware.
- Not supported yet: UAS-only adapters and other USB-to-NVMe adapters (for example JMicron JMS583, ASMedia ASM2362). Each needs its own vendor-specific commands.