It will try to read 10 MB blocks, but if it gets a short read, it'll just write a similarly short block and continue. It will copy everything though, unless you use count=N
to restrict the number of blocks it'll read and write.
E.g. here, the output 0+2
means no complete blocks were read or written, but 2 partial blocks were, for a total of 8 bytes as in the input.
$ (echo foo; sleep .3; echo bar) | dd bs=512 | wc -c
0+2 records in
0+2 records out
8 bytes copied, 0.301053 s, 0.0 kB/s
8
The block size of reads and writes doesn't really matter on disk partition devices on Linux, so except for the progress display, you could just run cat < /dev/zero > /dev/sdc
instead. If you have pv
, you could use pv < /dev/zero > /dev/sdc
.
There are a number of posts here about how dd
actually behaves, see e.g.
cat /dev/zero >/dev/sdc
and avoid the worry – Chris Davies May 07 '22 at 13:51cat
might also be faster. – Artem S. Tashkinov May 07 '22 at 14:41