Re: [Smartmontools-database] nocheck directive not working for Toshiba DWC120 2TB

Christian Franke <[email protected]> Fri, 11 Mar 2016 21:20:02 +0100
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
Simon Nagl wrote:
>> Am 11.03.2016 um 07:25 schrieb Christian Franke <...>:
>>
>> Simon Nagl wrote:
>>> Hello,
>>>
>>> the option -n is not working for the USB-Device Toshiba DWC120 2TB.
>>> Smart Status reporting and checks work.
>>> I am using version 6.4 2015-06-04 r4109
>>>
>>> Here some output which hopefully helps to find the problem.
>>>
>>> # smartctl -i -n idle /dev/sdb
>>>
>>> CHECK POWER MODE: incomplete response, ATA output registers missing
>>> CHECK POWER MODE not implemented, ignoring -n option
>> This is a typical limitation of the SAT layer of some USB bridges: ATA output registers are not properly returned as SCSI sense data.
>>
>> For further diagnostics, please provide the output of the following command as an attachment:
>>
>> smartctl -r ioctl,2 -i -H -n idle /dev/sdb


The result is as expected: The USB bridge ignores CK_COND bit in SAT 
ATA-PASS-THROUGH command. ATA output registers (with power mode in 
SECTOR COUNT register) shall be returned in SCSI sense data. The USB 
bridge does not return any sense data:

> REPORT-IOCTL: Device=/dev/sdb Command=CHECK POWER MODE
>  Input:   FR=...., SC=...., LL=...., LM=...., LH=...., DEV=...., CMD=0xe5
>  [ata pass-through(16): 85 06 2c 00 00 00 00 00 00 00 00 00 00 00 e5 00 ]
>   scsi_status=0x0, host_status=0x0, driver_status=0x0
>   info=0x0  duration=0 milliseconds  resid=0
>  [Duration: 0.001s]
> CHECK POWER MODE: incomplete response, ATA output registers missing


Same problem occurs with SMART STATUS.

> REPORT-IOCTL: Device=/dev/sdb Command=SMART STATUS CHECK
>  Input:   FR=0xda, SC=...., LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0
>  [ata pass-through(16): 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 00 ]
>   scsi_status=0x0, host_status=0x0, driver_status=0x0
>   info=0x0  duration=230 milliseconds  resid=0
> ..
> SMART Status not supported: Incomplete response, ATA output registers 
> missing


As a workaround, smartctl performs an attribute check then:

> SMART overall-health self-assessment test result: PASSED
> Warning: This result is based on an Attribute check.


There is no possible workaround for CHECK POWER MODE. The USB bridge 
vendor should fix their firmware.

Thanks,
Christian


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140