Skip to content

Instantly share code, notes, and snippets.

@BeniaminK
Last active June 13, 2022 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeniaminK/b87fe19761b3749af803c612a35ee1e1 to your computer and use it in GitHub Desktop.
Save BeniaminK/b87fe19761b3749af803c612a35ee1e1 to your computer and use it in GitHub Desktop.
VERSION=1.46.5
sudo apt install build-essential
wget https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v$VERSION/e2fsprogs-$VERSION.tar.gz
tar xfz e2fsprogs-$VERSION.tar.gz
cd e2fsprogs-$VERSION
./configure
make -j8
DISKS=$(ls /dev/disk/by-uuid)
for disk in ${DISKS}
do
DISK=$(readlink -f /dev/disk/by-uuid/${disk})
echo ${DISK}
sudo ./dumpe2fs -fh ${DISK} 2>&1 | grep "features"
sudo fsck -y ${DISK}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment