>> smartctl --test short /dev/sda
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.10.176] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org/dev/sda: Unknown USB bridge [0x0bda:0x9201 (0xf200)]
Please specify device type with the -d option.Use smartctl -h to get a usage summary
需要添加 -d sat
>> smartctl --test short /dev/sda -d sat
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.10.176] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Thu Nov 14 13:32:46 2024 CST
Use smartctl -X to abort test.
smartctl -a /dev/sda -d sat
参照:https://unix.stackexchange.com/questions/39064/smartctl-on-external-hdd-inside-ide-to-usb-enclosure#109736
标签:bridge,smartctl,USB,Unknown,Please,dev,sda,test,specify From: https://www.cnblogs.com/profesor/p/18545790