---
title: How to Reassemble an mdadm RAID Safely
url: https://recdata.co.uk/guides/mdadm-reassemble-software-raid/
description: A Linux software RAID will not assemble? How to read mdadm superblocks and event counters, test with overlays and assemble read-only, and why --create is the command that destroys arrays.
language: en-GB
---

NAS and RAID

# Reassembling an mdadm array without making it worse

mdadm is robust, well documented and very forgiving, until someone types the wrong command with the force flag. This guide is for administrators facing an array that will not start: how to understand what the metadata says, how to experiment without touching the disks, and when to stop.

Published 16 November 20262 min readBy [Mirush Murataj](https://recdata.co.uk/about-us/#author)

Never experiment on the original disks: image them or use copy-on-write overlays.

In short

- Never experiment on the original disks: image them or use copy-on-write overlays.
- The Events field in each superblock tells you which member is out of date.
- Assemble read-only, check the file system without repairing it, and avoid --create.

## Rule one: work on copies

Anything you run against the real disks can write to them: a resync, a journal replay, a file system check. Before any experiment, image each member with GNU ddrescue, or set up **overlay files** with device-mapper snapshots so that every write lands in a temporary file instead of the disk. The archived Linux RAID wiki describes the method in detail, and the [kernel's own md documentation](https://docs.kernel.org/admin-guide/md.html) explains how arrays are started and resynced. Overlays are worth using even for an array that "only needs a force".

## Reading the superblocks

Run `mdadm --examine` on each member partition and save the output somewhere safe. Compare:

- **Array UUID**: every member of the same array must show the same one.
- **Raid Level, Raid Devices, Chunk Size, Layout**: these must agree.
- **Device Role**: the slot of each member, which tells you the order.
- **Update Time** and **Events**: when each member last took part in a write.
- **Array State**: how each member saw the array at its last update.

The [mdadm manual page](https://man7.org/linux/man-pages/man8/mdadm.8.html) explains each field and each mode.

## What the Events counter tells you

Each write to the array increments the event counter on every active member. A member whose count is slightly lower missed the last few writes, perhaps during a crash; forcing it back in usually works. A member whose count is far behind, or whose update time is days or weeks old, left the array long ago and holds stale data. Including it in a forced assembly mixes old blocks with current ones.

## Assembling read-only

On overlays, assemble with `mdadm --assemble --readonly`, naming the members explicitly and leaving out the stale one. If mdadm refuses, `--force` adjusts the event counters of members that are only slightly behind; on overlays that is a reasonable test. Then:

- check the file system in no-change mode (`fsck -n`, `xfs_repair -n`, `btrfs check --readonly`);
- mount read-only and copy the most important data first.

## Why --create is so dangerous

`mdadm --create` on existing members writes new superblocks. If a single parameter differs from the original (order, chunk size, layout, metadata version or data offset), the array assembles but the data is scrambled, and an automatic resync can then overwrite parity across every disk. It is a last resort, used only on images, by someone who has recorded the original parameters.

## When to hand it over

Stop when a member makes noises or logs read errors, when the event counts disagree widely, when the superblocks are missing, or when the data matters more than the time saved. Every command you run on the originals reduces what a lab can recover. Our [RAID data recovery](https://recdata.co.uk/data-recovery/raid/) service images each member and rebuilds the array from the copies; the background to RAID 5 failures in particular is in [RAID 5 rebuild failed: how to stop the damage and get the data back](https://recdata.co.uk/guides/raid-5-rebuild-failed/).

## Frequently asked questions

Is mdadm --assemble --force safe?

It only rewrites the event counters of members that are slightly behind, and it is usually fine for a member that missed a few writes. It becomes dangerous when a member left long ago, or on a disk with read errors. Try it on overlays first.

What does a large gap in the Events field mean?

That member stopped taking part in writes a long time ago. Its data is out of date, and it should be left out of the assembly; its content is only useful to fill gaps where another member cannot be read.

## Official sources and useful links

- [Linux kernel documentation: RAID arrays (md)](https://docs.kernel.org/admin-guide/md.html): Reference documentation for Linux software RAID (mdadm).

Share this guide

- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frecdata.co.uk%2Fguides%2Fmdadm-reassemble-software-raid%2F)
- [Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Frecdata.co.uk%2Fguides%2Fmdadm-reassemble-software-raid%2F)
- [WhatsApp](https://wa.me/?text=https%3A%2F%2Frecdata.co.uk%2Fguides%2Fmdadm-reassemble-software-raid%2F)
- [Email](mailto:?body=https%3A%2F%2Frecdata.co.uk%2Fguides%2Fmdadm-reassemble-software-raid%2F)
-

Cite this article

Murataj, Mirush. "Reassembling an mdadm array without making it worse". RecData, 16 November 2026. https://recdata.co.uk/guides/mdadm-reassemble-software-raid/

Is your data important?

Do not try anything that could make the fault worse. The diagnosis is free and you get a fixed quote before any work starts.

[Request a free diagnosis](https://recdata.co.uk/free-diagnosis/) [RAID data recovery](https://recdata.co.uk/data-recovery/raid/)

Need a diagnosis?

Free, no obligation, reply within 2 hours.

[Free diagnosis](https://recdata.co.uk/free-diagnosis/)[+44 20 4520 7293](tel:+442045207293)

## Read next

- [RAID 5 rebuild failed: how to stop the damage and get the data backThe rebuild is the most stressful moment in the life of a RAID 5. For hours, every surviving drive is read…](https://recdata.co.uk/guides/raid-5-rebuild-failed/)
- [Synology volume crashed: what DSM is telling you and what to doSynology units are reliable, which is exactly why a red 'Crashed' banner in Storage Manager comes as such a…](https://recdata.co.uk/guides/synology-volume-crashed/)
- [How to recover deleted files in Windows 10 and 11A deleted spreadsheet, a folder of scanned invoices, the only copy of a dissertation chapter: deleted files…](https://recdata.co.uk/guides/recover-deleted-files-windows/)
- [How to get deleted photos and files back on AndroidAndroid phones keep deleted photos in more places than most people realise: the gallery's own bin, Google…](https://recdata.co.uk/guides/recover-deleted-files-android/)
- [How to recover deleted photos on an iPhoneOn an iPhone, the realistic ways to recover a deleted photo are the ones Apple builds in: the Recently…](https://recdata.co.uk/guides/recover-deleted-photos-iphone/)
- [Bad sectors on a hard drive: what they mean and what to doA warning about bad sectors is one of the few early alarms a hard drive gives before it fails. It is tempting…](https://recdata.co.uk/guides/hard-drive-bad-sectors/)

Your device has stopped responding? Switch it off and talk to us.

[Request a free diagnosis](https://recdata.co.uk/free-diagnosis/)[Request a call back ](https://recdata.co.uk/free-diagnosis/)
