<?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-05-03T12:44:14Z</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=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>