Skip to content

Wiping Data

Securely delete data.

shred

Tool to overwrite single file contents and optionally delete files.

# 35 pass random data, zero then remove file.
shred --iterations=35 --verbose --zero --remove {FILE}

# Recursively overwrite file data.
find . -type f -exec shred --iterations=35 --verbose --zero --remove {} \;

wipe

Tool to securely delete files and block devices.

apt install wipe

# Recursively delete files, 35 pass random data.
wipe -r -c -f -Q 35 {FILE OR DIR}

# Wipe a block device, 35 pass random data.
wipe -k -Q 35 {BLOCK DEVICE}

dd

Using dd to zero disks. Good for testing/setup of new drives.

# Writing all Zero’s to Drive.
dd if=/dev/zero of=/dev/sdX bs=1M &

# Writing all One’s to Drive.
tr '\000' '\377' < /dev/zero | dd of=/dev/sdX bs=1M &

# Checking Status on DD.
ps -ef | grep dd
kill -USR1 {PID}

DBAN Boot & Nuke

Live ISO image specifically for data destruction.

Download and run DoD 3 pass.

Reference123