{
  "slug": "e2image",
  "term": "e2image",
  "aliases": [],
  "definition": "e2image is an ext2/ext3/ext4 imaging utility that selects filesystem metadata by default and can include file data in raw or QCOW2 output.",
  "note": "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. [manual]\n\nIn 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. [demo]\n\nMetadata can contain payload: ext4 permits small file data inside an inode, and e2image copies inode tables. [inline] [implementation] 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. [demo]\n\nThe -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. [manual]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "ext4",
    "sparse-file",
    "backup-verification"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-04",
  "citations": [
    {
      "id": "manual",
      "title": "e2fsprogs v1.47.0: e2image options and image formats",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.0/misc/e2image.8.in",
      "accessed": "2026-12-04"
    },
    {
      "id": "implementation",
      "title": "e2fsprogs v1.47.0: e2image inode-table and block selection",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.0/misc/e2image.c",
      "accessed": "2026-12-04"
    },
    {
      "id": "inline",
      "title": "Linux v6.16: ext4 inline-data format",
      "url": "https://raw.githubusercontent.com/torvalds/linux/v6.16/Documentation/filesystems/ext4/inlinedata.rst",
      "accessed": "2026-12-04"
    },
    {
      "id": "demo",
      "title": "Hesela: e2image coverage, two native captures and exact payload checks",
      "url": "https://hesela.dev/research/e2image-coverage/README.md",
      "accessed": "2026-12-04"
    }
  ],
  "provenance": [
    "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."
  ]
}
