
On 2013-09-03 12:35, Tony Crisp wrote:
On Mon, 2 Sep 2013, 15:10, James Harper wrote:
} > } > What is the best way to wash a disk? } > } > I tried this but it is taking forever. } > } > dd if=/dev/zero of=/dev/sdg1 } > } } Someone else suggested a tool to do it, but just fyi dd's default block } size is pretty small (is it 1 byte?) which will be terrible for } performance. Add bs=1M or something to improve the speed.
According to Wikipedia..:)
Or you could just check the info page: mattcen@toto:tmp$ info dd 2>/dev/null | grep -A 13 ^\`ibs `ibs=BYTES' Set the input block size to BYTES. This makes `dd' read BYTES per block. The default is 512 bytes. `obs=BYTES' Set the output block size to BYTES. This makes `dd' write BYTES per block. The default is 512 bytes. `bs=BYTES' Set both input and output block sizes to BYTES. This makes `dd' read and write BYTES per block, overriding any `ibs' and `obs' settings. In addition, if no data-transforming `conv' option is specified, input is copied to the output as soon as it's read, even if it is smaller than the block size. -- Regards, Matthew Cengia