[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Faster source of random numbers for blanking harddrives



On Thu, Oct 25, 2007 at 09:27:50AM -0400, Douglas A. Tutty wrote:
> On Thu, Oct 25, 2007 at 04:46:08PM +0800, Bob wrote:
> > Ron Johnson wrote:
> > >On 10/25/07 01:19, Bob wrote:
> 
> > >>Is there a faster source or random or pseudo-random numbers because at
> > >>4MB/s it'll take a loooong time to blank a 60GB drive let alone a 500GB
> > >>job?
> > >>
> 
> > >>What other options are there?
> > >>    
> > >
> > >Why roll your own when there are *MANY* disk wipers out there.
> > >Everything from srm & sfill in the secure-delete package, to wipe,
> > >to dban.sourceforge.net.
> > 
> > Thank you, reading up on them now.  I was just wondering if there was 
> > another standard device I could use on all systems.
>  
> 
> OpenSSL has rand
> 
> If you have another source of data the size of your drive, run openssl
> enc on the raw partition.  It all depends on the non-repeat-length you
> need.

you could do this.

modprobe dm-crypt
head -c 64 /dev/urandom |cryptsetup create tempcrypt /dev/to/be/wiped 
dd bs=4096 if=/dev/zero of=/dev/mapper/tempcrypt

this would fill the disk with encryption which while not strictly
random, does at least look like encrypted data. I'm not sure how
secure this is, but it does run pretty fast. I get between 25 and 30
MB/s

A

Attachment: signature.asc
Description: Digital signature


Reply to: