MS-DOS 6.22 DEFRAG Utility on FAT16 Partitions

The primary function of the MS-DOS 6.22 DEFRAG utility on FAT16 partitions is to reorganize non-contiguous file clusters into contiguous sequences and consolidate free disk space. By reorganizing the physical layout of data on the disk, DEFRAG minimizes mechanical drive head movement, optimizes the File Allocation Table (FAT), and significantly improves system read and write performance.

How Fragmentation Occurs in FAT16

The FAT16 file system allocates storage space using fixed-size blocks called clusters. When files are saved, modified, or deleted over time, the operating system fills available clusters wherever space is found. This often scatters a single file across disparate areas of the hard drive.

On mechanical hard drives, reading a fragmented file requires the drive heads to repeatedly move back and forth across platters. This physical travel increases seek time, causes latency, and strains drive hardware.

Primary Functions of DEFRAG in MS-DOS 6.22

Licensed from Symantec’s Norton Speed Disk, the DEFRAG utility performs three core actions on a FAT16 partition:

  1. Cluster Reordering: It identifies fragmented files and physically relocates their data clusters so that each file occupies a continuous, unbroken chain of sectors.
  2. Free Space Consolidation: It moves all allocated clusters toward the beginning of the partition, grouping all unallocated space into a single contiguous block at the end. This prevents newly written files from immediately fragmenting.
  3. Allocation Table Updates: For every cluster moved, DEFRAG updates the FAT16 allocation tables and directory structures to ensure file pointers accurately map to their new physical addresses.

Optimization Modes

MS-DOS 6.22 allows users to run DEFRAG using specific strategies depending on performance needs:

  • Full Optimization: Defragments all files, clears gaps between files, and moves all free space to the end of the disk.
  • Unfragment Files Only: Makes fragmented files contiguous without rearranging existing free space gaps, completing the process faster.

System Benefits

Once DEFRAG completes its routine on a FAT16 partition, sequential read operations require minimal head movement, resulting in faster executable load times and quicker file access. Furthermore, consolidating data into contiguous blocks simplifies data recovery efforts, increasing the success rate of utilities such as UNDELETE if files are accidentally removed.