I have enabled TRIM by adding discard option in /etc/fstab but even after removing it the effect is not going. How to disable it?


In 14.04 there is an automativ weekly trim. You can disable it with:
sudo rm /etc/cron.weekly/fstrim
But I wouldn't recommend totally disabling TRIM, this will slow your drive down with time.

| improve this answer | |

Disabling trim is very important for legacy servers that pre-date SATA. SSD's can be fitted for power, reliability as well as some speed increase by means of an IDE to SATA bridge or converter. Or a DOM package plugged directly into the MB.

Some of these hang on TRIM. Random writes to the SSD are 3-4 times faster than UDMA so TRIM does not matter, it has time to write twice.

My approach is to comment out /etc/cron.weekly/fstrim (c. Utopic or Trusty LTS)

# trim all mounted file systems which support it
# /sbin/fstrim --all || true

Of course this will also affect SATA SSD's on a PCI expansion card, but that's something else.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.