e2freefrag

Print the free space fragmentation information for ext2/ext3/ext4 filesystems. More information: <https://manned.org/e2freefrag>.

Install

All systems
curl cmd.cat/e2freefrag.sh
Debian Debian
apt-get install e2fsprogs
Ubuntu
apt-get install e2fsprogs
Alpine
apk add e2fsprogs
Arch Arch Linux
pacman -S e2fsprogs
image/svg+xml Kali Linux
apt-get install e2fsprogs
CentOS
yum install e2fsprogs
Fedora
dnf install e2fsprogs
Windows (WSL2)
sudo apt-get update sudo apt-get install e2fsprogs
OS X
brew install e2fsprogs
Raspbian
apt-get install e2fsprogs
Docker
docker run cmd.cat/e2freefrag e2freefrag powered by Commando

Print the free space fragmentation information for ext2/ext3/ext4 filesystems. More information: <https://manned.org/e2freefrag>.

  • Check how many free blocks are present as contiguous and aligned free space:
    e2freefrag /dev/sdXN
  • Specify chunk size in kilobytes to print how many free chunks are available:
    e2freefrag -c chunk_size_in_kb /dev/sdXN

© tl;dr; authors and contributors