dod 5220.22 is only how I wipe drives.<br><br><div class="gmail_quote">On Wed, Jun 1, 2011 at 12:06 PM, David L. Willson <span dir="ltr">&lt;<a href="mailto:DLWillson@thegeek.nu">DLWillson@thegeek.nu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Chris is right. Unless you have a week to spend on this, you&#39;ll do well to restart with /dev/zero and dd.<br>

<br>
Also note that you ~can~ get dd to output progress! If you can send the process a USR1 signal (or a SIGUSR1) and it will output it&#39;s current progress. That can be pretty handy for estimating the completion time. How to get the signal there? Here&#39;s an example:<br>

<br>
dlwillson@dlwillson-laptop:~$ dd if=/dev/zero of=/dev/null bs=8M &amp;<br>
[1] 6276<br>
dlwillson@dlwillson-laptop:~$ killall -SIGUSR1 dd<br>
dlwillson@dlwillson-laptop:~$ 1785+1 records in<br>
1785+0 records out<br>
14973665280 bytes (15 GB) copied, 6.81347 s, 2.2 GB/s<br>
<br>
Also, you can (or could have) saved a ~bunch~ of time by just clearing the first several meg of each partition (and optionally, the disk). Unless you&#39;re very interesting, to an extremely smart, wealthy, or lucky person, over-writing file data is over-kill. Destroying the filesystem and partition meta-data is more than enough to stop five-nines of people. Curiosity and spare time are not enough.<br>

<br>
I&#39;ll be happy to build up a reasonable &quot;stump the geek&quot; challenge for anyone that thinks I&#39;m wrong on this.<br>
(And I&#39;ll be happy to learn something that could save my bacon someday, if I am.)<br>
<div class="im"><br>
----- Original Message -----<br>
&gt; From: &quot;chris fedde&quot; &lt;<a href="mailto:chris@fedde.us">chris@fedde.us</a>&gt;<br>
&gt; To: &quot;CLUE&#39;s mailing list&quot; &lt;<a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a>&gt;<br>
&gt; Sent: Wednesday, June 1, 2011 10:26:28 AM<br>
&gt; Subject: Re: [clue] secure erase techniques?<br>
&gt;<br>
</div><div><div></div><div class="h5">&gt; It might be a good idea to switch to /dev/zero.  It is much faster<br>
&gt; than /dev/random<br>
&gt; You need to wait for it to finish to overwrite the whole disk.  As a<br>
&gt; least upper bound on the run time take the disk size and divide by<br>
&gt; the<br>
&gt; advertised transfer rate of the interface.  300Gbyte = 300*1024^3,<br>
&gt; 3Mbyte/sec ideal SATA speed = 3*1024^2<br>
&gt;<br>
&gt; using bc -l<br>
&gt;<br>
&gt; (300*1024^3)/(3*1024^2)<br>
&gt; 102400.00000000000000000000<br>
&gt; ./3600<br>
&gt; 28.44444444444444444444<br>
&gt;<br>
&gt; about 29 hours if you really get full bandwidth from your sata port.<br>
&gt; Chances are that&#39;s a gross under estimate.<br>
&gt;<br>
&gt; Here is a quick device timing test:<br>
&gt;<br>
&gt; [cfedde@home]$ dd if=/dev/urandom of=/dev/null bs=4096 count=1000<br>
&gt; 1000+0 records in<br>
&gt; 1000+0 records out<br>
&gt; 4096000 bytes (4.1 MB) copied, 0.532551 seconds, 7.7 MB/s<br>
&gt;<br>
&gt; [cfedde@home]$ dd if=/dev/zero of=/dev/null bs=4096 count=1000<br>
&gt; 1000+0 records in<br>
&gt; 1000+0 records out<br>
&gt; 4096000 bytes (4.1 MB) copied, 0.001732 seconds, 2.4 GB/s<br>
&gt;<br>
&gt; /dev/zero is much faster than /dev/urandom<br>
&gt;<br>
&gt; On Wed, Jun 1, 2011 at 9:07 AM, Mike Bean &lt;<a href="mailto:beandaemon@gmail.com">beandaemon@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt; No harm, no foul, it&#39;s not a particularly fast Celeron, so I don&#39;t<br>
&gt; &gt; mind<br>
&gt; &gt; letting it run long, I just wasn&#39;t sure what to expect.<br>
&gt; &gt;<br>
&gt; &gt; On Wed, Jun 1, 2011 at 8:15 AM, Will &lt;<a href="mailto:will.sterling@gmail.com">will.sterling@gmail.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I should have recommended /dev/zero instead of /dev/urandom.  For<br>
&gt; &gt;&gt; your<br>
&gt; &gt;&gt; purposes it would have been just as good and faster.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Wed, Jun 1, 2011 at 8:02 AM, Will &lt;<a href="mailto:will.sterling@gmail.com">will.sterling@gmail.com</a>&gt;<br>
&gt; &gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; It should eventually quit on its own.  The amount of time it will<br>
&gt; &gt;&gt;&gt; take is<br>
&gt; &gt;&gt;&gt; dependent on how fast your CPU can generate random numbers and<br>
&gt; &gt;&gt;&gt; how large the<br>
&gt; &gt;&gt;&gt; partition is.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; On Wed, Jun 1, 2011 at 5:09 AM, Mike Bean &lt;<a href="mailto:beandaemon@gmail.com">beandaemon@gmail.com</a>&gt;<br>
&gt; &gt;&gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; How long would I need to leave this running?   cat /dev/urandom<br>
&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt; /dev/sda1 &#39;s been going for long about 10 hours now.  Is this<br>
&gt; &gt;&gt;&gt;&gt; something that<br>
&gt; &gt;&gt;&gt;&gt; I&#39;ll need to abort or does it terminate on its own?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; On Tue, May 31, 2011 at 9:04 AM, chris fedde &lt;<a href="mailto:chris@fedde.us">chris@fedde.us</a>&gt;<br>
&gt; &gt;&gt;&gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; Raymond,<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; What does the magic block size do?<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; I&#39;d go with two passes of &quot;cat /dev/urandom &gt; /dev/sdX&quot; as<br>
&gt; &gt;&gt;&gt;&gt;&gt; root.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; On Tue, May 31, 2011 at 8:51 AM, Raymond DeRoo<br>
&gt; &gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:rderoo@deroo.net">rderoo@deroo.net</a>&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; Mike--<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; In short, I&#39;m giving one of my older PC&#39;s to a friend&#39;s<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; friend.  One<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; of<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; those, I don&#39;t need it, things.  In any case, in terms of<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; secure<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; destruction<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; of drives, my father&#39;s always taught me to disassemble the<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; drives and<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; throw<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; the heads and the platter out separately.  Can&#39;t do it here,<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; they<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; need the<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; drives, so I thought I&#39;d ask for advice in case we have<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; members who<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; might<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; know a thing or two about this sort of thing.  I figured I&#39;d<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; probably<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; just<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; boot it to a live CD and nuke the partitions, and that&#39;s<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; probably<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; enough,<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; after all, I don&#39;t need like a military-grade erase, but I&#39;ll<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; settle<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; for<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; making it @#$@#$@$ hard to recover.  Any suggestions are<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; welcome.<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; # dd if=/dev/urandom of=/dev/sda bs=387 count=&lt;size of disk<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; in bites&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; / 383<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; Recover from this *IS* still possible, but generally requires<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; someone<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; who is<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; *VERY* knowledge about drives to do as such.<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; .r<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; clue mailing list<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt;&gt; clue mailing list<br>
&gt; &gt;&gt;&gt;&gt;&gt; <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt; clue mailing list<br>
&gt; &gt;&gt;&gt;&gt; <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
&gt; &gt;&gt;&gt;&gt; <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; clue mailing list<br>
&gt; &gt;&gt; <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
&gt; &gt;&gt; <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; clue mailing list<br>
&gt; &gt; <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
&gt; &gt; <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
&gt; &gt;<br>
&gt; _______________________________________________<br>
&gt; clue mailing list<br>
&gt; <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
&gt; <a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
&gt;<br>
_______________________________________________<br>
clue mailing list<br>
<a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a></div></div></blockquote></div><br>