From 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Sun, 12 Jul 2026 11:08:50 +0200 Subject: update --- articles/2023/periodic-fstrim-on-ssd-drives.html | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 articles/2023/periodic-fstrim-on-ssd-drives.html (limited to 'articles/2023/periodic-fstrim-on-ssd-drives.html') diff --git a/articles/2023/periodic-fstrim-on-ssd-drives.html b/articles/2023/periodic-fstrim-on-ssd-drives.html new file mode 100755 index 0000000..5e22772 --- /dev/null +++ b/articles/2023/periodic-fstrim-on-ssd-drives.html @@ -0,0 +1,40 @@ + + + + + + + Bloggings + + +
+

Bloggings

+ Back + +
+ +
+
+

Periodic fstrim on SSD drives

+

05-11-2023

+

+The util-linux package provides fstrim.service and fstrim.timer systemd unit files. +

+Enabling the timer will activate the service weekly. The service executes fstrim(8) on all mounted filesystems on devices that support the discard operation. +

+The timer relies on the timestamp of /var/lib/systemd/timers/stamp-fstrim.timer (which it will create upon first invocation) to know whether a week has elapsed since it last ran. +

+Therefore there is no need to worry about too frequent invocations, in an anacron-like fashion. systemctl enable fstrim.timer +

+To query the units activity and status, see journalctl. +

+To change the periodicity of the timer or the command run, edit the provided unit files. +

+https://wiki.archlinux.org/title/Solid_state_drive + + +
+
+ + -- cgit v1.3.1