public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* BUG in 2.4.0: dd if=/dev/random of=out.txt bs=10000 count=100
@ 2001-01-13  3:53 Rob Landley
  2001-01-13  4:44 ` David Ford
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rob Landley @ 2001-01-13  3:53 UTC (permalink / raw)
  To: linux-kernel

If I do the dd line in the title under 2.4.0 I get an
out.txt file of 591 bytes.

If I do the same thing from /dev/zero, I get the
expected 1,000,000 byte file.

I've shoehorned 2.4.0 into a fresh red hat 7.0 install
which could quite easily be a bad thing, yes ripped
out their strange gcc and symlinked kgcc->gcc to do
the compile.  But other than this it seems to be
working.  (So far...)

dd says it completes happily even when copying from
random.  0+100 records in, 0+100 records out.  It
takes about thirty seconds to finish on the dual
gigahertz processor intel box I'm using to test it,
which implies it's actually performing the truly
impressive waste of CPU cycles I'm requesting from it.
 I'm just not getting the data in my file.

Am I doing something wrong?

My dd is from fileutils-4.0x-3.  (Straight Red Hat
7.0, I think...)  Didn't see anything about that in
Documentation/Changes...

I'll be happy to try one of the prepatches if anybody
thinks they've addressed this problem already.

Anybody?  Need more debugging info?  Want me to wave a
dead chicken at something specific?  Stick printk's
into the kernel?...

Rob

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: BUG in 2.4.0: dd if=/dev/random of=out.txt bs=10000 count=100
@ 2001-01-13  5:28 Rob Landley
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Landley @ 2001-01-13  5:28 UTC (permalink / raw)
  To: david+validemail; +Cc: linux-kernel

--- David Ford <david@linux.com> wrote:
> Rob Landley wrote:
> 
> > If I do the dd line in the title under 2.4.0 I get
> an
> > out.txt file of 591 bytes.
> 
> It isn't broken, you have no more entropy.  You must
> have some system
> activity of various sorts before you regain some
> entropy.  Moving the mouse
> around, hitting keys, etc, will slowly add more
> entropy.
> 
> -d

I'd wondered what urandom was for.  Thanks.

Rob


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: BUG in 2.4.0: dd if=/dev/random of=out.txt bs=10000 count=100
@ 2001-01-13 19:24 Bernd Eckenfels
  0 siblings, 0 replies; 7+ messages in thread
From: Bernd Eckenfels @ 2001-01-13 19:24 UTC (permalink / raw)
  To: linux-kernel

In article <20010113035314.316.qmail@web5205.mail.yahoo.com> you wrote:
> If I do the dd line in the title under 2.4.0 I get an
> out.txt file of 591 bytes.
/dev/random will only give you as much bytes as are available. and even then
you should not do it cause you drain the random pool. Use /dev/urandom
instead.

Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-01-13 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-13  3:53 BUG in 2.4.0: dd if=/dev/random of=out.txt bs=10000 count=100 Rob Landley
2001-01-13  4:44 ` David Ford
2001-01-13  5:08 ` John Heffner
2001-01-13 20:37 ` David Santinoli
2001-01-13 22:45   ` David Ford
  -- strict thread matches above, loose matches on Subject: below --
2001-01-13  5:28 Rob Landley
2001-01-13 19:24 Bernd Eckenfels

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