bcachefs recovery

bcachefs emergency shutdown protects detected damage; repeated repair attempts can remove the best evidence.

bcachefs checksums data and metadata and can shut down or refuse writes when it detects an inconsistency it cannot safely continue through. Multi-device layouts and snapshots make member history important.

Understand the symptom

Checksums identify bad generations, but recovery still needs enough valid replicas and metadata.

WHY

What is happening

A degraded mount may be safe only when required data remains available. A very-degraded attempt can expose missing extents. Offline fsck can repair higher-level structure, while btree-node scanning and metadata dumps are disaster-recovery tools whose output should be evaluated from protected copies.

What you may see

Symptoms that change the recovery path.

01

Filesystem switches to read-only

The kernel stopped writes after detecting a serious error.

02

fsck reports unresolved metadata

One or more btree keys or snapshot relationships cannot be repaired automatically.

03

A member is missing

Data or metadata replicas may no longer satisfy the device layout.

04

Checksum errors repeat at fixed addresses

The same stored copy remains unreadable or does not match its checksum.

Protect the source

Actions that can make the situation worse.

01

Very-degraded mode can expose incomplete data

A mount is not proof that every extent is available.

02

Repair may delete irreconcilable keys

Files or snapshot references can be sacrificed for consistency.

03

Replacing a member can trigger broad writes

Rebalancing may overwrite alternate generations needed for recovery.

Do this now

Safe steps before evaluation.

01

Stop all mounts and scrubs

Prevent further writes, repair, rebalance, and device replacement.

02

Inventory every member

Record UUIDs, labels, roles, sizes, errors, and physical identity.

03

Run read-only diagnostics

Save nochanges fsck output and kernel errors without modifying the source.

04

Acquire failing devices

Image unstable members before more checksum or metadata scanning.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Topology and replica mapping

NEPFOSYS identifies device membership, durability settings, snapshots, and missing ranges.

02

Metadata preservation

Superblocks, journals, btrees, and readable replicas are protected.

03

Read-only extraction

Priority files are reconstructed and verified on separate storage.

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.

Does checksum detection mean bcachefs can always repair the data?

No. Repair requires another valid copy or enough metadata to reconstruct the damaged extent.

Can I mount with very_degraded?

It is a recovery option that can permit missing data; preserve every member first and avoid writes.

What should I keep for expert analysis?

Every member, logs, exact versions, fsck output, superblock details, snapshots, and encryption material.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case