Securely Wipe Disk on Linux

Tips of Linux

Erasing Disk Using shred Command

$ sudo shred -v /dev/sdb

$ sudo shred -v -n 1 /dev/sdb

$ sudo shred -v -n 1 --random-source=/dev/urandom -z /dev/sdb

-v --verbose

-n --iterations=

Erasing Disk Using wipe Command

$ sudo wipe /dev/sdb

Erasing Disk Using dd Command

$ sudo dd if=/dev/urandom of=/dev/sdb bs=512 status=progress

$ sudo dd if=/dev/urandom of=/dev/sdb bs=4096 status=progress
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus