[lug] Identical UUID for MD devices?

BC bcarr at purgatoire.org
Thu Feb 8 13:06:27 MST 2018



On 2/8/2018 12:59 PM, Rob Nagler wrote:
>
> As soon as I shredded enough of the disk (probably first few blocks 
> is enough), the raid1 UUIDs disappeared from lsblk output.

The drive references are BSD-style, but the technique ought to be the 
same in Linux.  I run these on all drives I want to freshen before 
using for anything:

Here's the magic incantation for wiping the beginnning & end of your 
disk(s), replace adaX with your disk/device:

     |# dd if=/dev/zero of=/dev/adaX bs=1m count=5
     |# dd if=/dev/zero of=/dev/adaX bs=1m oseek=`diskinfo adaX | awk 
'{print int($3 / (1024*1024)) - 4;}'`

repeat for all the drives you desire to wipe.

Turns out that some clever OSes and drive utils write metadata to the 
beginning and end of each drive.

I purloined this from the internet...

Bucky

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20180208/9d7a0988/attachment.html>


More information about the LUG mailing list