BZIP2 recovery

BZIP2 block boundaries can allow undamaged regions to be salvaged even when the complete stream CRC fails.

BZIP2 compresses data in blocks and stores block and combined CRC values. Damage to one compressed block, the stream header, or end marker can stop ordinary decompression, while a recovery utility may isolate intact blocks into separate candidate streams.

Understand the symptom

A valid block CRC checks decompressed block content; the combined CRC checks the stream sequence.

WHY

What is happening

The bzip2 documentation describes block-level recovery as a salvage aid, not a guarantee. Recovered fragments may lack original boundaries or context and must be validated against the expected file format.

What you may see

Symptoms that change the recovery path.

01

Data integrity error

A block or final combined CRC does not match.

02

Unexpected end

The stream may be truncated before a block or end marker completes.

03

Recovered pieces are separate

Block salvage does not automatically rebuild the original file.

04

First block fails

Header or early damage can prevent normal decoder startup.

Protect the source

Actions that can make the situation worse.

01

Concatenating fragments blindly

Recovered blocks may omit data or cross logical record boundaries.

02

Decompressing onto the source disk

New output can overwrite other recoverable evidence.

03

Assuming CRC failure means total loss

Other blocks or concatenated streams may remain usable.

Do this now

Safe steps before evaluation.

01

Preserve the exact stream

Hash it and work from duplicates.

02

Save block-recovery output separately

Retain offsets and generated fragment order.

03

Identify the payload

Record whether it should contain tar, SQL, logs, or another structured format.

04

Collect alternate copies

Keep mirrors, backups, attachments, and source media.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Block scan

NEPFOSYS maps headers, block markers, CRCs, concatenated streams, and truncation.

02

Fragment extraction

Intact blocks are decoded from a protected copy and kept with provenance.

03

Logical reconstruction

Fragments are compared with expected records, archives, checksums, and application structure.

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 bzip2recover restore the whole file?

It can isolate candidate blocks, but missing or corrupt blocks still leave gaps.

Does a CRC error prove the disk is failing?

No. Transfer, memory, storage, or prior processing can alter bytes; the source should still be assessed.

Should recovered fragments be trusted?

Only after CRC and payload-level validation with gaps clearly documented.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case