<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog (Entries tagged as harddisk)</title>
    <link>https://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 12 Mar 2025 08:52:27 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>https://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Seagate old hard disks sold as new, smartmontools v7.4 for Debian Bullseye and Bookworm </title>
    <link>https://daniel-lange.com/archives/191-Seagate-old-hard-disks-sold-as-new,-smartmontools-v7.4-for-Debian-Bullseye-and-Bookworm.html</link>
            <category>Debian</category>
            <category>IT</category>
    
    <comments>https://daniel-lange.com/archives/191-Seagate-old-hard-disks-sold-as-new,-smartmontools-v7.4-for-Debian-Bullseye-and-Bookworm.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=191</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=191</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Apparently somebody managed to &lt;a href=&quot;https://www.heise.de/en/news/Hard-disk-fraud-More-retailers-affected-first-returns-10264576.html&quot; title=&quot;Press report at Heise Online&quot;&gt;resell Seagate hard disks that have 2-5 years of operations on them as brand new&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;They did this by using some new shrink wrap bags and resetting the used hard disk &lt;a href=&quot;https://en.wikipedia.org/wiki/Self-Monitoring,_Analysis_and_Reporting_Technology&quot; title=&quot;Wikipedia: SMART&quot;&gt;SMART attributes&lt;/a&gt; to factory-new values.&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:718 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;225&quot; height=&quot;342&quot;  src=&quot;https://daniel-lange.com/uploads/entries/Seagate_Exos_X24.jpg&quot;  alt=&quot;Image of Seagate Exos X24 hard disk&quot;&gt;&lt;/p&gt;

&lt;p&gt;Luckily Seagate has a proprietary extension &quot;Seagate FARM (Field Access Reliability Metrics)&quot; implemented in their disks that ... the crooks did not reset.&lt;/p&gt;

&lt;p&gt;Luckily ... because other manufacturers do not have that extension. And you think the crooks only re-sell used Seagate disks? Lol.&lt;/p&gt;

&lt;p&gt;To get access to the Seagate FARM extension, you need &lt;code&gt;smartctl&lt;/code&gt; from &lt;code&gt;smartmontools&lt;/code&gt; v7.4 or later.&lt;/p&gt;

&lt;p&gt;For Debian 12 (Bookworm) you can add the &lt;a href=&quot;https://backports.debian.org/Instructions/&quot;&gt;backports archive&lt;/a&gt; and then install with
&lt;code&gt;apt install smartmontools/bookworm-backports&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For Debian 11 (Bullseye) you can use a backport we created at my company:&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
  &lt;th&gt;File&lt;/th&gt;
  &lt;th&gt;sha256&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
  &lt;td&gt;&lt;a href=&quot;https://daniel-lange.com/software/smartmontools_7.4-2~bpo11+1_amd64.deb&quot; title=&quot;Smartmontools v7.4 backport for Debian Bullseye: 630kB&quot;&gt;smartmontools_7.4-2~bpo11+1_amd64.deb&lt;/a&gt;&lt;/td&gt;
  &lt;td&gt;e09da1045549d9b85f2cd7014d1f3ca5d5f0b9376ef76f68d8d303ad68fdd108&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;You can also download static builds from &lt;a href=&quot;https://builds.smartmontools.org/&quot;&gt;https://builds.smartmontools.org/&lt;/a&gt; which keeps the latest CI builds of the current development branch (v7.5 at the time of writing).&lt;/p&gt;

&lt;p&gt;To check the state of your drives, compare the output from &lt;code&gt;smartctl -x&lt;/code&gt; and &lt;code&gt;smartctl -l farm&lt;/code&gt;. Double checking &lt;strong&gt;Power_On_Hours&lt;/strong&gt; vs. &lt;strong&gt;&quot;Power on Hours&quot;&lt;/strong&gt; is the obvious. But the other values around &quot;Head Flight Hours&quot; and &quot;Power Cycle Count&quot; should also roughly match what you expect from a hard disk of a certain age. All near zero, of course, for a factory-new hard disk.&lt;/p&gt;

&lt;p&gt;This is what it looks like for a hard disk that has gracefully serviced 4 years and 8 months so far. The  &lt;code&gt;smartctl -x&lt;/code&gt; and &lt;code&gt;smartctl -l farm&lt;/code&gt; data match within some small margins:&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;$ smartctl &lt;span style=&quot;color: #660033;&quot;&gt;-x&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sda&lt;br /&gt;&lt;br /&gt;smartctl &lt;span style=&quot;color: #000000;&quot;&gt;7.4&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2023&lt;/span&gt;-08-01 r5530 &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;x86_64-linux-6.1.0-&lt;span style=&quot;color: #000000;&quot;&gt;30&lt;/span&gt;-amd64&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;local&lt;/span&gt; build&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;Copyright &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;C&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2002&lt;/span&gt;-&lt;span style=&quot;color: #000000;&quot;&gt;23&lt;/span&gt;, Bruce Allen, Christian Franke, www.smartmontools.org&lt;br /&gt;&lt;br /&gt;=== START OF INFORMATION SECTION ===&lt;br /&gt;Model Family: &amp;#160; &amp;#160; Seagate Exos X14&lt;br /&gt;Device Model: &amp;#160; &amp;#160; ST10000NM0568-2H5110&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;..&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;Vendor Specific SMART Attributes with Thresholds:&lt;br /&gt;&lt;span style=&quot;color: #666666;&quot;&gt;ID# &lt;/span&gt;ATTRIBUTE_NAME &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;FLAGS &amp;#160; &amp;#160;VALUE WORST THRESH FAIL RAW_VALUE&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;..&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;&amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;4&lt;/span&gt; Start_Stop_Count &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;span style=&quot;color: #660033;&quot;&gt;-O--CK&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; 020 &amp;#160; &amp;#160;- &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;26&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;..&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;&amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;9&lt;/span&gt; Power_On_Hours &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;span style=&quot;color: #660033;&quot;&gt;-O--CK&lt;/span&gt; &amp;#160; 054 &amp;#160; 054 &amp;#160; 000 &amp;#160; &amp;#160;- &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;40860&lt;/span&gt;&lt;br /&gt;&amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;10&lt;/span&gt; Spin_Retry_Count &amp;#160; &amp;#160; &amp;#160; &amp;#160;PO--C- &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; 097 &amp;#160; &amp;#160;- &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;&amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;12&lt;/span&gt; Power_Cycle_Count &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #660033;&quot;&gt;-O--CK&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; 020 &amp;#160; &amp;#160;- &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;27&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;..&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000;&quot;&gt;192&lt;/span&gt; Power-Off_Retract_Count &lt;span style=&quot;color: #660033;&quot;&gt;-O--CK&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; 000 &amp;#160; &amp;#160;- &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;708&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000;&quot;&gt;193&lt;/span&gt; Load_Cycle_Count &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;span style=&quot;color: #660033;&quot;&gt;-O--CK&lt;/span&gt; &amp;#160; 064 &amp;#160; 064 &amp;#160; 000 &amp;#160; &amp;#160;- &amp;#160; &amp;#160;&lt;span style=&quot;color: #000000;&quot;&gt;72077&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;..&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000;&quot;&gt;240&lt;/span&gt; Head_Flying_Hours &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #660033;&quot;&gt;------&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;100&lt;/span&gt; &amp;#160; &lt;span style=&quot;color: #000000;&quot;&gt;253&lt;/span&gt; &amp;#160; 000 &amp;#160; &amp;#160;- &amp;#160; &amp;#160;21125h+51m+45.748s&lt;/div&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;$ smartctl &lt;span style=&quot;color: #660033;&quot;&gt;-l&lt;/span&gt; farm &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sda&lt;br /&gt;&lt;br /&gt;smartctl &lt;span style=&quot;color: #000000;&quot;&gt;7.4&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2023&lt;/span&gt;-08-01 r5530 &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;x86_64-linux-6.1.0-&lt;span style=&quot;color: #000000;&quot;&gt;30&lt;/span&gt;-amd64&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;local&lt;/span&gt; build&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;Copyright &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;C&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2002&lt;/span&gt;-&lt;span style=&quot;color: #000000;&quot;&gt;23&lt;/span&gt;, Bruce Allen, Christian Franke, www.smartmontools.org&lt;br /&gt;&lt;br /&gt;Seagate Field Access Reliability Metrics log &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;FARM&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;GP Log 0xa6&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; FARM Log Page &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;: Log Header&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; FARM Log Version: &lt;span style=&quot;color: #000000;&quot;&gt;2.9&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Pages Supported: &lt;span style=&quot;color: #000000;&quot;&gt;6&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Log Size: &lt;span style=&quot;color: #000000;&quot;&gt;98304&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Page Size: &lt;span style=&quot;color: #000000;&quot;&gt;16384&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Heads Supported: &lt;span style=&quot;color: #000000;&quot;&gt;24&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Number of Copies: &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Reason &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; Frame Capture: &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; FARM Log Page &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;: Drive Information&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;..&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Power on Hours: &lt;span style=&quot;color: #000000;&quot;&gt;40860&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Spindle Power on Hours: &lt;span style=&quot;color: #000000;&quot;&gt;34063&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Head Flight Hours: &lt;span style=&quot;color: #000000;&quot;&gt;24513&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Head Load Events: &lt;span style=&quot;color: #000000;&quot;&gt;72077&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Power Cycle Count: &lt;span style=&quot;color: #000000;&quot;&gt;28&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Hardware Reset Count: &lt;span style=&quot;color: #000000;&quot;&gt;193&lt;/span&gt;&lt;/div&gt;

&lt;p&gt;You may like to run the command below on your systems to capture the state. Remember FARM is only supported on Seagate drives.&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; i &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sd&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;a,b,c,d,e,f,g,h&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; ; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt; smartctl &lt;span style=&quot;color: #660033;&quot;&gt;-x&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$i&lt;/span&gt; ; smartctl &lt;span style=&quot;color: #660033;&quot;&gt;-l&lt;/span&gt; farm &lt;span style=&quot;color: #007800;&quot;&gt;$i&lt;/span&gt; ; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt; +&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;%y%m%d&#039;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;_smartctl_$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;basename&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;.txt ; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt;&lt;/div&gt;
 
    </content:encoded>

    <pubDate>Fri, 31 Jan 2025 17:42:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/191-guid.html</guid>
    <category>drive</category>
<category>exos</category>
<category>farm</category>
<category>harddisk</category>
<category>poweronhours</category>
<category>runtime</category>
<category>seagate</category>
<category>smart</category>
<category>smartctl</category>
<category>smartmontools</category>

</item>
<item>
    <title>Wiping harddisks in 2019</title>
    <link>https://daniel-lange.com/archives/157-Wiping-harddisks-in-2019.html</link>
            <category>Linux</category>
    
    <comments>https://daniel-lange.com/archives/157-Wiping-harddisks-in-2019.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=157</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=157</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Wiping hard disks is part of my company&#039;s policy when returning servers. No exceptions.&lt;/p&gt;

&lt;p&gt;Good providers will wipe what they have received back from a customer, but we don&#039;t trust that as the hosting / cloud business is under constant budget-pressure and cutting corners (&lt;code&gt;wipefs&lt;/code&gt;) is a likely consequence.&lt;/p&gt;

&lt;p&gt;With modern SSDs there is &quot;security erase&quot; (&lt;code&gt;man hdparm&lt;/code&gt; or see the - as always well maintained - &lt;a href=&quot;https://wiki.archlinux.org/index.php/Solid_state_drive/Memory_cell_clearing&quot;&gt;Arch wiki&lt;/a&gt;) which is useful if the device is encrypt-by-default. These devices basically &quot;forget&quot; the encryption key but it also means trusting the devices&#039; implementation security. Which &lt;a href=&quot;https://www.tomshardware.com/news/crucial-samsung-ssd-encryption-bypassed,38025.html&quot;&gt;doesn&#039;t seem warranted&lt;/a&gt;. Still &lt;em&gt;after&lt;/em&gt; wiping and trimming, a secure erase can&#039;t be a bad idea &lt;img src=&quot;https://daniel-lange.com/plugins/serendipity_event_emoticate/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; class=&quot;emoticon&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;Still there are three things to be aware of when wiping modern hard disks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Don&#039;t forget to add &lt;code&gt;bs=4096&lt;/code&gt; (blocksize) to &lt;code&gt;dd&lt;/code&gt; as it will still default to 512 bytes and that makes writing even zeros less than half the maximum possible speed. SSDs may benefit from larger block sizes matched to their flash page structure. These are usually 128kB, 256kB, 512kB, 1MB, 2MB and 4MB these days.&lt;sup id=&quot;fnref:1&quot;&gt;&lt;a href=&quot;#fn:1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;All disks can usually be written to in parallel. &lt;code&gt;screen&lt;/code&gt; is your friend.&lt;/li&gt;
&lt;li&gt;The write speed varies greatly by disk region, so use 2 hours per TB and wipe pass as a conservative estimate. This is better than extrapolating what you see initially in the fastest region of a spinning disk.&lt;/li&gt;
&lt;li&gt;The disks have become huge (we run 12TB disks in production now) but the write speed is still somewhere 100 MB/s ... 300 MB/s. So wiping servers on the last day before returning is not possible anymore with disks larger than 4 TB each (and three passes). Or 12 TB and one pass (where e.g. fully encrypted content allows to just do a final zero-wipe).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;style&gt;
table.blueTable {
  border: 1px solid #1C6EA4;
  background-color: #EEEEEE;
  text-align: center;
  border-collapse: collapse;
}
table.blueTable td, table.blueTable th {
  border: 1px solid #AAAAAA;
  padding: 3px 2px;
}
table.blueTable tbody td {
  font-size: 12px;
}
table.blueTable tr:nth-child(even) {
  background: #D0E4F5;
}
table.blueTable thead th {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}
table.blueTable thead th:first-child {
  border-left: none;
}
&lt;/style&gt;&lt;/p&gt;

&lt;table class=&quot;blueTable&quot;&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;hard disk size&lt;/th&gt;
&lt;th&gt;one pass&lt;/th&gt;
&lt;th&gt;three passes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;1 TB&lt;/td&gt;&lt;td&gt;2 h&lt;/td&gt;&lt;td&gt;6 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2 TB&lt;/td&gt;&lt;td&gt;4 h&lt;/td&gt;&lt;td&gt;12 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3 TB&lt;/td&gt;&lt;td&gt;6 h&lt;/td&gt;&lt;td&gt;18 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;4 TB&lt;/td&gt;&lt;td&gt;8 h&lt;/td&gt;&lt;td&gt;24 h (one day)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;5 TB&lt;/td&gt;&lt;td&gt;10 h&lt;/td&gt;&lt;td&gt;30 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;6 TB&lt;/td&gt;&lt;td&gt;12 h&lt;/td&gt;&lt;td&gt;36 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;8 TB&lt;/td&gt;&lt;td&gt;16 h&lt;/td&gt;&lt;td&gt;48 h (two days) &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;10 TB&lt;/td&gt;&lt;td&gt;20 h&lt;/td&gt;&lt;td&gt;60 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;12 TB&lt;/td&gt;&lt;td&gt;24 h&lt;/td&gt;&lt;td&gt;72 h (three days)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;14 TB&lt;/td&gt;&lt;td&gt;28 h&lt;/td&gt;&lt;td&gt;84 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;16 TB&lt;/td&gt;&lt;td&gt;32 h&lt;/td&gt;&lt;td&gt;96 h (four days)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;18 TB&lt;/td&gt;&lt;td&gt;36 h&lt;/td&gt;&lt;td&gt;108 h&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;20 TB&lt;/td&gt;&lt;td&gt;40 h&lt;/td&gt;&lt;td&gt;120 h (five days)&lt;/td&gt;&lt;/tr&gt;

&lt;/tbody&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;img class=&quot;serendipity_image_left&quot; width=&quot;811&quot; height=&quot;154&quot;  src=&quot;https://daniel-lange.com/uploads/entries/harddisk_wipe.gif&quot; title=&quot;Hard disk wipe&quot; alt=&quot;Hard disk wipe animation&quot;&gt;&lt;/p&gt;

&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;

&lt;div class=&quot;footnotes&quot;&gt;
&lt;hr /&gt;
&lt;ol&gt;

&lt;li id=&quot;fn:1&quot;&gt;
&lt;p&gt;As Douglas pointed out correctly in the comment below, these are &lt;strong&gt;IT&lt;/strong&gt; Kilobytes and Megabytes, so 2&lt;sup&gt;10&lt;/sup&gt; Bytes and 2&lt;sup&gt;20&lt;/sup&gt; Bytes. So &lt;a href=&quot;https://en.wikipedia.org/wiki/Kibibyte&quot; title=&quot;Saying Kibibyte makes me cringe every time. So I don&#039;t.&quot;&gt;Kibibytes&lt;/a&gt; and Mebibytes for those firmly in SI territory.&amp;#160;&lt;a href=&quot;#fnref:1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;

&lt;/ol&gt;
&lt;/div&gt;
 
    </content:encoded>

    <pubDate>Tue, 12 Mar 2019 08:55:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/157-guid.html</guid>
    <category>data</category>
<category>erase</category>
<category>harddisk</category>
<category>security</category>
<category>ssd</category>
<category>wipe</category>

</item>

</channel>
</rss>
