All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: April 22nd, 2024, 0:54 
Offline
User avatar

Joined: April 7th, 2009, 21:36
Posts: 364
I've got a problematic M11 drive, initially it has this output in the terminal:

Code:
MC051: MainPOR: EXCEPTION: Corrupt PRI copy of MCMT
MC051: MainPOR: EXCEPTION: Corrupt PRI copy of MCMTMS UDE detect during recon   LPCDisc=00 27D2B643 0027
MS Read Fails: 3E95AF00,0000D938
Update Mask - 000000013E95C2D8 - 00000001 - 00
Update Mask - 000000013E95C2D9 - 00000001 - 00
Update Mask - 000000013E95C2DA - 00000001 - 00
Update Mask - 000000013E95C2DB - 00000001 - 00
Update Mask - 000000013E95C2DC - 00000001 - 00
...
LED:0x000000BD FAddr:0x00005E43


And the drive freezes without ATA or terminal access.

After gaining terminal access and backing up system files, the MCMT was reinitialised with C>U10. Also disabled all the usual suspects in SMP.

The drive can now be interacted with via ATA and terminal, but has the following output:

Code:
Boot 0x80MMD45010001   
SpinUp
TCC:001D

Trans
Tech Unlock Handshake: 0xCFE6C19C
Reply:
Rst 0x80MMD4501001   
(P) SATA Reset

RAW OFF
PASSChannel Tracing Offset Value load............................................................................................................................................................................................................................................................................................................
MCMainPOR: Start:
Media Cache Data Base  02463B71D8
Check MCMT Version: Current
Both copy is same!
SP213: Restore: EXCEPTION: Scratch Pad Restore Failed, the MS may contain errors
MCMainPOR: MediaCacheDiscStateFlags 0000002A  MCStateFlags 00020041
6Gb Max Speed lowered to 3Gb for Intel bug
Send Status: COMRESET seen
FIS34


Writing either copy of the MCMT back to the drive (copy 0 has 0x2BC extents, copy 1 has no extents) causes it to freeze without terminal or ATA access again.

Importing the extents from copy 0 of the original MCMT and writing this to disk results in the same error. Verified with C>U4 that the extents are present.
Code:
SP213: Restore: EXCEPTION: Scratch Pad Restore Failed, the MS may contain errors


Anyone resolved this issue before?

_________________
Zero Alpha > https://zeroalpha.com.au


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: May 15th, 2024, 20:34 
Offline
User avatar

Joined: April 7th, 2009, 21:36
Posts: 364
These MCMT error messages (MC051, MC052 and SP213) appear in the diskfw system file (FID 20D/20E)

Sounds like the only hope for this problem is to reverse some of the firmware code...

_________________
Zero Alpha > https://zeroalpha.com.au


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: May 16th, 2024, 4:38 
Offline
User avatar

Joined: January 28th, 2009, 10:54
Posts: 3471
Location: Greece
What happens if you clear MCMT, fix 50/348 and upload to RAM instead?

_________________
http://www.northwind.gr
SandForce SSD Recovery
Ransomware Reverse Engineering - NoMoreRansom! partners


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: May 16th, 2024, 4:45 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4370
Location: Hungary
I would first clone the drive without MC and check the quality

_________________
Adatmentés - Data recovery


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: May 20th, 2024, 1:18 
Offline
User avatar

Joined: April 7th, 2009, 21:36
Posts: 364
northwind wrote:
What happens if you clear MCMT, fix 50/348 and upload to RAM instead?


Same behaviour:
    - scratchpad restore error printed to terminal after power on
    - drive still has correct ID with full capacity, SA access but no DA access
    - upload fixed MCMT to RAM
    - C>U4 shows all the extents as expected
    - no DA access

_________________
Zero Alpha > https://zeroalpha.com.au


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: May 20th, 2024, 1:20 
Offline
User avatar

Joined: April 7th, 2009, 21:36
Posts: 364
pepe wrote:
I would first clone the drive without MC and check the quality


This is what I would like to do, but when I disable media cache in SMP the drive still prints scratchpad restore error and I do not have DA access.

Is there a better approach to cloning without MC?

_________________
Zero Alpha > https://zeroalpha.com.au


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: May 20th, 2024, 11:56 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4370
Location: Hungary
what error do you get (in ata regs and on terminal)?

_________________
Adatmentés - Data recovery


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: Yesterday, 19:24 
Offline
User avatar

Joined: April 7th, 2009, 21:36
Posts: 364
pepe wrote:
what error do you get (in ata regs and on terminal)?


ATA regs OK, get DRD DSC. Drive ID has correct capacity

can access service error via ATA with no issues
get ABR error when attempting to access data area

terminal output is
Code:
Boot 0x80MMD45010001   
SpinUp
TCC:0016

Trans
Tech Unlock Handshake: 0x582B0758
Reply:
Rst 0x80MMD4501001   
(P) SATA Reset

RAW OFF
PASSChannel Tracing Offset Value load............................................................................................................................................................................................................................................................................................................
MCMainPOR: Start:
Media Cache Data Base  02463B71D8
Check MCMT Version: Current
Both copy is same!
SP213: Restore: EXCEPTION: Scratch Pad Restore Failed, the MS may contain errors
MCMainPOR: MediaCacheDiscStateFlags 0000002A  MCStateFlags 00020041
6Gb Max Speed lowered to 3Gb for Intel bug
Send Status: COMRESET seen
FIS34


behaviour has been the same with cleared and fixed MCMT and with MC on and off

_________________
Zero Alpha > https://zeroalpha.com.au


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: Today, 0:04 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15631
Location: Australia
I'm probably demonstrating my ignorance, but what is the FLASH_PAD segment in the ROM?

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: Today, 2:21 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4370
Location: Hungary
can you upload sa backup somewhere?

_________________
Adatmentés - Data recovery


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: Today, 2:42 
Offline
User avatar

Joined: April 7th, 2009, 21:36
Posts: 364
pepe wrote:
can you upload sa backup somewhere?


pm'd

_________________
Zero Alpha > https://zeroalpha.com.au


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: Today, 5:17 
Offline

Joined: February 22nd, 2023, 13:49
Posts: 72
Location: Eastern Europe
fzabkar,
The alignment of the beginning of the next segment is a multiple of 512 bytes. Dummy.


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: Today, 5:41 
Offline

Joined: February 22nd, 2023, 13:49
Posts: 72
Location: Eastern Europe
DL_PAD - dummy (empty) in Seagate loader's too.


Top
 Profile  
 
 Post subject: Re: ST5000LM000-2AN170 Scratch Pad Restore Failed
PostPosted: Today, 6:29 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15631
Location: Australia
So, it's just empty padding?

I was reading (or trying to read) this patent:

STORAGESYSTEM WITH MEDIA SCRATCH PAD:

https://patentimages.storage.googleapis.com/49/be/38/81d55c1587005d/US8947817.pdf

Quote:
When a drive powers up after it unexpectedly lost power (such as after an abrupt or rude power loss), an attempt will be made to first recover the MC metadata table (MCMT) from the system area; because the MCMT contains the location of the media scratchpad that was last used before the power loss, the drive will know where the most recently used media scratchpads are located. The drive will also attempt to recover any media cache segments that may have been written after the last saving of the MCMT to the system area. For example, the drive will recover a few media cache segments from the media cache area and retrieve the location of the last media scratch pad from the lastly written media cache segment. The media scratchpad contains metadata header and footer which are used to determine what user data is contained the media scratch pad, the host logical block address, and length.

ISTM that, if the MC is disabled, or the MCMT is cleared, then all references to the problematic scratch pad would be lost or ignored. Yet the drive is still complaining. Therefore, I was wondering if there was something going on in a nonvolatile cache (NvC) in ROM. Some SMR drives have an NvC area at the end of the ROM for power loss data protection, and I know that this model stores SMART data in segment 2B.

_________________
A backup a day keeps DR away.


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: aurianna, Google [Bot] and 50 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