On 28/03/2013 8:10 AM, Ronald F. Guilmette wrote:
Question:

    Why exactly is "conv=sync" is there?
I found this on http://www.mkssoftware.com/docs/man1/dd.1.asp

If you specified conv=sync and this input block is smaller than the specified input block size, dd pads it to the specified size with null bytes. When you also specify a block or unblock conversion, dd uses spaces instead of null bytes.

So the last block of output gets padded with 0x00 at the end to fill the input block size (from bs=...)

Question:

     Why exactly is the "bs=10240" is there?  Wouldn't the default of 512
     do just as well?
It would, but then you would have FILESIZE/512 reads and writes instead of FILESIZE/10240 reads and writes - 20 times more.
The end result is the same, but the large bs makes the operation go faster.
I routinely use bs=655360 simply because it is a big number divisible by 512, which I can easily remember. 512000 would do just as well, though...

Danny

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to