MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Write Uncorrectable Ext
PostPosted: October 2nd, 2011, 17:53 
Offline

Joined: October 2nd, 2011, 17:49
Posts: 6
Location: United States
I am using HDPARM to flag a sector as bad(for testing purposes). Is there any way to recover the data on that sector?

I know write uncorrectable just garbles the ecc for the sector to flag it as bad. HDPARM has a repair sector command but it writes 0's to fix it and I want to recover the data.

If anyone knows a better way to simply flag and unflag a good sector as bad on the hardware level I'd love to hear it.


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 2nd, 2011, 18:48 
Offline

Joined: August 12th, 2008, 13:11
Posts: 3235
Location: USA
What is your end goal, to recover data from a sector which you have intentionally corrupted the ECC data for? Why not read the sector before you change it?

_________________
You don't have to backup all of your files, just the ones you want to keep.


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 2nd, 2011, 20:23 
Offline

Joined: October 2nd, 2011, 17:49
Posts: 6
Location: United States
The end goal is to recover data from a sector I have intentionally made bad, yes.


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 3rd, 2011, 1:57 
Offline

Joined: July 18th, 2006, 3:05
Posts: 7476
Location: ITALY
The idea is to 'hide' data behind a normally unreadable sector ...


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 3rd, 2011, 8:14 
Offline

Joined: August 12th, 2008, 13:11
Posts: 3235
Location: USA
Well, you can use Read Long, but then obviously without the ECC data you have no way of knowing if it was read correctly or not.

_________________
You don't have to backup all of your files, just the ones you want to keep.


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 5th, 2011, 4:52 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 16960
Location: Australia
AIUI, Read Long and Write Long were retired from the standard in ATA-4, so it could be that the OP's drive may not respond to these commands. In any case, I believe they were restricted to 28-bit LBA mode.

Moreover, the documentation for the WRITE UNCORRECTABLE EXT command doesn't specify how a particular sector is to be rendered uncorrectable, so it may not simply be a case of manipulating the ECC bytes. The standard also does not provide for simply "unflagging" the affected sector. Instead it appears that data must be written to it.

"If the host writes to a pseudo uncorrectable or flagged uncorrectable sector, the device shall attempt to write the data to the sector. The write shall clear the uncorrectable status of the sector and should verify that the sector may now be read without error."

Working Draft AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS):
http://www.t13.org/documents/UploadedDo ... A8-ACS.pdf

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 6th, 2011, 19:47 
Offline

Joined: October 2nd, 2011, 17:49
Posts: 6
Location: United States
Thats what I was afraid of. There is no way to unflag a write uncorrectable command.


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 6th, 2011, 20:31 
Offline

Joined: October 2nd, 2011, 17:49
Posts: 6
Location: United States
Would it possible to instead of sending an ATA command to instead use a hex editor or something to change the header of the sector itself?


Top
 Profile  
 
 Post subject: Re: Write Uncorrectable Ext
PostPosted: October 6th, 2011, 20:54 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 16960
Location: Australia
AIUI, the drive does not expose a sector's ECC bytes to the outside world. But I could be wrong ...

_________________
A backup a day keeps DR away.


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

All times are UTC - 5 hours [ DST ]


Who is online

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