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

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Bad Sector Reading
PostPosted: June 18th, 2006, 20:00 
Offline

Joined: June 14th, 2006, 0:58
Posts: 7
Hi,

I have a general question concerning the practice of reading a failed sector that I hope someone can help shed some light on. Hopefully it's not a stupid question... :oops:

Programs such as Spinrite claim to be capable of reading a failed sector, and with some effort, are capable of determining most (if not all) of a sectors contents. Spinrite in this example utilizes disk access through the BIOS.

In another example, MediaTools offers both BIOS and direct drive access, the latter of which offers the ability to "read long" and accept a failed sector contents as is. The former (BIOS) will yield only "0" when viewed under a hex editor for that sector while the latter produces some, if compromised, results.

So the question is, can a program read a failed sector, at least to a degree, while using BIOS control or does the drive simply report "0" to the program trying to access it? I know that Sprinrite works for floppy media and MFM drives, but I am unsure of today's IDE drives giving the same results.


Thank you for any info,
dellyfry


Top
 Profile  
 
 Post subject: Re: Bad Sector Reading
PostPosted: June 19th, 2006, 18:30 
Offline
User avatar

Joined: September 27th, 2005, 14:14
Posts: 125
Location: In the Middle - bit to the left
dellyfry wrote:
Hi,

I have a general question concerning the practice of reading a failed sector that I hope someone can help shed some light on. Hopefully it's not a stupid question... :oops:

Programs such as Spinrite claim to be capable of reading a failed sector, and with some effort, are capable of determining most (if not all) of a sectors contents. Spinrite in this example utilizes disk access through the BIOS.

In another example, MediaTools offers both BIOS and direct drive access, the latter of which offers the ability to "read long" and accept a failed sector contents as is. The former (BIOS) will yield only "0" when viewed under a hex editor for that sector while the latter produces some, if compromised, results.

So the question is, can a program read a failed sector, at least to a degree, while using BIOS control or does the drive simply report "0" to the program trying to access it? I know that Sprinrite works for floppy media and MFM drives, but I am unsure of today's IDE drives giving the same results.


Thank you for any info,
dellyfry




Read and enjoy :lol:

http://en.wikipedia.org/wiki/BIOS_call# ... From_Drive

_________________
A man is as old as he feels, and a woman as old as she looks


Top
 Profile  
 
 Post subject: Bad Sector Reading
PostPosted: June 19th, 2006, 22:01 
Offline

Joined: June 14th, 2006, 0:58
Posts: 7
hddguru,

Thank you kindly for the reply and information. Following the link you provided and additional research answered my question.

I appreciate it.

dellyfry


Top
 Profile  
 
 Post subject:
PostPosted: June 20th, 2006, 18:35 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4754
Location: Hungary
Hi,

If U write prog to read bypassing bios (direct port access), U will find that if U use command 0x20 (read with retry), most of the drives will set DRQ together with ERR (in Status reg). That means U can read out the content of a bad sector without re-reading it with a Read Long command.
This only makes sense if the error was UNC, ie. the sector was read but the errors could not be corrected using ECC.
if the sector could not even be found (AMNF, ABRT...), the returned data has no relation to the original of course.
AFAIK, Quantum, Maxtor, IBM drives work this way, while Seagates do not set DRQ uppon an error, so u have to use an extra Read Long command.
Other brands I have no information, or I don't remember.
I hope it helps.

regards,
pepe


Top
 Profile  
 
 Post subject: Re: Bad Sector Reading
PostPosted: June 20th, 2006, 22:26 
Offline

Joined: June 14th, 2006, 0:58
Posts: 7
Hi pepe,

Thank you for the information, it helped provide an additional bit of clarity and an excellent spring board for more indepth research .

I appreciate everyones input and professionalism on this forum



take care,
dellyfry


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

All times are UTC - 5 hours [ DST ]


Who is online

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