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

NAS and RAID

ext4 "bad superblock": recovering a Linux volume or NAS disk

Many NAS systems, including WD My Cloud and older Synology and QNAP models, store data on ext4. If the system reports a bad superblock, the volume does not mount and the shares disappear. The superblock is only one small structure, and ext4 keeps several copies of it. That is why this error is often less serious than it looks, as long as nothing is written.

Published 2 min readBy Mirush Murataj

Cover of the RecDati guide: ext4 "bad superblock": recovering a Linux volume or NAS disk
The superblock describes the size and layout of the ext4 file system.

In short

  • The superblock describes the size and layout of the ext4 file system.
  • ext4 stores backup copies at fixed places, so the main copy can be replaced.
  • A fsck on a disk with read errors can do more harm than the original fault.

What the superblock contains

The superblock sits at the start of the file system and holds its key data: block size, number of blocks and inodes, the state of the journal and the features that are switched on. Without it, Linux does not know how to read the rest. Copies are kept at the start of certain block groups, for example at block 32768 for a 4 KB block size.

Why the error appears

  • The disk has unreadable sectors exactly at the start of the volume.
  • The RAID below the file system is assembled in the wrong order, so Linux reads the wrong data at the expected position.
  • A partition table was overwritten, for example when the disk was connected to a Windows PC that offered to initialise it.
  • The file system was not cleanly unmounted after a power cut.

Safe checks

Connect the disk only to a Linux system and only read-only. Check the SMART values first. If the disk shows pending or reallocated sectors, stop and make a copy before anything else.

If the disk is healthy, dumpe2fs with the path of a backup superblock shows whether the copies are readable. This command only reads.

Why fsck should wait

e2fsck can rebuild the file system from a backup superblock. On a healthy disk with a simple fault, this works well. On a disk with read errors, or on a RAID assembled incorrectly, fsck "repairs" structures it reads wrongly: it moves files to lost+found, cuts directories and frees blocks that still hold data. Run it only on a copy.

In the lab

The disk, or every member of the array, is copied first. On the copy, the lab checks the partitions and the RAID order, then reads the backup superblocks and the group descriptors. Directories are rebuilt from the inode tables, and the journal shows the last changes. Files are copied out with their names and folders where the structure allows.

For WD devices in particular, see WD My Cloud data recovery. For NAS systems in general: NAS data recovery.

Frequently asked questions

Can Windows read an ext4 disk?

Not without extra tools. Above all, do not accept the offer to initialise or format it.

The NAS has one disk only. Is that easier?

Usually yes, because there is no RAID to assemble. The disk itself still has to be copied first if it shows errors.

Will the file names be kept?

If the directories can be read, yes. Files found only by their content lose their names and are sorted by type.

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 WD My Cloud data recovery

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

Get a price