MS-DOS FORMAT Does Not Preserve Clusters Marked Bad

Article translations Article translations
Article ID: 103548 - View products that this article applies to.
This article was previously published under Q103548
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

Summary

Versions of the FORMAT command in versions of MS-DOS earlier than 6.2 do not preserve bad cluster markers in the file allocation table (FAT).

For added safety, run a third-party surface scan program after you run FORMAT or upgrade to MS-DOS version 6.2.

More information

Any hard disk may a have a few bad sectors. Disk surface scan programs, such as Microsoft MS-DOS ScanDisk, Symantec's Norton Utilities Norton Disk Doctor (NDD.EXE), and Central Point Software DiskFix can detect (and mark as bad) sectors that are marginally reliable. This is done by marking the cluster that contains the bad sector with a special entry in the file allocation table (FAT)--FF7h in 12-bit FATs and FFF7h in 16-bit FATs.

Versions of MS-DOS FORMAT earlier than 6.2 do not preserve entries marked as bad in the FAT. Instead, FORMAT clears the FAT, performs its own disk integrity test, and marks clusters with unreliable sectors as bad. Since the FORMAT integrity test is not as thorough as some surface scan programs, and because sector failures can be intermittent, FORMAT may not detect bad sectors that were previously marked as bad by a surface scan utility.

MS-DOS 6.2 FORMAT preserves the FAT entries that are marked as bad (rather than marking them good and retesting them). This reduces the risk of a marginally reliable sector being marked as usable.

In some circumstances, it is desirable to not preserve the bad cluster markers. For example, an errant program may damage the FAT and fill in entries with inappropriate bad cluster markers. In such a case, you can use the FORMAT /C command. The /C switch directs FORMAT to clear the FAT (ignoring bad clusters markers) and revert to its pre-MS-DOS 6.2 behavior. Note, you should run Microsoft ScanDisk or a third-party surface scan program after performing a FORMAT /C command.

WARNING: If you are experiencing increasing problems with bad sectors on your disk, be sure to perform frequent backups of your data and run ScanDisk (or a similar disk utility) regularly. If problems persist consult your hardware vendor.

Properties

Article ID: 103548 - Last Review: October 26, 2013 - Revision: 3.0
Applies to
  • Microsoft MS-DOS 4.0 Standard Edition
  • Microsoft MS-DOS 5.0 Standard Edition
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft Windows 95
Keywords: 
kbnosurvey kbarchive KB103548

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com