Monday to Saturday 9:00–19:00, Sunday closedFree pickup anywhere in Germany · drop-off in Berlin and Hamburg

NAS and RAID

Btrfs checksum errors on a NAS: what the message really means

Btrfs stores a checksum for every block of data. When a block no longer matches its checksum, the NAS refuses to deliver it instead of passing on damaged content. The message sounds alarming, but it is first of all a sign that the file system is doing its job. The question is where the damage comes from.

Published 2 min readBy Mirush Murataj

Cover of the RecDati guide: Btrfs checksum errors on a NAS: what the message really means
A checksum error means the data read does not match what was written.

In short

  • A checksum error means the data read does not match what was written.
  • The cause can be a disk, the RAM, a cable or the RAID layer below Btrfs.
  • Do not run a repair before the disks have been copied.

What Btrfs checks, and what it does not

When Btrfs writes a block, it also writes a checksum of it into its metadata. On every read, the checksum is calculated again. If the two values differ, the block is considered damaged. If a second copy exists, for example with metadata in DUP mode, Btrfs takes the good copy and repairs the bad one automatically.

On most home and office NAS systems, however, Btrfs sits on top of a classic software RAID. Btrfs itself then holds only one copy of the user data. It can detect the error, but it cannot correct it, and the file is reported as unreadable.

Typical causes

CauseTypical sign
Weak sectors on a diskErrors always in the same files, SMART values for pending sectors rise
Faulty RAMErrors in different files each time, sometimes after a reboot they move
Loose cable or backplaneCRC errors in the SMART data, disk drops out and comes back
RAID out of stepMany errors at once after a power cut or an interrupted rebuild

What you can check safely

  • Read the system log of the NAS and note the exact messages with date and time.
  • Look at the SMART values of every disk, in particular reallocated and pending sectors and CRC errors.
  • Note which shares and files are affected. A list of five files is a very different case from thousands of errors.

What you should not do now

  • Do not start btrfs check --repair. Even the Btrfs documentation warns against it without expert advice, because it can make the metadata worse.
  • Do not run a scrub if a disk already shows read errors. A scrub reads every block and puts the most strain on the weakest disk.
  • Do not replace several disks at once to "renew" the system.

How the data is recovered

In the lab, each disk is first copied sector by sector. The RAID is then assembled from the copies, and the Btrfs structures are read without writing to them. Btrfs keeps older versions of its trees, so files can often be read from an earlier, consistent state, even if the current one is damaged. Damaged blocks are listed per file, so you know exactly which documents are complete.

Many NAS systems use Btrfs together with SHR. How these layers fit together is explained in Synology SHR explained: the layers of a hybrid RAID and how data is recovered. For the device itself, see NAS data recovery.

Frequently asked questions

Are checksum errors always a disk problem?

No. Faulty RAM causes the same message. If the errors move between files, a memory test is the first step, with the volume unmounted.

Can I still copy the files that open?

Yes, if all disks are healthy according to SMART. Copy the most important folders first and to another device, not to the NAS itself.

Do snapshots help?

Often. Btrfs snapshots share unchanged blocks with the live data, so a damaged block can affect both. They are still worth checking before any repair.

Official sources and useful links

Are these files business-critical?

Stop every repair attempt that writes to the disks. The lab diagnosis is free and you receive a fixed price before anything is done.

Request a free diagnosis NAS data recovery

Switch the device off, leave it as it is and let the lab have a look first.

Get a price