<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://plnx.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=TRIM_Support</id>
	<title>TRIM Support - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://plnx.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=TRIM_Support"/>
	<link rel="alternate" type="text/html" href="https://plnx.nl/wiki/index.php?title=TRIM_Support&amp;action=history"/>
	<updated>2026-06-26T21:42:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://plnx.nl/wiki/index.php?title=TRIM_Support&amp;diff=24&amp;oldid=prev</id>
		<title>Pverha10: /* ext4 */</title>
		<link rel="alternate" type="text/html" href="https://plnx.nl/wiki/index.php?title=TRIM_Support&amp;diff=24&amp;oldid=prev"/>
		<updated>2026-05-21T13:07:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ext4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:07, 21 May 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/somewhere: 3 GiB (3267461120 bytes) trimmed&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/somewhere: 3 GiB (3267461120 bytes) trimmed&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To check if your block device actually has trim support check the DISC-GRAN and DISC-MAX columns of the following command.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; lsblk -o NAME,SIZE,DISC-ALN,DISC-GRAN,DISC-MAX&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=ntfs on windows=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=ntfs on windows=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pverha10</name></author>
	</entry>
	<entry>
		<id>https://plnx.nl/wiki/index.php?title=TRIM_Support&amp;diff=10&amp;oldid=prev</id>
		<title>Pverha10: Created page with &quot;=ext4= TRIM support is available on ext4. It is activated by adding discard to the list of mount options. So in /etc/fstab it says something like: &lt;pre&gt; /dev/sdx1        /somewhere               ext4        defaults,discard         1   1 &lt;/pre&gt; You can also discard the unused blocks manually by using: &lt;pre&gt; fstrim -v /somewhere &lt;/pre&gt; The resulting amount of space trimmed may not be the same as the actual space freed on the disk. It is safe to repeat this, for example in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://plnx.nl/wiki/index.php?title=TRIM_Support&amp;diff=10&amp;oldid=prev"/>
		<updated>2025-05-17T07:40:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=ext4= TRIM support is available on ext4. It is activated by adding discard to the list of mount options. So in /etc/fstab it says something like: &amp;lt;pre&amp;gt; /dev/sdx1        /somewhere               ext4        defaults,discard         1   1 &amp;lt;/pre&amp;gt; You can also discard the unused blocks manually by using: &amp;lt;pre&amp;gt; fstrim -v /somewhere &amp;lt;/pre&amp;gt; The resulting amount of space trimmed may not be the same as the actual space freed on the disk. It is safe to repeat this, for example in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=ext4=&lt;br /&gt;
TRIM support is available on ext4. It is activated by adding discard to the list of mount options. So in /etc/fstab it says something like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/dev/sdx1        /somewhere               ext4        defaults,discard         1   1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also discard the unused blocks manually by using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fstrim -v /somewhere&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulting amount of space trimmed may not be the same as the actual space freed on the disk. It is safe to repeat this, for example in a cronjob.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/somewhere: 3 GiB (3267461120 bytes) trimmed&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=ntfs on windows=&lt;br /&gt;
TRIM support is available on ntfs and refs. You can check if it&amp;#039;s active by using the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fsutil behavior query disabledeletenotify&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The response will be like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NTFS DisableDeleteNotify = 0  (Disabled)&lt;br /&gt;
ReFS DisableDeleteNotify = 0  (Disabled)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A value of 0 means that it&amp;#039;s not disabled, so that TRIM support is active.&lt;br /&gt;
&lt;br /&gt;
You can manually trim a drive from PowerShell with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Optimize-Volume -DriveLetter C -ReTrim -Verbose&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pverha10</name></author>
	</entry>
</feed>