ewf-metadata

Retrieves metadata such as acquisition information, device information, and system information from EWF (Expert Witness Format) disk image files (.e01, .ex01). Use this command to verify the origin and integrity of digital forensic images.

Command properties

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

Syntax

ewf-metadata 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

Output fields differ between E01 (EWF v1) and EX01 (EWF v2) formats.

E01 common fields:

FieldTypeDescription
_filestringOriginal EWF file name
section_typestringSection type. One of header or header2 in E01 format
serial_numberstringDisk serial number
media_modelstringMedia model name
pidstringAcquisition tool identifier
platformstringAcquisition platform information
versionstringEWF format version
system_timetimestampAcquisition system time
acquisition_timetimestampImage acquisition time
case_numberstringCase number
evidence_numberstringEvidence number
unique_descriptionstringUnique description
examinerstringExaminer name
notesstringNotes
password_hashstringPassword hash
compression_levelstringCompression level
extentsstringPartition extent information

Additional EX01 fields:

FieldTypeDescription
media_typestringMedia type (fixed, removable, etc.)
media_labelstringMedia label
bytes_per_sectorlongBytes per sector
sector_countlongTotal number of sectors
is_physicalbooleanWhether the image is a physical disk image
ram_sectorslongNumber of RAM sectors
hpa_protected_sectorslongNumber of HPA-protected sectors
dco_protected_sectorslongNumber of DCO-protected sectors
smart_sectorslongNumber of SMART sectors

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-metadata command parses the header section of an EWF format disk image file and retrieves acquisition metadata. For E01 format (EWF v1), metadata is extracted from the header section; for EX01 format (EWF v2), it is extracted from the device information section.

If device_info appears in the section_type field, the image is in EX01 format.

Examples

  1. Retrieve EWF image metadata

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

    Retrieves acquisition metadata from the specified EWF image file.

  2. Retrieve metadata from multiple EWF images using a wildcard

    ewf-metadata /opt/logpresso/evidence/*.e01
    

    Retrieves metadata from all E01 image files in the directory.