public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dd if=/dev/random of=data.bin bs=512 count=1
@ 2009-05-17 15:22 Jon Grant
  2009-05-17 16:01 ` KOSAKI Motohiro
  2009-05-17 16:27 ` Bernd Eckenfels
  0 siblings, 2 replies; 7+ messages in thread
From: Jon Grant @ 2009-05-17 15:22 UTC (permalink / raw)
  To: linux-kernel

Hello

Issuing this command, I expected to get a file 4096 bytes in size.
Could someone let me know if I have missed something..? Or is there a
problem with using /dev/random this way?

if I have a count=10 it hangs forever (several hours).

Changing to use /dev/urandom and it generates the file ok.

Please include my email address in replies,  as I'm not a member of this list.

Best regards, Jon

$ dd if=/dev/random of=data.bin bs=512 count=1
0+1 records in
0+1 records out
8 bytes (8 B) copied, 4.47366 s, 0.0 kB/s

$ dd --version
dd (coreutils) 6.10

$ uname -a
Linux ubuntu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC
2009 i686 GNU/Linux

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-05-24  0:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-17 15:22 dd if=/dev/random of=data.bin bs=512 count=1 Jon Grant
2009-05-17 16:01 ` KOSAKI Motohiro
2009-05-23 19:12   ` Jon
2009-05-23 19:20     ` Samuel Thibault
2009-05-23 19:38     ` Matt Mackall
2009-05-24  0:59     ` Bill Davidsen
2009-05-17 16:27 ` Bernd Eckenfels

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox