Sunday, April 19, 2009

Shredding data using linux

shred -vfz -n 100 /dev/(h|s)d(a|b|c)

sample
shred -vfz -n 100 /dev/sdb

Here /dev/sdb is my whole hard disk. And I am asking shred to make (-n) 100 passes by overwriting the entire hard disk with (-z) zeros. And shred program (-f) forces the write by changing the permissions wherever necessary.

No comments:

Post a Comment