Verify that your device supports this operation with:
Code: Select all
lsblk -D
Whilst it is possible to apply TRIM with the discard filesystem option in /etc/fstab, this can cause a performance degradation because the blocks are discarded with every deletion:
https://patrick-nagel.net/blog/archives/337
https://kparal.wordpress.com/2013/05/10 ... l-525-ssd/
Also, with discard enabled, any deleted data is lost completely and instantly and so recovery utilities such as extundelete will not work.
The recommended alternative to this is to apply TRIM periodically using the `fstrim` command.
In Debian systems, there is a systemd .timer unit that can be enabled with:
Code: Select all
# cp /usr/share/doc/util-linux/examples/fstrim.{timer,service} /etc/systemd/system
# systemctl enable fstrim.timer
To check the status of the .timer, use:
Code: Select all
systemctl list-timers
Code: Select all
# journalctl -u fstrim.timer