NOTE: These will support ANY version of android's filesystems that use ext2 or ext3 or ext4. I built them from oreo branch as that one was the closest to compiling without any editing of the Makefiles. Don't let the name throw you off
I needed to run a modern fsck on a rooted device I have that I have been doing some hacking on.
The filesystem was in bad shape and the on-device e2fsck absolutely refused to check it while it was even mounted, even with the force option. Out of part desperation part determination I decided I would just build one myself. So I went and dug up the sources from googlecode.com, transfered them to my linux workstation, and after much fighting with gcc for cross compilation, finding a place in the google git repo where they actually build (hence going with orero), and having to tweak the c code even in a few places (mostly fixing includes and whatnot, no actual coding on my part), I succeeded.
As it says in the title, these are all the e2fstools binaries built from Google's googlecode.com source tree in their Oreo release branch. They are also compiled statically (no libraries are needed for them to function) so they should work absolutely fine on any device that has a 64bit arm (aarch64) processor. I have tested a handfull of them and they work perfectly fine on my Samsung Galaxy s8. In fact I used the fsck.ext4 binary to repair my system partition which it did perfectly.
Hope they come in as handy to someone else as they did me.
List of files follows:
[email protected]:~> tar tzf e2fstools-oreo-aarch64-static.tar.gz e2fsbin/ e2fsbin/e2undo e2fsbin/e2image e2fsbin/badblocks e2fsbin/mkfs.ext3 e2fsbin/fsck.ext4dev e2fsbin/e2initrd_helper e2fsbin/fsck.ext3 e2fsbin/e4crypt e2fsbin/e4defrag e2fsbin/mke2fs e2fsbin/e2fsck e2fsbin/fsck.ext4 e2fsbin/filefrag e2fsbin/tune2fs e2fsbin/e2freefrag e2fsbin/uuidd e2fsbin/e2label e2fsbin/mkfs.ext2 e2fsbin/blkid e2fsbin/logsave e2fsbin/lsattr e2fsbin/uuidgen e2fsbin/findfs e2fsbin/mklost+found e2fsbin/dumpe2fs e2fsbin/mkfs.ext4 e2fsbin/debugfs e2fsbin/fsck.ext2 e2fsbin/mkfs.ext4dev e2fsbin/resize2fs e2fsbin/chattr e2fsbin/fsck
PS: Now that I have a working arm64 cross compilation system setup, if anyone else desperately needs a working static binary for anything relatively simple to build (as in not 50 million dependencies for me to track down and install) and can send me or link me the sources for it and its dependencies, I would be happy to oblige.