ewf-sections

Parses the internal structure of an EWF (Expert Witness Format) disk image file (.e01, .ex01) and retrieves the list of sections along with the type, offset, and size of each section. Use this command for structural analysis and integrity verification of EWF images.

Command properties

ItemDescription
Command typeDriver query
Required permissionNone
License usageCounted
Parallel executionNot supported
Distributed executionNot supported

Syntax

ewf-sections FILE_PATH

Target

FILE_PATH
Path to the EWF disk image file to query. Supports files with .e01 or .ex01 extensions. You can use a wildcard (*) to specify multiple files.

Output fields

FieldTypeDescription
_filestringOriginal EWF file name
typestringSection type. E01 format: header, header2, volume, table, table2, data, hash, done, etc. EX01 format: device_information, case_data, session, etc.
offsetlongOffset of the section within the file (bytes)
sizelongSection size (bytes)

Error codes

Parse errors

N/A

Runtime errors
Error codeMessageDescriptionPost-processing
-cannot load ewf image: PATHUnable to read the EWF image fileStops query execution

Description

The ewf-sections command sequentially parses the section headers of an EWF disk image file and retrieves the metadata of each section. For E01 format (EWF v1), sections are traversed sequentially from the beginning of the file. For EX01 format (EWF v2), section descriptors are traversed in reverse from the end of the file.

Files that are less than 8 bytes in size or have unknown magic bytes are skipped.

Examples

  1. Retrieve the section list from an EWF image

    ewf-sections /opt/logpresso/evidence/disk.e01
    

    Retrieves the section list from the EWF image file.

  2. Retrieve the offset and size of data sections

    ewf-sections /opt/logpresso/evidence/disk.e01
    | search type == "data"
    | fields type, offset, size
    

    Retrieves the offsets and sizes of data sections.