Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

According to mdadm manual, --zero-superblock option will overwrite the superblock with zeros. As I understand, superblock is a 256 byte block on HDD/SSD describing the RAID level used, name of the array, creation time of the array, modification time of the superblock itself etc.

However, how does the mdadm know where is the superblock located on the disk? Hasn't this changed throughout the versions of superblocks? In addition, is there only a single superblock in use or are there multiple ones for redundancy reasons?

share|improve this question
up vote 2 down vote accepted

mdadm looks at the possible positions for a superblock and checks whether the data there looks like s superblock. I don't know though whether the later positions are checked / overwritten, too, if one of the earlier ones matched. In the worst case you would have to call it three times.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.