<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Glump.net]]></title>
<link><![CDATA[https://glump.net]]></link>
<description><![CDATA[Comments]]></description>
<generator>Commentics</generator>
<item>
<title>Alexander</title>
<link><![CDATA[https://glump.net/howto/desktop/enable-trim-on-an-external-ssd-on-linux?cmtx_perm=65#cmtx_perm_65]]></link>
<description><![CDATA[I had the same problem with JMicron JMS576 adapter in Ubuntu 20.04.1, kernel 5.13.0-28-generic SMP x86_64.<br /><br />Manual procedure worked fine but udev rule produced strange result - non-zero value for DISC-MAX (correct) and zero value for DISC-GRAN (wrong):<br /><br />NAME   DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO<br />sda           0        0B       4G         0<br />└─sda1        0        0B       4G         0<br /><br />fstrim seemed to work in this case but kernel log was filled by messages &quot;Error: discard_granularity is 0&quot; Problem was fixed by updating udev rule (it is just workaround):<br /><br />ACTION==&quot;add|change&quot;, ATTRS{idVendor}==&quot;152d&quot;, ATTRS{idProduct}==&quot;0583&quot;, SUBSYSTEM==&quot;block&quot;, ATTR{../../scsi_disk/*/provisioning_mode}=&quot;unmap&quot;]]></description>
<pubDate>Mon, 18 Apr 2022 16:27:40 -0400</pubDate>
<guid isPermaLink="false">item_65</guid>
</item>
</channel>
</rss>