If you don’t know, ask – if you know, share! ~ opensource mindset
by Marco Bravo
A new systemd service to make your life easier.
Opensource.com’s Don Watkins first wrote about TRIM in his 2017 article “Solid-state drives in Linux: Enabling TRIM for SSDs.”
A new TRIM service
A systemd service for TRIM exists. Fedora introduced this into their distribution in version 30, and, although it is not enabled by default in versions 30 and 31, it is planned to be in version 32. If you’re working on Fedora Workstation 31 and you want to begin using this feature, you can enable it very easily. I’ll also show you how to test it below. This service is not unique to Fedora. The existence and status will depend on an individual distribution basis.
This service seems like the best way to run TRIM on your drives. It is much simpler than having to create your own crontab entry to call the fstrim command. It is also safer not having to edit the fstab file. It has been interesting to watch the evolution of solid-state storage technology and nice to know that it appears Linux is moving toward a standard and safe way to implement it.
tags: ssd - drive - fstrim - fedora