Linux "e2freefrag" Command Line Options and Examples
report free space fragmentation information

e2freefrag is used to report free space fragmentation on ext2/3/4 file systems. filesys is the filesystem device name (e.g.


Usage:

e2freefrag [ -c chunk_kb ] [ -h ] filesys






Command Line Options:

-c
If a chunk size is specified, then e2freefrag will print how many free chunks of size chunk_kb are available in units of kilo‐bytes (Kb). The chunk size must be a power of two and be larger than filesystem block size.
e2freefrag -c ...
-h
EXAMPLE# e2freefrag /dev/vgroot/lvhomeDevice: /dev/vgroot/lvhomeBlocksize: 4096 bytesTotal blocks: 1504085Free blocks: 292995 (19.5%)Min. free extent: 4 KBMax. free extent: 24008 KBAvg. free extent: 252 KBHISTOGRAM OF FREE EXTENT SIZES:Extent Size Range : Free extents Free Blocks Percent4K... 8K- : 704 704 0.2%8K... 16K- : 810 1979 0.7%16K... 32K- : 843 4467 1.5%32K... 64K- : 579 6263 2.1%64K... 128K- : 493 11067 3.8%128K... 256K- : 394 18097 6.2%256K... 512K- : 281 25477 8.7%512K... 1024K- : 253 44914 15.3%1M... 2M- : 143 51897 17.7%2M... 4M- : 73 50683 17.3%4M... 8M- : 37 52417 17.9%8M... 16M- : 7 19028 6.5%16M... 32M- : 1 6002 2.0%AUTHORThis version of e2freefrag was written by Rupesh Thakare, and modified by Andreas Dilger <adilger@sun.com>, and Kalpak Shah.
e2freefrag -h ...