Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/38113

From BetaArchive Wiki
Knowledge Base


CHKDSK and File Allocation Adjustments

Article ID: 38113

Article Last Modified on 5/12/2003



APPLIES TO

  • Microsoft MS-DOS 3.1
  • Microsoft MS-DOS 3.2 Standard Edition
  • Microsoft MS-DOS 3.21 Standard Edition
  • Microsoft MS-DOS 3.3 Standard Edition
  • Microsoft MS-DOS 3.3a
  • Microsoft MS-DOS 4.0 Standard Edition
  • Microsoft MS-DOS 4.01 Standard Edition
  • Microsoft MS-DOS 5.0 Standard Edition
  • Microsoft MS-DOS 5.0a
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.21 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition



This article was previously published under Q38113

SUMMARY

CHKDSK uses the File Allocation Table (FAT) to determine the condition of both of the following:

  • Disks as a whole
  • Files


MORE INFORMATION

The size of every file is stored in the file's directory entry. The chain size of any file is defined to be the number of clusters on the disk that it occupies multiplied by the number of bytes in each cluster. CHKDSK compares the two reported sizes to see if the directory entry and the FAT are comparable. CHKDSK displays the error message "Allocation error, size adjusted" if the sizes are incorrect.

The error is displayed when either of the following conditions is met:

  • The file size located in the directory entry is larger than the chain size. -or-


  • The chain size is more than one cluster size larger than the reported file size.

To adjust the size of the file, CHKDSK changes the directory entry to match the chain size.


Additional query words: 6.22 3.20 3.21 3.30 3.30a 4.00 5.00 5.00a 6.00 6.20

Keywords: KB38113