Creating a Forensic Disk Image in Linux with Guymager: A Practical Tutorial

A forensic disk image is only useful when the investigator can explain which device was acquired, why the source was protected from alteration, whether the copy completed, and how the result was verified. Guymager makes acquisition more approachable through a Linux graphical interface, but its convenient progress display does not replace evidence handling. Before opening the application, establish the evidence boundary and the destination plan.

This walkthrough describes a fictional, authorized training acquisition: an isolated Linux workstation, a labeled demonstration SATA disk and a separate destination drive. It focuses on evidence preservation, source/destination verification and acquisition documentation. It does not claim that a particular Guymager release, write-blocker or forensic lab has been tested here. Follow your organization’s procedures and local legal requirements for real evidence.

Decide whether disk imaging is the right acquisition

A physical disk image captures the addressable media rather than just files visible to the operating system. It can preserve unallocated areas and remnants relevant to an investigation, subject to hardware, device behavior and tool limitations. It is not a way to recover live RAM, nor does it automatically reveal data that is encrypted or inaccessible. Some modern storage devices and interfaces have behaviors that require special handling; a copied image is not an assurance of completeness for every device type.

The Guymager project describes the tool as a Linux forensic media imager with raw/dd, EWF/E01 and AFF output support. Actual package features and menus can differ across installations. For a live incident response operation, balance whether powering down a system would lose volatile evidence against the risk of altering the storage during a live image. That choice belongs in the case plan, not in a default GUI checkbox.

Prepare the case, device identities and write protection

In the lab, designate the source as EVID-014, a removable demonstration disk, and the destination as CASESTORE-01, a separate sufficiently large encrypted storage volume. Record model, capacity, serial number, connection path, collector, time, case identifier and the expected target folder before launching imaging. Confirm the destination has enough free space for the chosen format and conservative space requirements.

Protect the original medium through an approved, tested hardware write-blocking arrangement when appropriate. Linux auto-mounting, health utilities and system services can change a connected disk if source writes are not prevented. A read-only command-line flag by itself is not equivalent to testing the write-blocking path. Do not put the destination volume on the same physical device as the source, and never rely solely on the device name /dev/sdb: enumeration can change when storage is connected or rescanned.

Preflight item What to record or prove
Authorization Who may collect this device; case scope and handling limitations.
Source identity Serial, model, capacity, evidence label and hardware connection.
Write protection Device and blocker identity, tested read-only behavior, exceptions.
Destination Different physical storage, capacity, folder and access controls.
Acquisition plan Format choice, naming, hash/verification procedure and failure handling.

NIST SP 800-86 provides historical guidance on integrating forensic techniques into incident response, including collection and preservation. It is not a binding universal laboratory procedure or legal-admissibility guarantee. The actual acquisition should follow the more specific policy, chain-of-custody and local evidence rules that govern the case.

Use Guymager to identify the exact source

Open the tool in the approved acquisition environment and inventory the devices Guymager reports. Compare the displayed model, serial and capacity with the evidence worksheet, and confirm the read-only connection path. Do not choose a drive just because its size looks familiar or its kernel device number is first in the list. If expected fields do not agree, stop and resolve the discrepancy before collecting anything.

The Guymager interface presents detected storage devices and acquisition details. Some configurations identify local host disks to discourage accidental imaging of the workstation. That protection is helpful but not a substitute for the collector’s source/destination check. A normal Linux session may need elevated privileges to access a physical block device; use the lab’s documented acquisition role and avoid granting broad privileges to unrelated processes.

For this case, choose image acquisition rather than cloning to another drive. Specify a clear base filename such as EVID-014-acquisition-01, destination directory, case metadata and evidence identifiers. Before starting, read the confirmation screen as if a wrong choice would overwrite the only available evidence. A wrong output path or mistaken source disk is more dangerous than any later reporting inconvenience.

Select an image format without confusing it with verification

Raw/dd images preserve the acquired block stream in a straightforward form and are widely interoperable with tooling that can consume a raw image. EWF/E01 adds a forensic container with metadata and optional segmented/compressed handling, depending on the acquisition settings. AFF is another supported format in relevant Guymager builds. Format choice depends on downstream analysis compatibility, storage, chain-of-custody and preservation procedures—not on which option sounds most forensic.

Format Why a team might use it Review before choosing
Raw/dd Simple block-data representation useful for multiple analysis tools. Separate case metadata and hashes must be managed alongside the image.
EWF/E01 Forensic image container and common segmented storage workflows. Confirm your laboratory’s tool interoperability, verification and export procedure.
AFF An alternative forensic container where supported by the toolchain. Check that both the acquisition and review environments can read it reliably.

An E01 image split across files is not necessarily verified by hashing one container segment and comparing it with a digest calculated over the source disk. Use the acquisition tool’s documented verification output and your laboratory’s format-aware process. The Guymager package manual published by Kali Linux describes the imaging formats, acquisition log and MD5/SHA-256 hashing capabilities in the packaged version. That manual does not demonstrate that your particular imaging job completed successfully.

Run acquisition and treat interruptions as evidence

Start the job after independently checking source and destination details. Monitor progress for read errors, short reads, device resets and destination write failures. If the application reports unreadable sectors, record the location and error history. Do not quietly replace an incomplete acquisition with a perfect-sounding success note. A second acquisition attempt may be appropriate under an approved procedure, but it needs its own identity and log.

For a practical lab, ask a second collector to point to the source and destination on the screen before you initiate acquisition. This simple check catches a high-cost human mistake earlier than a post-acquisition hash. During collection, keep unauthorized processes away from the evidence media and avoid opening unrelated applications on the acquisition workstation.

Verify the result and preserve its audit trail

After acquisition, use the format-aware verification procedure to determine whether the image’s acquired data matches what the tool reported reading. Record the hash algorithm, values, acquisition timestamps, warning counts and completion state from the actual log rather than typing an invented digest into the case form. A digest comparison can detect changes in the acquired data, but it cannot retroactively prove that a source was never written to, that the target disk was correctly identified, or that a previously missing sector was somehow recovered.

In the fictional lab, the evidence log could contain an acquisition ID and placeholders for source_acquisition_digest and verified_image_digest. These placeholders are not example hashes to copy into real evidence. The values must be generated by the actual tool run, recorded without modification and reviewed under the organization’s verification procedure. Retain the original image files, the acquisition/verification log, relevant tool and configuration information, the write-blocker preflight, and a complete access history. If analysts need working copies, create them under a separate identity and record how their integrity relates to the archived acquisition. Do not make the only evidence copy your everyday investigation workspace.

Check the image handoff before anyone starts analysis

A successful acquisition is not the end of evidence handling. The receiving analyst needs the expected format and segment list, the acquisition log, recorded hash values, known read errors, case and device identifiers, and a clear statement of whether the files are originals or working copies. If a segmented image is transferred, verify that every segment arrived; do not assume the first segment implies the full acquisition is present.

As an illustrative handoff test, let the second analyst inspect the evidence manifest without access to the acquisition workstation. Can that person name the source serial, image set, date, collector, format, verification status and missing-sector limitations? Can the analyst explain which digest applies to acquired media data versus a container file? If not, resolve the uncertainty before analysis contaminates the chain of explanations. Hashes are powerful integrity checks, but their meaning depends on what bytes were actually hashed and when.

What an independent reviewer should challenge

A reviewer should be able to answer five questions without asking the original collector to reconstruct the workflow from memory: Was the device clearly identified? Was the source protected? Was the destination unambiguously separate? Did acquisition finish with known, documented errors and verified data? Can the case team reproduce the tool, format and hash decisions?

If the answer to one of those questions is unknown, the record should say so. Evidence management is stronger when a limitation is documented than when an acquisition log is edited into a clean story. Guymager can streamline Linux disk imaging, but evidentiary reliability still comes from source controls, accurate observation and a verifiable chain of custody—not from the appearance of an image file.

img