All times are UTC - 5 hours [ DST ]


Forum rules


Please do not post questions about data recovery cases here (use this forum instead). This forum is for topics on finding new ways to recover data. Accessing firmware, writing programs, reading bits off the platter, recovering data from dust...



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: SMART Error Log 07 - how to read it ?
PostPosted: July 18th, 2017, 4:43 
Offline

Joined: September 30th, 2005, 7:33
Posts: 523
Hi guru's ,

could you tell me how to read Self-Test EXT Error Log ?
B0 command doesn't work.


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 18th, 2017, 4:49 
Offline

Joined: October 24th, 2014, 4:57
Posts: 212
Location: Remote Raid Help on planet Earth
Drive's vendor, model, family?

_________________
http://www.alfadatarecovery.com


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 18th, 2017, 10:44 
Offline

Joined: September 30th, 2005, 7:33
Posts: 523
Martin wrote:
Drive's vendor, model, family?


Is it a VSC ? :shock:

HGST HDS722020ALA330


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 18th, 2017, 16:19 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 9745
Location: Australia
Deskstar 7K2000 and Ultrastar A7K2000 Specification v1.0:
https://www.hgst.com/sites/default/files/resources/USA7K2000_DS7K2000_OEMSpec_r1.4.pdf

The SMART Read Log Sector (Subcommand D5h) is documented on page 207.

Quote:
Note: Log addresses 03h and 07h are used by the Read Log Ext and Write Log Ext commands. If these log addresses are used with the SMART Read Log Sector command, the device shall return command aborted.

The Read Log Ext (2Fh) command is documented on page 144.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 4:14 
Offline

Joined: September 30th, 2005, 7:33
Posts: 523
fzabkar wrote:
The Read Log Ext (2Fh) command is documented on page 144.


Yes, but very obscured... :(

I don't get it. Do you?


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 4:47 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 9745
Location: Australia
2Fh is a 48-bit command.

    FR = xxxxh (log specific, reserved by ATA standard, maybe set to 0000 ???)
    SC = nnnnh (number of sectors to be read from log)
    SN = 07h
    CL = ssssh (first sector/page of log to be read, 0000 is first sector)
    CH = don't care
    DH = A0h or B0h (master/slave)
    CR = 2Fh

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 7:58 
Offline

Joined: September 30th, 2005, 7:33
Posts: 523
fzabkar wrote:
    FR = xxxxh (log specific, reserved by ATA standard, maybe set to 0000 ???)

Maybe "brute force" is needed?


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 16:43 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 9745
Location: Australia
Read the ATA standard. If that doesn't help, then you could examine the relevant code in the open source smartmontools project.

Otherwise you could try the following MHDD script (untested).

Code:
; read first sector of Self-Test EXT Error Log 07h
; cycle through values of 0000 - 0x00FF for Features Register

reset
waitnbsy

; get first page

%fr = -1

@loop:
%fr = %fr + 1
if %fr = 256 @end
waitnbsy

regs = $00 $00 $00 $00
waitnbsy

regs = %fr $01 $07 $00 $00 $a0 $2f
waitnbsy

%error = iserror
if %error = 1 @loop
checkdrq
sectorsto = logpages\%fr.bin
goto @loop

@end:

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 16:55 
Offline
User avatar

Joined: December 19th, 2006, 8:49
Posts: 8159
Location: Portugal
Maybe your drive doesn't support the Self-Test EXT Error Log ?

Attachment:
1.jpg
1.jpg [ 67.75 KiB | Viewed 1503 times ]

_________________
1Q9xrDTzTddUXeJAFRn37aqh1Yr6buDCdw - (Bitcoin Donations)
The HDD Oracle - Platform for OPEN research on Data Recovery.


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 16:57 
Offline
User avatar

Joined: December 19th, 2006, 8:49
Posts: 8159
Location: Portugal
Oh ....

Quote:
Note: Log addresses 03h and 07h are used by the Read Log Ext and Write Log Ext commands. If these log addresses are used with the SMART Read Log Sector command, the device shall return command aborted.


As shown on my HRT screen capture this is exactly correct !!!

_________________
1Q9xrDTzTddUXeJAFRn37aqh1Yr6buDCdw - (Bitcoin Donations)
The HDD Oracle - Platform for OPEN research on Data Recovery.


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 17:02 
Offline
User avatar

Joined: December 19th, 2006, 8:49
Posts: 8159
Location: Portugal
fzabkar wrote:
(...)

Otherwise you could try the following MHDD script (untested).

Code:
; read first sector of Self-Test EXT Error Log 07h
; cycle through values of 0000 - 0x00FF for Features Register

reset
waitnbsy

; get first page

%fr = -1

@loop:
%fr = %fr + 1
if %fr = 256 @end
waitnbsy

regs = $00 $00 $00 $00
waitnbsy

regs = %fr $01 $07 $00 $00 $a0 $2f
waitnbsy

%error = iserror
if %error = 1 @loop
checkdrq
sectorsto = logpages\%fr.bin
goto @loop

@end:


It looks like it should work ....

I've tested this on my drive :

Attachment:
2.jpg
2.jpg [ 69.13 KiB | Viewed 1502 times ]


And got this :

Attachment:
3.jpg
3.jpg [ 160.96 KiB | Viewed 1502 times ]


It didn't ABORT as it did when using the read S.M.A.R.T. command.

_________________
1Q9xrDTzTddUXeJAFRn37aqh1Yr6buDCdw - (Bitcoin Donations)
The HDD Oracle - Platform for OPEN research on Data Recovery.


Top
 Profile  
 
 Post subject: Re: SMART Error Log 07 - how to read it ?
PostPosted: July 19th, 2017, 17:08 
Offline
User avatar

Joined: December 19th, 2006, 8:49
Posts: 8159
Location: Portugal
It doesn't matter what i place on the error/feature register. I did test with 00, 07, 10, etc and whatever i place there it doesn't matter i allways get the same data/log on the buffer.

_________________
1Q9xrDTzTddUXeJAFRn37aqh1Yr6buDCdw - (Bitcoin Donations)
The HDD Oracle - Platform for OPEN research on Data Recovery.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group