Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.