4 ms·
The recommendation to only wipe the first and last part of the drive before reusing them is inadequate. You're best off wiping the entire drive with either zero
by sn 8y ago
The recommendation to only wipe the first and last part of the drive before reusing them is inadequate. You're best off wiping the entire drive with either zeros or hdparm security-erase-enhanced. The reason is that not all metadata is kept just at the beginning or end of the drive, especially if you have multiple partitions in the drive.
If that is untenable, mdadm has an option --zero-superblock, lvm has pvremove, and wipefs will remove file system signatures, which you can run before changing the storage layout.
- h4myio 8y agoThanks for pointing this out. Do you have an example (or rather source) of a RAID metadata outside of the first/last 1MiB of the drive?