Home > file systems > Wipe a Hard Drive

Wipe a Hard Drive

April 23rd, 2014 Leave a comment Go to comments

zero a drive with progress (change 1T to whatever drive size your zeroing):
# dd if=/dev/zero bs=1M | pv -s 1T | dd bs=1M of=/dev/sde

Erase the drive then read back the blocks to check for errors:
# badblocks -svw -t 0x00 /dev/sde

Categories: file systems
  1. No comments yet.
  1. No trackbacks yet.