Why is my /dev/random so slow when using dd?

Posted by Mikey on Super User See other posts from Super User or by Mikey
Published on 2011-11-20T23:58:23Z Indexed on 2011/11/21 1:55 UTC
Read the original article Hit count: 178

I am trying to semi-securely erase a bunch of hard drives. The following is working at 20-50Mb/s

dd if=/dev/zero of=/dev/sda

But

dd if=/dev/random of=/dev/sda 

seems not to work. Also when I type

dd if=/dev/random of=stdout

It only gives me a few bytes regardless of what I pass it for bs= and count=

Am I using /dev/random wrong? What other info should I look for to move this troubleshooting forward? Is there some other way to do this with a script or something like

makeMyLifeEasy | dd if=stdin of=/dev/sda

Or something like that...

© Super User or respective owner

Related posts about hard-drive

Related posts about slow