Skip to content

Data sources and cross-checks

Disk Path
Mac: internal SSD, NVMe, SATA on Apple’s driver IOKit (IONVMeSMARTInterface, IOATASMARTInterface), no root needed
Mac: USB hard disk sudo smartdisk usb: SmartDisk’s own USB path. See SMART over USB
Linux: SATA and USB disks (sdX) SG_IO ioctl with ATA PASS-THROUGH (16); Realtek USB-to-NVMe adapters through Realtek’s pass-through
Linux: NVMe (nvmeXnY) NVMe admin ioctl: Identify Controller and the SMART / Health log
Fallback smartctl, if installed and the native query fails

The Data source line of each report shows which path was used.

Used drives are sometimes sold with SMART values reset to zero. SmartDisk reads independent records from the drive and compares them:

Source Contents Available via
SMART attributes Power-on hours (09), power cycles (0C), defects IOKit, USB, Linux
ATA Device Statistics (log 0x04) Power-on hours, power cycles, data read and written, highest and lowest temperature, rated maximum temperature, error counters, SSD endurance IOKit, USB, Linux
Seagate FARM (log 0xA6) True power-on hours, power cycles, serial number, date of assembly, SMR/CMR USB, Linux

The report shows Hours cross-check: ✓ consistent or ✗ mismatch. If Device Statistics or FARM show clearly more hours (more than 48 hours and 10 %) or power cycles than SMART, or the FARM serial number differs, the drive is rated CAUTION, and the SmartDisk Cloud flags the report.

The cloud also compares a drive’s reports over time: fewer power-on hours, power cycles or reallocated sectors than an earlier report mean the values were reset.

Attribute names and raw-value formats (for example power-on time stored in minutes on some models) come from the drivedb.h of an installed smartmontools. Without it, SmartDisk uses a built-in table of the common attributes. SmartDisk contains no smartmontools code: drivedb.h is only read as data.