Steps to add a daily SSD TRIM task to your Ubuntu system (tested with 12.04+) which will run via anacron
with logging of the trim process to /var/log/fstrimall.log
.
Note: if you have previously enabled TRIM support for your mounted drive(s) using the discard
option within /etc/fstab
you will want to remove this option and re-mount your drives first ($ mount -a
).
-
Install scripts
$ sudo wget \
https://gist.github.com/magnetikonline/8190599/raw/fstrimall.sh \