Subject: How to disable TRIM

I have enabled the TRIM option in SSDs by adding "discard" to the
/etc/fstab. But even after removing the "discard" the TRIM does not
appear to be disabled. This I can conclude from the write and read
speeds. How do I disable it?

Thanking You and Regards


2014-07-01 14:53:01

by Eric Sandeen

[permalink] [raw]
Subject: Re: How to disable TRIM

On 7/1/14, 12:41 AM, Rishabh Singh B.Tech., CSE, IIT-BHU, Varanasi (INDIA) wrote:
> I have enabled the TRIM option in SSDs by adding "discard" to the
> /etc/fstab.

Removing the discard option does indeed stop "real time" trim/discards
from being sent by the filesystem when blocks are freed.

> But even after removing the "discard" the TRIM does not
> appear to be disabled. This I can conclude from the write and read
> speeds. How do I disable it?

Your methodology for reaching your conclusion must be flawed. :)


(of course you remounted after changing fstab, right, and "discard"
no longer shows up in /proc/mounts for this filesystem?)

-Eric