Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

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.

share|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)

#!/bin/sh
# 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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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