How to Read SMART from a USB Drive on macOS
macOS can’t show SMART health for USB drives. Disk Utility says “Not Supported”, smartctl says “Operation not supported by device”.
The usual fixes are a kernel extension, a Linux VM, or another computer. This script does it with none of them: usb_smart.py
Setup
brew install libusb uv
mkdir ~/usb-smart && cd ~/usb-smart # put usb_smart.py here
uv venv venv
uv pip install --python venv/bin/python pyusb
Get your drive’s IDs:
system_profiler SPUSBHostDataType # USB Vendor ID, USB Product ID
Set them at the top of the script, with the volume name from Finder:
VID, PID, MOUNT = 0x0BC2, 0x231A, "/Volumes/MyDrive"
Run
venv/bin/python usb_smart.py --probe # no root: must list four "uas ep" lines
sudo venv/bin/python usb_smart.py # reads SMART
The drive leaves Finder for a few seconds and comes back. If it doesn’t, replug it.
Read the Result
Model: ST4000LM024-2AN17V
Overall health: PASSED
ID ATTRIBUTE VAL WORST THR RAW
5 Reallocated_Sector_Ct 100 100 10 0
9 Power_On_Hours 100 100 0 288
187 Reported_Uncorrect 100 100 0 0
197 Current_Pending_Sector 100 100 0 0
198 Offline_Uncorrectable 100 100 0 0
199 UDMA_CRC_Error_Count 200 200 0 0
| Attribute | Want | Meaning |
|---|---|---|
| Overall health | PASSED | The drive’s own verdict |
| 5 Reallocated_Sector_Ct | 0 | Bad sectors already replaced |
| 197 Current_Pending_Sector | 0 | Sectors it can’t read right now |
| 198 Offline_Uncorrectable | 0 | Sectors it gave up on |
| 187 Reported_Uncorrect | 0 | Read errors it couldn’t fix |
| 199 UDMA_CRC_Error_Count | 0 | Cable or connector problems |
| 9 Power_On_Hours | - | Real running time |
5, 197 or 198 above zero and growing: copy your data off and replace the drive.
Seagate: ignore the huge raw values on Raw_Read_Error_Rate and Seek_Error_Rate. They are counters, not errors.
Troubleshooting
| Message | Fix |
|---|---|
| run with sudo | Use the Terminal app, so sudo can ask for the password |
| could not unmount | Close whatever has a file open on the drive |
| drive not found on USB | Wrong VID or PID |
| No “uas ep” lines in the probe | The enclosure has no UAS. Won’t work |
| Timeouts, no data | The enclosure’s chip blocks SMART. Won’t work |
How It Works
A USB drive is a SATA disk behind a bridge chip. SMART needs an “ATA pass-through” command sent to that chip, and macOS has no API for it.
The script unmounts the drive, takes it from the macOS driver (hence root), sends read-only commands to the chip over UAS, and hands it back. It never writes to the disk.
Limits
- Tested on one drive: Seagate Expansion
0bc2:231a, macOS 27, Apple Silicon - NVMe enclosures won’t work
- The extra log reads at the end of the script are untested
- Back up first if the drive holds your only copy