21 Oct
2013
21 Oct
'13
14:26
On 2013-10-21 16:21, Dominique Leuenberger a.k.a. Dimstar wrote:
Carlos,
the point of dd is to read 'blocks' in chunks (size specified by bs=) until the 'END of input is reached'.
Ok...
/dev/random is not an 'endless' buffer and as such, once the end is reached, dd stops copying.
I see.
count= means a MAX amount of blocks to be copied from input; and as many blocks as there are with bs= bytes.
Yes, that follows.
The 'surprise' to most is not really dd's behavior, but the fact that /dev/random can 'run out of data', which is different to /dev/null.
Yes, but I expected dd to simply wait. -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)