Secure deletion of files in a directory

Albert gnupg at ml0402.albert.uni.cc
Tue Jun 15 20:08:56 CEST 2004


Am Dienstag, 15. Juni 2004 19:05 schrieb Kyle Hasselbacher:
> On Tue, Jun 15, 2004 at 06:25:06PM +0200, Albert wrote:
> >shred doesn't work with directories and has problems with ext3
> > and reiser. Any other ideas? Are you all returning your
> > harddrives with files on it :-)
>
> Copy off the stuff you want to keep and then torch the whole
> drive:
>
> dd if=/dev/urandom of=/dev/hdX
> dd if=/dev/zero of=/dev/hdX

That deletes the smart-info too, which means you have problems to 
prove the errors. The best way I found is badblocks -w /dev/hdx_1_, 
which writes 4 different patterns over the partition. But I am 
unsure if there isn't a smarter way.

Albert



More information about the Gnupg-users mailing list