util-linux 软件包已经为 systemd 提供了 fstrim.service 和 fstrim.timer,启用 fstrim.timer 就可以使用:

1
sudo systemctl enable fstrim.timer

默认每周运行一次。

下篇见!