$ sudo smartctl -a /dev/sdb | grep "progress" -i -A 1 # 3 Extended captive Self-test routine in progress 90% 216 - # 4 Offline Interrupted (host reset) 60% 215 - # 5 Short captive Self-test routine in progress 60% 215 - # 6 Offline Interrupted (host reset) 60% 215 - # 7 Short captive Self-test routine in progress 60% 215 - # 8 Short offline Completed without error 00% 215
I was running a long extended test.
Now It is very tricky to find out what the state is because the 1st one I interrupted as well but it still it shows the above -
and running it as -
$ sudo smartctl -a /dev/sdb | tail SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Aborted_by_host [90% left] (0-65535) 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.
So does it mean that no tests are running atm or what ?
Another query is how do I make sure that no test is running at all, before running a test.
There is supposed to be -
$ sudo smartctl -X /dev/sdb
Need some way to confirm the same that no test is running in the background.