<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7615&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] fstrim and HDDs]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7615</link>
		<description><![CDATA[The most recent posts in [SOLVED] fstrim and HDDs.]]></description>
		<lastBuildDate>Fri, 19 Dec 2025 00:15:08 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60710#p60710</link>
			<description><![CDATA[<p>ah nice, gotta love western digital, they truly embody their name.</p>]]></description>
			<author><![CDATA[dummy@example.com (EDX-0)]]></author>
			<pubDate>Fri, 19 Dec 2025 00:15:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60710#p60710</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60707#p60707</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>I wrote:</cite><blockquote><div><p>So no, no surprises here.</p></div></blockquote></div><p>Crikey!!!<br />Was I ever wrong!</p><p>Shortly after I received the reply to my query from the chaps at WD, they sent me an email asking for my opinion on their tech support.<br />Email which, although ignored, they sent again sometime later.<br />And then again.</p><p>Not wanting to let them down and now feeling inclined to oblige, I replied.</p><p>As subtly as possible I wrote that I found their tech support to be lacking as my question had <span class="bbu">not</span> been answered.<br />And that no, I would not in any way recommend their products.<br />And left it at that.</p><p>Not to be deterred, WD once <span class="bbu">again</span> reached out to me, as always in html format.<br />So, for the amusement of all my fellow forum members, what follows is the complete and unabridged content of their last email:</p><div class="quotebox"><cite>WD Tech Support wrote:</cite><blockquote><div><p>Incident Update<br />Case #: 9554268 | Reference #: 251127-000612</p><p>Hello Julius Henry*, <br /> <br />We would like to inform you that we have escalated your question to our engineers and will send you their response below:</p><p>Thank you for your interest in our products. The information you’re requesting is not publicly available. If you’d like to engage with us on a more strategic level, which would involve purchase minimums and non-disclosure agreements, please complete this form and choose the topic “Looking to Purchase (For Business).</p><p><a href="https://www.westerndigital.com/company/contact-us" rel="nofollow">https://www.westerndigital.com/company/contact-us</a><br /> <br />Unfortunately, we don&#039;t support Linux, so we can&#039;t comment on the status of the logs you provided. If you&#039;d like to check the drive&#039;s functionality, we recommend connecting it to a Windows computer and using our WD Kitfox tool:</p><p>Download, install, test, and erase data using Western Digital Kitfox: <a href="https://support-en.wd.com/app/answers/detailweb/a_id/51537" rel="nofollow">https://support-en.wd.com/app/answers/d … a_id/51537</a><br /> <br />If you have any further questions, please reply to this email and we will be happy to assist.<br /> <br />Alternatively Julius Henry, you can start a live chat with one of our support specialists on this link  - at the bottom right of the new page, just click the chat bubble! If you prefer to call us, click here. </p><p>Sincerely,<br />Dmitro D<br />Western Digital Customer Service and Support<br /><a href="https://www.westerndigital.com/en-gb/support" rel="nofollow">https://www.westerndigital.com/en-gb/support</a></p><p>Please note a 30-second support survey will be sent to your email later. We look forward to your feedback. Thank you for your understanding and support.</p><p>Note: If you have not visited our community forums, please make sure to do so.  You may also find answer(s) to your question(s) there. Link to WD community forums at: <a href="https://community.wd.com" rel="nofollow">https://community.wd.com</a> .</p><p>This electronic message contains information from Western Digital, is intended only for the use of the addressee and may contain information that is confidential.  The dissemination of this information is strictly prohibited.  If you have received this electronic transmission in error, please respond back to this e-mail or contact us by phone.</p><p>In order to process your email, please do not remove this reference #: 251127-000612<br />Get More Help<br />• Check our Knowledge Base for helpful articles and FAQs.<br />• Explore our WD Community forum or visit the Western Digital Support YouTube channel for helpful resources and support.</p><p>Update Incident<br />Case Details</p><p>Case Number: 251127-000612<br />Subject: TS fstrim and mechanical HDDs<br />Product: WD Blue 2.5&quot;<br />Date: 11/26/2025 01:44 PM<br />To unsubscribe or update your email preferences, please click here.</p><p>Please note: This e-mail message was sent from a notification-only address that cannot accept incoming e-mail. Please do not reply to this message.<br />© 2025 Western Digital Corporation or its affiliates. All rights reserved.<br />Contact Us<br />FAQ<br />My Account<br />Terms of Use<br />Privacy Statement<br />Terms of Sale<br />5601 Great Oaks Parkway, San Jose, CA 95119 USA<br />[---002:002426:50328---]</p></div></blockquote></div><p>I found most interesting the references to the information requested not being &quot;<em>publicly available</em>&quot;, engaging with them &quot;<em>on a more strategic level</em>&quot; and the &quot;<em>purchase minimums and non-disclosure agreements</em>&quot; to do so.</p><p>No to mention the &quot;<em>we don&#039;t support Linux</em>&quot; bit. 8^D !!!!</p><p>I have to hand it to these chaps, they have <span class="bbu">really</span> made an effort to look like idiots.</p><p>Best,</p><p>A.</p><p>* my <em>nom de curmudgeon</em></p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 18 Dec 2025 18:41:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60707#p60707</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60341#p60341</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>I wrote:</cite><blockquote><div><p>... post again if / when I get a reply ...</p></div></blockquote></div><p>Got a reply after a few days.<br />As expected, nothing new, just the obvious:</p><div class="quotebox"><cite>WD support wrote:</cite><blockquote><div><p>Recently you requested personal assistance ...<br />Blah, blah, blah.<br />--- snip ---<br />... you&#039;d like to clarify what TRIM does. &lt;- Yes, on a <span class="bbc">HDD</span><br />... TRIM is an Advanced Technology Attachment (ATA) command. &lt;- Really?<br />... allows the operating system to tell the HDD when it can delete data blocks so they can be reused ...&#160; &lt;- must be magic.<br />... works with Garbage Collection to clean up the drive. It can improve performance and extend the life of the drive.&lt;- <span class="bbc">HDD</span>s?<br />--- snip ---</p></div></blockquote></div><p>As you can gather, my specific question was *not* answered.<br />ie: just what does [TRIM] do on a <span class="bbc">HDD</span> (spinning rust)?</p><p>Further on there is a link which takes me to a page that <span class="bbu">does not have</span> a link to the <strong>only</strong> WD document* with <em>some</em> information on what I wanted to know albeit with no clear answer. <br />* It is linked to on my previous post.</p><p>So no, no surprises here.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 02 Dec 2025 23:46:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60341#p60341</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60139#p60139</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>g4sra wrote:</cite><blockquote><div><p>... filesystem is ext4 which does support discard.</p></div></blockquote></div><p>After thinking about this for a while I decided to contact WD support to see if they can explain if the [TRIM] command actually does something.</p><p>I should have a reply in a matter of days.</p><p>Then I found <a href="https://support-en.wd.com/app/answers/detailweb/a_id/25185/related/1" rel="nofollow">this</a> page.<br />I don&#039;t undertsand much of what it says, but it would seem that the [TRIM] command <span class="bbu">does</span> have a function in HDDs using SMR (Shingled Magnetic Recording).</p><p>See this white paper* <a href="https://www.senetic.ci/i/objects/mmo_76541694_1594108397_5306_478.pdf" rel="nofollow">https://www.senetic.ci/i/objects/mmo_76 … 06_478.pdf</a><br />* p. 3 - Benefits for an SMR Drive</p><p>I&#039;ll post again if / when I get a reply from WD.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 26 Nov 2025 23:54:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60139#p60139</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60121#p60121</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>g4sra wrote:</cite><blockquote><div><p>... filesystem is ext4 which does support discard.</p></div></blockquote></div><p>I see.</p><div class="quotebox"><cite>EDX-0 wrote:</cite><blockquote><div><p>technically the logs are correct ...<br />fstrim simply has no way to know ...</p></div></blockquote></div><p>Makes sense.<br />Thank you very much for taking the time to write it up.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 26 Nov 2025 10:13:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60121#p60121</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60116#p60116</link>
			<description><![CDATA[<p>technically the logs are correct, fstrim sends the trim operation to every mounted partition with a filesystem that supports it, the discard is calculated and then passed from the filesystem (through the kernel i&#039;d assume) onto the drive&#039;s firmware, the firmware accepts the trim operation with the provided discard parameters, reports back that the proposed operation was accepted but then ignores it internally as the firmware does it&#039;s own handling of empty/unused space, the kernel gets the success status back to fstrim and fstrim reports back that the operation was a success and prints out the output that as far as the process is concerned was correct, fstrim simply has no way to know that the drive&#039;s firmware is lying while ignoring the trim and discard so the log output is &quot;correct&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (EDX-0)]]></author>
			<pubDate>Wed, 26 Nov 2025 05:23:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60116#p60116</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60110#p60110</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>why is it reported in the log?</p></div></blockquote></div><p>I would surmise the filesystem is ext4 which does support discard.</p>]]></description>
			<author><![CDATA[dummy@example.com (g4sra)]]></author>
			<pubDate>Wed, 26 Nov 2025 00:30:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60110#p60110</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60109#p60109</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>EDX-0 wrote:</cite><blockquote><div><p>... depends on the specific hard drive ...<br />... accepts trim but ignores it ...</p></div></blockquote></div><p>I&#039;m just guessing.<br />I have not been able to find any information as to what is going on in a case such as mine.</p><p>But if the firmware ignores the <span class="bbc">TRIM</span> command, why is it reported in the log?</p><div class="codebox"><pre><code>/media/1TB/IMG: 109.2 GiB (117271797760 bytes) trimmed on /dev/sda1
/media/1TB/TS: 159.1 GiB (170784149504 bytes) trimmed on /dev/sda2</code></pre></div><p>Shouldn&#039;t it log something akin to this instead?</p><div class="codebox"><pre><code>/media/1TB/IMG: 109.2 GiB - TRIM command ignored on /dev/sda1
/media/1TB/TS: 159.1 GiB - TRIM command ignored on /dev/sda2</code></pre></div><p>No matter, does not seem to cause any issues. </p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 26 Nov 2025 00:23:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60109#p60109</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60073#p60073</link>
			<description><![CDATA[<p>it all depends on the specific hard drive, yours has a firmware scheme that accepts trim but ignores it, others may actively make use of the trim instruction but handle it differently at the firmware/hardware level</p>]]></description>
			<author><![CDATA[dummy@example.com (EDX-0)]]></author>
			<pubDate>Tue, 25 Nov 2025 14:58:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60073#p60073</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60072#p60072</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>g4sra wrote:</cite><blockquote><div><div class="codebox"><pre><code>sudo smartctl -i /dev/sda | grep Rotation</code></pre></div></div></blockquote></div><p>Right ...</p><div class="codebox"><pre><code># smartctl -i /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.0-41-amd64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue Mobile (SMR)
Device Model:     WDC WD10SPZX-80Z10T2
Serial Number:    WD-WXD2A70DDH3S
LU WWN Device Id: 5 0014ee 212db172a
Firmware Version: 04.01A04
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm                                 ##### &lt;--- HDD / spinning rust
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic                 ##### &lt;--- accepts TRIM 
Device is:        In smartctl database 7.3/5319
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Nov 25 10:25:51 2025 -03
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
# </code></pre></div><p>My question was more than anything oriented to the utility of <span class="bbc">fstrim</span> on <em>spinning rust</em>.<br />I have read on the web that, while it does no harm, it is also useless.</p><p><span class="bbu">Edit:</span><br />It seems that while the firmware actually <em>accepts</em> the <span class="bbc">TRIM</span> command, it is ignored.</p><div class="quotebox"><cite>1A blurb on the web about the WDC WD10SPZX wrote:</cite><blockquote><div><p>---<br />TRIM is supported, but not actively used: The drive&#039;s specifications indicate that clearing unused data (TRIM) is &quot;supported&quot; as part of its general ATA command set (ACS-3). However, TRIM is primarily an optimization feature for SSDs, where it helps manage data blocks to maintain write performance and longevity.</p><p>HDD operation: As a traditional HDD with spinning platters and magnetic storage, the WD10SPZX manages data internally through standard garbage collection and wear-leveling algorithms specific to mechanical drives. The TRIM command, while technically part of the command set, does no have the same functional effect as it does on flash-based storage (SSDs).<br />---</p></div></blockquote></div><p>I guess that if <span class="bbc">fstrim</span> is ignored by the HDD firmware (and does nothing in spite of reporting to the log file), I could leave things as they are.</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 25 Nov 2025 14:02:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60072#p60072</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60070#p60070</link>
			<description><![CDATA[<div class="codebox"><pre><code>sudo smartctl -i /dev/sda | grep Rotation</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (g4sra)]]></author>
			<pubDate>Tue, 25 Nov 2025 13:17:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60070#p60070</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] fstrim and HDDs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60065#p60065</link>
			<description><![CDATA[<p>Hello:</p><p>Ever since I put my system on a 2.5&quot; 120Gb SSD, I set up <span class="bbc">fstrim</span> as per the instructions I found on-line:</p><div class="codebox"><pre><code>$ ls -1 /etc/cron.weekly
--- snip ---
dev-fstrim
--- snip ---
$ </code></pre></div><div class="codebox"><pre><code>$ cat /etc/cron.weekly/dev-fstrim
#!/bin/sh
# trim all mounted file systems which support it
# added 20200315
#
# PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
LOG=/var/log/trim.log
echo &quot;On $(date -R):&quot; &gt;&gt; $LOG
/sbin/fstrim -a -v &gt;&gt; &quot;$LOG&quot; 2&gt;&amp;1
$ </code></pre></div><p>I then took to checking <span class="bbc">/var/log/trim.log</span> every so often to check that it was working and eventually stopped doing it.<br /><span class="bbc">fstrim</span> was doing it&#039;s thing and doing it well.<br />If anything went south, my MTA (<span class="bbu">not</span> Exim4, DMA*) would let me know.</p><p>Today I was looking through the logs and on opening <span class="bbc">/var/log/trim.log</span> I see that it is also working (?) on a 2.5&quot; 1Tb HDD that I set up inside my box to serve as the first repository of my weekly <span class="bbc">Clonezilla</span> and daily <span class="bbc">Timeshift</span> backups.</p><div class="codebox"><pre><code>$ cat /var/log/trim.log
--- snip ---
On Thu, 20 Nov 2025 02:11:33 -0300:
/media/1TB/IMG: 109.2 GiB (117271797760 bytes) trimmed on /dev/sda1
/media/1TB/TS: 159.1 GiB (170784149504 bytes) trimmed on /dev/sda2
/home: 27.2 GiB (29253963776 bytes) trimmed on /dev/sdb6
/var/log: 669.7 MiB (702242816 bytes) trimmed on /dev/sdb5
/: 27.4 GiB (29410951168 bytes) trimmed on /dev/sdb1
$</code></pre></div><p>This was something I was not expecting.<br />And I understand that <span class="bbc">fstrim</span> is not for use with HDDs, only for SDDs.</p><p>I recall adding the comments to the <span class="bbc">/etc/cron.weekly/dev-fstrim</span> so I would remember what it was doing and the bit &quot;<em># trim all mounted file systems which support it</em>&quot; stuck with me and I (incorrectly) assumed that <em>support it</em> meant that <span class="bbc">fstrim</span> would act <span class="bbu">only</span> on SSDs.<br />Unfortunately I neglected to add the link to the source of the data.</p><p><span class="bbu">Q:</span><br />Should I leave things as they are or not?<br />If not, what to do?</p><p>Best,</p><p>A.</p><p>*<a href="https://news.ycombinator.com/item?id=33516918" rel="nofollow">Dragonfly Mail Agent</a>&#160; &lt;-- useful reading</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 25 Nov 2025 12:29:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60065#p60065</guid>
		</item>
	</channel>
</rss>
