smurphos wrote: ⤴Sun May 19, 2019 2:26 am
I think there may be some versioning related confusion going on in this thread....
Out of the box Mint 18.x use anacron via a script in /etc/cron.weekly/fstrim to manage it's automated weekly trim
Mint 19.x doesn't have this file and uses a systemd timed service instead.
Smurphos, many thanks for clearing that up !!! I must admit, I was a bit confused and concerned over the initial absence of the
fstrim file.
Nevertheless, despite adding the
fstrim file as per HaveaMint, the weekly report on my desktop did not appear on my desktop. I implemented HaveaMint's code in the
fstrim file on 10th May, as I mentioned above, but did not receive the report as expected on 13th May, as shown in the code below. Any ideas?
Code: Select all
journalctl | grep fstrim
May 06 09:34:05 peter-Lenovo-ideapad-330-17ICH fstrim[1088]: /: 18,8 GiB (20199182336 bytes) trimmed
May 10 10:34:51 peter-Lenovo-ideapad-330-17ICH sudo[13913]: peter : TTY=pts/0 ; PWD=/home/peter/Documents ; USER=root ; COMMAND=/bin/cp fstrim /etc/cron.weekly/
May 10 20:19:27 peter-Lenovo-ideapad-330-17ICH audit[23404]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/peter/Documents/fstrim" pid=23404 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
May 10 20:19:27 peter-Lenovo-ideapad-330-17ICH kernel: audit: type=1400 audit(1557508767.543:265): apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/peter/Documents/fstrim" pid=23404 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
May 10 20:19:27 peter-Lenovo-ideapad-330-17ICH kernel: audit: type=1400 audit(1557508767.543:266): apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/peter/Documents/fstrim" pid=23404 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
May 10 20:19:27 peter-Lenovo-ideapad-330-17ICH audit[23404]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/peter/Documents/fstrim" pid=23404 comm="pool" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
May 13 06:36:10 peter-Lenovo-ideapad-330-17ICH fstrim[1127]: /: 18,6 GiB (19953541120 bytes) trimmed