<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Erasing on Michael’s Domain</title><link>https://jeltsch.org/en/tags/erasing/</link><description>Recent content in Erasing on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/erasing/index.xml" rel="self" type="application/rss+xml"/><item><title>How to erase hard drives (shred, dd)</title><link>https://jeltsch.org/en/how_to_erase_hard_drives_shred_dd/</link><pubDate>Sun, 25 Jan 2009 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/how_to_erase_hard_drives_shred_dd/</guid><description>&lt;p&gt;You could write zeros to the whole hard drive&lt;code&gt;dd if=/dev/zero of=/dev/hda&lt;/code&gt;For newer versions of dd, you can monitor the progress:&lt;code&gt;dd if=/dev/zero of=/dev/hda status=progress&lt;/code&gt;However, it has been recommended to write a few passes of random noise (n = 3 is the default). If the writing process entirely got rid of the magnetic history and your source of randomness was perfect, a single pass would ALWAYS be enough. In reality, you only need n&amp;gt;1 if you are dealing with the state secrets since recovering anything after an n=1 erase requires special equipment which you cannot buy in any store. &lt;code&gt;shred -vfz -n3 /dev/hda&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>