greerd wrote:
If you look in /etc/cron.weekly/ you should see a file called fstrim. The file contains the command '/sbin/fstrim --all || true' which should trim all mounted file systems that support it. If you feel a weekly run isn't often enough, you could move the file into the /etc/cron.daily/ directory. (which is what I did).
Hi greerd!
Thanx a lot for the input, but..
Code: Select all
zmpit cron.weekly # find / -name fstrim*
/sbin/fstrim
/usr/share/bash-completion/completions/fstrim
/usr/share/man/man8/fstrim.8.gz
/usr/share/doc/util-linux/examples/fstrim.timer
/usr/share/doc/util-linux/examples/fstrim.service
zmpit cron.weekly #
So, after a bit of googling I came to the conclusion that what you are describing is the case in ubuntu distros (I am running LMDE2).
The "debian way" (which is the case for LMDE2) must be following:
Code: Select all
zmpit cron.weekly # cp /usr/share/doc/util-linux/examples/fstrim.service /etc/systemd/system
zmpit cron.weekly # cp /usr/share/doc/util-linux/examples/fstrim.timer /etc/systemd/system
zmpit cron.weekly # systemctl enable fstrim.timer
Created symlink from /etc/systemd/system/multi-user.target.wants/fstrim.timer to /etc/systemd/system/fstrim.timer.
zmpit cron.weekly #
So I suppose the job is done, right?