e2image
e2image is an ext2/ext3/ext4 imaging utility that selects filesystem metadata by default and can include file data in raw or QCOW2 output.
A raw (-r) image places copied blocks at filesystem-relative offsets; QCOW2 (-Q) stores selected blocks in a compact container. The -a option adds ordinary file data in either format. Choosing QCOW2 alone does not request full file contents. [1]
In a generated ext4 example on e2fsprogs 1.47.0, metadata-only raw and QCOW2 copies passed e2fsck -f -n while an 8192-byte nonzero file read as zeros. The -a controls retained its bytes. This demonstrates capture coverage, not successful application recovery. [4]
Metadata can contain payload: ext4 permits small file data inside an inode, and e2image copies inode tables. [3] [2] In the same example, a 34-byte inline file and a short symlink target survived -s name scrambling. The tested directory name changed; whole-image redaction was not established. [4]
The -I operation restores saved metadata and can lose data if the filesystem has changed since capture. It is not a substitute for restoring omitted payload. [1]
Relations
- related
- Ext4, Sparse file, Backup verification
Citations
- e2fsprogs v1.47.0: e2image options and image formats
- e2fsprogs v1.47.0: e2image inode-table and block selection
- Linux v6.16: ext4 inline-data format
- Hesela: e2image coverage, two native captures and exact payload checks
Sources & caveats
- Two captures of 12 designed cases on one e2fsprogs 1.47.0 build; not independent replication, a field sample or a current-version defect claim.
- The 34-byte inline payload comparison uses the recorded inode size; debugfs dumped 60 bytes, including 26 zero padding bytes. Both lengths and hashes are retained.
- No mounted filesystem, production device, crash, repair or application restore was exercised. Scrambled images returned 4 with directory-checksum diagnostics.