Currently when I want to wipe a USB disk with pseudorandom data in Linux I do the following:

dd if=/dev/urandom of=/dev/sdb conv=notrunc

urandom is very, very slow, it gets to the point where the bottleneck is not the device.

I know of another method -- the Mersenne twister. This is used in one instance by DBAN as a PRNG to securely erase data with, and it is easily 'random' enough for wiping drives -- and it is very fast. However, I'm not sure how I would use it in Linux. Is there a Mersenne twister program which I can then pipe into dd to wipe drives with?

link|improve this question

1  
Just a comment. There is no documented case of data being recovered from a device after cleaning with it zeroes. – user39559 Jan 28 '11 at 14:37
I'm aware of that, but the point to be made is that technology is always advancing, so it may be possible to do so in the future. – Matthieu Cartier Jan 28 '11 at 17:41
feedback

2 Answers

up vote 1 down vote accepted

The wipe utility uses a Mersenne Twister PRNG for the random passes.

link|improve this answer
Thanks, that's great! :) – Matthieu Cartier Jan 28 '11 at 17:42
feedback

Why are you using DD to wipe drives? shred is designed specifically to do that and is common to all modern distros.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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