Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

FreeDOS Defrag

help.fdos.org

  • Free plan
  • Self-hosted
6.6 Club score Visit help.fdos.org

What FreeDOS Defrag is

FreeDOS Defrag, also called DEFRAG, is a free open-source DOS utility that rearranges file fragments on a specified drive to improve loading times. Fragmentation is a normal DOS disk process that can slow access. The program offers a menu interface and a command-line mode selected with /C. Full optimization with /F places files at the beginning of the disk without gaps, while /U unfragments files but may leave gaps. The /S option orders files by name, extension, date and time, or size, with descending order available. Other switches cover quick defragmentation, rebooting after optimization, and exiting when complete. The help recommends occasional use or running it after installing large programs or creating many small files. Documented errors include disk-full, read, write, FAT-allocation, and memory failures. FreeDOS 1.4 is distributed in LiveCD, USB, LegacyCD, and floppy editions.

Who it suits

FreeDOS Defrag suits people maintaining DOS-compatible systems and drives where fragmentation affects file access. It is also relevant to FreeDOS users working with the listed installation environments.

Good to know, and what to watch

  • Free and open source
  • Menu and command-line interfaces
  • Full and unfragmenting modes
  • Sorting by several file attributes
  • Quick and reboot options included
  • Designed for DOS disk environments
  • Defragmentation can report disk or memory errors
  • Requires operation on a specified drive

FreeDOS Defrag

Free

Open source

The verdict

DEFRAG provides focused DOS disk optimization with selectable ordering and operating modes. Its value is clearest in FreeDOS or compatible environments described by the project.

What the maker publishes

Compatibility context
The FreeDOS project describes its system as DOS-compatible and says programs that work on MS-DOS should also run on FreeDOS. source
Distribution
The FreeDOS 1.4 distribution is downloadable in LiveCD, USB, LegacyCD, and floppy editions. source
Errors
The documented exit codes include disk-too-full, read-error, write-error, FAT-allocation, and memory errors. source
File ordering
The /S option sorts files by name, extension, date and time, or size, with an optional descending order. source
Founded
1994 source
Interface
It provides a menu-driven user interface and a command-line mode selected with the /C option. source
Operating context
The help describes fragmentation as a normal process on DOS disks that can slow file access. source
Optimization modes
The /F option fully optimizes a drive by placing files at the beginning of the disk without gaps, while /U unfragments files but may leave gaps. source
Other options
Options include quick defragmentation, rebooting after optimization, and exiting when optimization completes. source
Purpose
DEFRAG optimizes file loading times from a disk by moving file fragments together. source
Recommended use
The help recommends using DEFRAG occasionally or after installing larger programs or creating many small files. source
Security and compliance
The opened DEFRAG help and download pages do not state security certifications or compliance claims. source
System requirements
The FreeDOS download page lists an Intel CPU, BIOS or UEFI Legacy mode, 640kB memory, and at least 20MB of hard disk for installation. source

Checked against the maker's pages on 4 Oct 2026.