<div dir="ltr">I gave caffeinate a try, and set my system sleep time to a more reasonable timeout [30 minutes], but since smartctl isn't an interactive process [a tsr?], the system never stays awake long enough to finish a whole test.  I even added the -m option to prevent the disk from idle sleeping but that didn't help.<div><br></div><div>I wonder why Apple doesn't want to allow the selective test range...?</div><div><br></div><div>-Ubence</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 26, 2018 at 9:31 PM Ryan Schmidt <<a href="mailto:ryandesign@macports.org" target="_blank">ryandesign@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Jun 26, 2018, at 07:32, Ubence Quevedo wrote:<br>
<br>
> Ubences-MacBook-Pro:ata uquevedo$ smartctl -t long /dev/disk2<br>
> smartctl 6.6 2017-11-05 r4594 [Darwin 17.6.0 x86_64] (local build)<br>
> Copyright (C) 2002-17, Bruce Allen, Christian Franke, <a href="http://www.smartmontools.org" rel="noreferrer" target="_blank">www.smartmontools.org</a><br>
> <br>
> === START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===<br>
> Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".<br>
> Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.<br>
> Testing has begun.<br>
> Please wait 206 minutes for test to complete.<br>
> Test will complete after Tue Jun 26 08:52:02 2018<br>
> <br>
> Use smartctl -X to abort test.<br>
> <br>
> There’s no way that will complete under my system’s sleep schedule [three hour timeout for sleep] which isn’t ideal anyways.<br>
<br>
So tell the system not to sleep while the test is running.<br>
<br>
caffeinate -i smartctl -t long /dev/disk2<br>
<br>
For more info:<br>
<br>
man caffeinate<br>
<br>
</blockquote></div>