Article ID: 103956 - Last Review: November 19, 1999 - Revision: 1.0

How ScanDisk Fixes Bad Sectors

This article was previously published under Q103956
Expand all | Collapse all

SUMMARY

When ScanDisk encounters a bad sector it attempts to patch the sector. This is known as hot fixing or hot patching.

NOTE: If you are running in check mode (/CHECKONLY), ScanDisk does not attempt to hot fix the bad sectors.

MORE INFORMATION

Hot patching is the process of taking a file that contains one or more unreadable (bad) sectors and recovering all the data that is still readable. Any data that lies in a bad sector is replaced by zeros.

For example, if a file occupies clusters 1, 2, 3, 4, and 5, and cluster 3 contains one or more bad sectors, ScanDisk reads as many of the sectors from cluster 3 as possible and moves the data to a new location (for example cluster 7). Any sectors from cluster 3 that could not be read are replaced with sectors filled with zeros in cluster 7. The FAT chain for the file is updated and cluster 3 is marked bad. After this process is finished, the file occupies clusters 1, 2, 7, 4, and 5.

NOTE: This process makes the file fully readable, but the data that was in the defective sectors is still lost. It is not possible for ScanDisk to recover data from unreadable sectors.

APPLIES TO
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition
Keywords: 
KB103956
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations