# scsi -f /dev/rsd0c -c "03 00 00 00 fc 00 00" -i 0xfc - | hexdump -C
00000000  70 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |p...............|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |................|
*
000000f0  00 00 00 00 00 00 00 00  00 00 00 00             |............|
000000fc

byte 0  has to be 0x70 or 0x71
byte 7  has to be >= 10
byte 12 is 0x5d if you have a smart trip

this drive is clean!

Figuring out the -i format is left as an exercise for the reader.

Reading the smartlogs is worthles since you have no idea what bad means
for that drive.  Only the vendors know that.  So if byte 12 is set to
0x5d toss the damn drive.

krw || dlg, you get a cookie if you add this as a boot time command :-)

On Sun, Nov 15, 2009 at 04:32:13PM +1100, mark hellewell wrote:
> 2009/11/15 Mark Hellewell <mark.hellew...@gmail.com>:
> > Hello,
> >
> > Please can anybody tell me how to correctly run a SMART offline test using
> atactl?  I read through the atactl man page but am not sure how to go about
> actually executing the self test and gathering the results.  After having
> turned on SMART support for my device using
> 
> ..snip..
> 
> Sorry,  I should of course mention I'm running 4.6
> 
> mark

Reply via email to