e2image · shipping

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.

Related Observatory article: Read on hesela.com

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

  1. e2fsprogs v1.47.0: e2image options and image formats (accessed 2026-12-04)
  2. e2fsprogs v1.47.0: e2image inode-table and block selection (accessed 2026-12-04)
  3. Linux v6.16: ext4 inline-data format (accessed 2026-12-04)
  4. Hesela: e2image coverage, two native captures and exact payload checks (accessed 2026-12-04)
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.

JSON: /data/terms/e2image.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. e2image. Hesela. 2026-12-04. https://hesela.dev/terms/e2image/