header image
[ # ] Disk Wiping
September 27th, 2009 under Linux

I was looking for a way to wipe a whole disk. With *nix systems, this is very easy. Simply make use of

. So to wipe
1
/dev/sda
/dev/sda
execute

1
dd if=/dev/zero of=/dev/sda bs=1m
dd if=/dev/zero of=/dev/sda bs=1m

Well, it’s not DOD clean but enough for my data. To overwrite a drive with random data to wipe the drive more securely

1
/dev/urandom
/dev/urandom
or
1
/dev/random
/dev/random
can be used for the input file.