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  [ 8 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: 849
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: 219
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: 849
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: 15461
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: 849
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: 15461
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: 849
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: 15461
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 15 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