Saturday, April 18, 2009

delete hard drive content using dd command

Use the following command:

dd if=/dev/zero of=/dev/sd(a|b|c) bs=1024

To earse from specific offeset in the output device add seek=(blocks count)

for example to start erasing at 10 KB:
dd if=/dev/zero of=/dev/sdb bs=1024 seek=10

No comments:

Post a Comment