[CentOS] help fdisk and dd

Thu Mar 4 15:02:42 UTC 2010
John Doe <jdmls at yahoo.com>

From: John Doe <jdmls at yahoo.com>
> From: chloe K 
> > What is the best practice to remove all data in the disk?
> > ls fdisk ok or use dd 
> Maybe something like (replace the ?):
> - fast but not secure:
>    dd if=/dev/zero of=/dev/?d? bs=4096
> - slow but more secure:
>    dd if=/dev/zero of=/dev/?d? bs=4096
> - n times slower but n times more secure:
>    for ((i=1; i<=n; i++)); do dd if=/dev/zero of=/dev/?d? bs=4096; done

Oops, for the slow procedures, it is /dev/random instead of /dev/zero...

JD