Re: Create files with specific sizes?

SVisor
2004-12-16T09:47:51Z

...
>> I wanted a file of garbage, not zeroes.
>> So I tried: dd if=/dev/random of=file bs=1k count=1024
...
> That's exactly what it is supposed to do. Perhaps you tought
> /dev/random could generate random numbers much faster. So when it's
> entropy pool was exhausted after 4KB, you tought it stopped working.

Nope I did not abort it, I just moved the mouse to generate more random
numbers (with dd running in X terminal). What dd says is:

0+1024 records in
0+1024 records out

But the file still is just ~4k. Maybe a bug?

// Jarmo