Question: When running SMART-Tests using smartmontools, they NEVER finish. I always get “Interrupted (host reset.)” on various different systems and disks, including Debian in x86 and ARM, OS X on x64, with external and internal drives. Even when run in captive mode with disks all empty (zeroed with dd).
What am I doing wrong?
Answer: When the drive does not handle any input/output activity during the test, it may go to standby, which raises the Interrupted (host reset) condition. Try to read from the disk at suitable intervals:
while true; do dd if=/dev/disk1 of=/dev/null count=1; sleep 60; done
(replace /dev/disk1 with the appropriate device; reads one sector from that device every 60 seconds until you hit ctrl-c)
This helped in my environment: OS X 10.6.8, WD Elements USB-connected drive, SAT-SMART-driver 0.8.
A captive test should theoretically keep the drive online. Yet the hardware command send by smartctl may time out before the test completes, causing the kernel to reset the link and ending up in the same situation as above (bug #303).
See this thread on the smartmontools-support mailing list for further details. I acknowledge Christian Franke for the insight given here.