e2freefrag · shipping

e2freefrag

e2freefrag is an e2fsprogs utility that reports free-space extent sizes and fragmentation on ext2, ext3 and ext4 filesystems.

Related Observatory article: Read on hesela.com

Reports concern unused allocation space, not an individual file's layout; reporting neither relocates data nor validates file contents. [1]

The -c size uses KiB and must be a power of two. Version 1.47.4 accepts equality with the filesystem block size although its manual says larger. Histogram Percent is each bin's free-block share, not its extent-count share. [2]

In v1.47.4, a successful online scan updates extent statistics but not the free_chunks counter. Its zero is not proof of unavailable aligned space. Online failure falls back to bitmap scanning. [2]

Equal free capacity and equal extent lengths can hide different alignment. A histogram therefore cannot by itself establish how many aligned allocation regions are available.

Relations

related
Free-space fragmentation, Allocation bitmap, Filesystem aging, Ext4

Limitations

  • A report is not an allocator-success or performance guarantee.
  • Record tool version, scan path and concurrent filesystem activity; completion does not establish snapshot consistency.

Citations

  1. e2fsprogs v1.47.4: e2freefrag reporting and chunk-size option (accessed 2026-12-05)
  2. e2fsprogs v1.47.4: bitmap and online scan paths, histogram and chunk counters (accessed 2026-12-05)
  3. Hesela: e2freefrag offline reporting probe, versioned results and limitations (accessed 2026-12-05)
Sources & caveats
  • Pinned manual and implementation review; source-level conclusions are not measured device behavior.
  • The linked Observatory illustration reuses Hesela's existing aligned-capacity model and contains no native e2freefrag output.
  • Offline native e2fsprogs 1.47.0 reporting on one disposable 16 MiB image confirmed the extra total-chunk denominator and acceptance of block-sized chunks; no mounted scan was tested. [3]

JSON: /data/terms/e2freefrag.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. e2freefrag. Hesela. 2026-12-05. https://hesela.dev/terms/e2freefrag/