ext3grep
Tool to help recover deleted files on ext3 filesystems. Useful in forensics investigations.
Description
ext3grep is a simple tool intended to aid anyone who accidentally deletes a file on an ext3 filesystem, only to find that they wanted it shortly thereafter. This package is useful in forensics investigations where recovering deleted data is critical.
The tool analyzes ext3 filesystem structures to locate and extract information about deleted files, inodes, and blocks. It supports filtering by deletion time, allocation status, groups, and directories to focus on relevant data.
ext3grep provides actions to inspect superblocks, inodes, blocks, and directory contents, making it valuable for both accidental data loss recovery and detailed forensic analysis.
How It Works
ext3grep parses ext3 filesystem metadata including superblocks, inodes, and directory blocks to identify deleted but potentially recoverable files. It applies filters for time ranges, allocation status, and inode types, then performs actions like printing inode/block contents or listing directory entries. The tool processes unallocated inodes/blocks while optionally handling reallocated ones.
Installation
sudo apt install ext3grepFlags
Examples
ext3grep --helpext3grep --versionext3grep /dev/sda1ext3grep --superblock /dev/sda1ext3grep --deleted --ls /dev/sda1ext3grep --inode 12345 /dev/sda1ext3grep --inode 12345 --ls /dev/sda1ext3grep --after 2023-01-01 --deleted /dev/sda1