e2freefrag
analyze ext filesystem free space fragmentation
TLDR
Check free space fragmentation
SYNOPSIS
e2freefrag [options] device
DESCRIPTION
e2freefrag prints free space fragmentation information for ext2/ext3/ext4 filesystems. It shows how many free blocks are available as contiguous and aligned free space in histogram format.
The tool analyzes the filesystem's free space distribution, reporting statistics about chunk sizes and their frequency. This information helps assess filesystem health and determine if defragmentation might improve performance.
Useful for identifying fragmentation patterns that could impact sequential I/O performance, particularly on systems with large files or database workloads.
PARAMETERS
-c size
Chunk size in KB for histogramdevice
Filesystem device to analyze
CAVEATS
Filesystem should be unmounted or mounted read-only for accurate results. Part of e2fsprogs package.
