linux utility to zero out hard disk
Hi, I use dd to zero out hard disk.
dd if=/dev/zero of=/dev/sdb2 is there a utility which dose the same but is faster, dd is terribily slow. |
Code:
dd if=/dev/zero of=/dev/sdb2 bs=1M Also use forum tags for code and quotes. |
As Mr.Alex stated, play with the blocksize option (bs) the standard value for that option is 512, which means that 512 Bytes are copied at a time (which is/was for a long time the standard sector size of harddisks). You can get much better performance with larger values. Which blocksize is optimal for you depends on your hardware, I got good results with blocksizes between 8 and 32 MB, Mr.Alex seems to prefer a blocksize of 1MB. Just try some values here and see which one gives you the best performance.
|
One more thing worth to be looked at: http://dave.frop.net/disk_overwrite_...vs_dd_vs_shred .
|
Quote:
Code:
tobi@demon ~ :) % dd if=/dev/zero of=/dev/null bs=1M count=1000 |
Thanks
Thanks next time I will try out these options.
|
All times are GMT -5. The time now is 03:07 PM. |