dm-integrity recovery

A dm-integrity mismatch means stored data and its integrity tag no longer validate as one atomic record.

The device-mapper integrity target stores per-sector tags and can journal data plus tags for atomic updates. Media errors, incomplete copies, wrong tables, or journal trouble can make reads fail even when sectors are present.

Understand the symptom

The same bytes can validate or fail depending on the exact target geometry and tag configuration.

WHY

What is happening

dm-integrity may use a journal, bitmap, or direct mode. Internal hashes detect accidental corruption; authenticated tags supplied by an upper layer may also depend on keys. Mapping the wrong offset, sector size, tag size, algorithm, or interleave can make valid storage appear corrupt.

What you may see

Symptoms that change the recovery path.

01

Integrity check failed on read

A sector does not match its stored tag.

02

Journal replay fails after outage

Pending data and tags cannot be committed consistently.

03

Mapped device no longer activates

Its metadata or table parameters are missing or invalid.

04

Errors began after cloning or resizing

The copied range or geometry may omit reserved integrity areas.

Protect the source

Actions that can make the situation worse.

01

Formatting destroys tags and journal

The upper data may become impossible to authenticate correctly.

02

Wrong table parameters create false corruption

Offsets and tag geometry must match the original.

03

Filesystem repair cannot fix lower tags

It may write new sectors while the integrity layer is unresolved.

Do this now

Safe steps before evaluation.

01

Stop writes to the stack

Unmount the filesystem and deactivate dependent mappings.

02

Export the exact table

Save dmsetup output, units, algorithms, options, and device identifiers.

03

Image the full underlying device

Include front and rear metadata, not only the visible data range.

04

Preserve keys and boot configuration

Keep crypttab, initramfs, key files, TPM or token context, and logs.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Mapping reconstruction

NEPFOSYS recreates geometry and tag context from protected evidence.

02

Journal and sector comparison

Pending records and mismatches are evaluated without altering the source.

03

Upper-layer validation

Recovered blocks are checked through the filesystem or application layer.

A clear next step

Preserve the original device before another repair or recovery attempt.

Start a case with the exact symptoms, incident timeline, prior attempts, encryption details, and the files that matter most. NEPFOSYS will route the case to the appropriate DFW intake or nationwide mail-in path.

Start with a case review

Questions, answered

What customers ask before starting.

Can I ignore dm-integrity errors?

No. Bypassing validation may return corrupted sectors without identifying which data is trustworthy.

Does dm-integrity encrypt data?

Not by itself. It stores and verifies integrity tags; it is often combined with dm-crypt.

Why must the whole device be copied?

Integrity metadata and journal areas can sit outside the apparent data region and are required to validate it.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case