Skip to content

E01 vs. RAW Disk Images: Which Hash Should Match?

E01 and RAW can capture the same disk sectors. Compare the decoded media stream for byte equality and hash the stored files to verify a transfer.

By Sourabh4 min read

E01 and RAW can represent the same disk sectors. A RAW image stores the captured bytes in order. An E01 image stores those bytes inside an Expert Witness Format (EWF) container that can also hold compression, acquisition details, and verification data.

If an E01 and a RAW image have different file hashes, compare what each hash covers before treating the difference as an acquisition error.

E01 vs. RAW at the Same Acquisition Scope

Scroll horizontally if needed to see the full table.

What to compareE01RAW
Captured dataThe sector stream is decoded from EWF chunksThe sector stream is stored directly
Size on diskDepends on compression and container overheadAn ordinary single-file image has one stored byte per captured byte
Case detailsThe container can hold acquisition metadataKeep acquisition details in a separate log or manifest
SegmentsA set can start at disk.E01 and continue with disk.E02 and later filesA RAW image can also be split. Keep its ordered segment list
VerificationA compatible tool reads and verifies the stored media dataHash the complete RAW byte stream and compare with the recorded digest

Scope comes first. A full-device E01 and a full-device RAW image may contain the same captured data, including sectors outside allocated files. A whole-device image and a partition image can differ even when both are RAW.

Teaching diagram. The format changes how the captured sectors are stored while their decoded order can stay the same.

For a documented acquisition workflow, follow creating and verifying an E01 image with FTK Imager. The libewf documentation describes compatible EWF verification and export tools.

Which Hash Should Match?

A media hash covers the captured sector stream. A container file hash covers the stored bytes of a file such as disk.E01. A segmented E01 set can have a separate container hash for every segment.

With a complete single-file RAW image, hashing the file covers the captured stream. With E01, hash the media stream through an EWF-aware tool or export it as a single RAW file and hash that export.

Teaching diagram. The E01 container file hash includes container bytes. The single-file RAW hash covers the media stream.

The two valid comparisons answer different questions.

  • Same captured bytes? Compare the media-stream digests using the same algorithm, starting sector, length, and order.
  • Same delivered image files? Compare each stored segment against its recorded file digest using the same algorithm.

A Worked Comparison

Suppose a training disk image contains 4,096 sectors of 512 bytes. The complete capture represents 2,097,152 bytes. You have an E01 set and a single-file RAW capture with that same reported scope.

  1. Keep the E01 segments together and verify the set in an EWF-aware reader. To verify stored media data with libewf, the documented invocation is ewfverify disk.E01. Record the tool result and the algorithm it reports.
  2. If you need a SHA-256 comparison and the E01 records only an MD5 digest, export the full media stream to one RAW file. Check the export completed and that both RAW files contain 2,097,152 bytes.
  3. Compute SHA-256 on both RAW files. A match supports that the streams contain the same bytes. For the separate transfer check, compare the hashes of the stored E01 segments with their own manifest entries.

This is a hypothetical comparison. With actual evidence, review read-error logs too. Both streams can match if both acquisitions used the same replacement bytes for an unreadable sector.

Teaching diagram. After verifying the E01, compare SHA-256 digests of the complete RAW export and the original RAW sample.

Choose the Format and Record Which Bytes Were Verified

Choose E01 when the receiving tools support it and the case benefits from compression, segmentation, or metadata stored with the image. Choose RAW when downstream tools need direct access to the byte stream. For either format, retain the acquisition log alongside the image.

Capture the source identifier, start sector, sector count and size, image format, segment list, and read errors. Record the tool version, digest algorithm, and digest input with each result.

A useful report line is “SHA-256 matched between the original RAW image and the decoded E01 media export, both covering sectors 0–4095 at 512 bytes per sector.” Keep the container checks on separate lines, labeled with the exact filenames.

If the Two Media Hashes Differ

Start by comparing exported byte counts and the documented scope. A volume image might begin at a partition boundary, while a whole-device image begins with the disk’s first addressable sector. A difference in length can explain the mismatch before you calculate another digest.

If the size and range are the same, confirm that the SHA-256 calculation read the complete RAW files. In a split capture, hashing just the first part will produce a digest that belongs to that part. Keep the ordered segment list with the digest record.

Next, look at the acquisition and export logs. In the teaching case, a reported read error or an incomplete export would change what you could say about the source even if the files had the expected length.

When transferring the original E01, verify the stored segments against their manifest after delivery. Keep the decoded-media comparison for the separate question about the captured bytes.

If both are new terms, the forensic image glossary entry explains what an examiner means by an image of a storage device.

Was this page helpful?