Announcement

Collapse
No announcement yet.

fstrim service skips /home

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] fstrim service skips /home

    On Focal Fossa when the fstrim.timer goes off on Monday morning (first boot after midnight) the 'fstrim' command does not 'trim' /home .
    I think this may be do to the directive "ProtectHome" being set to "yes" in the "fstrim.service" file . I'll find out in 1 week . If you have your /home on a ssd you might want to 'trim' it manually .

    root@linux-desktop:/usr# grep trim /var/log/syslog
    May 11 05:57:39 linux-desktop fstrim[1158]: /boot/efi: 449.6 MiB (471474176 bytes) trimmed on /dev/nvme0n1p1
    May 11 05:57:39 linux-desktop fstrim[1158]: /: 37.8 GiB (40555507712 bytes) trimmed on /dev/nvme0n1p3
    May 11 05:57:39 linux-desktop systemd[1]: fstrim.service: Succeeded.

    I looked at a backup of 18.04 and "ProtectHome" was set to "read-only" so thats probably the issue .
    Last edited by evinrude; May 11, 2020, 05:43 AM. Reason: More Info

    #2
    Yes, that's the issue. Simply set your 20.04 ProtectHome to read-only and you should see /home getting "trimmed"

    Please Read Me

    Comment


      #3
      https://bugs.launchpad.net/ubuntu/+s...x/+bug/1858152
      Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
      Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

      get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
      install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

      Comment


        #4
        Good find!

        Please Read Me

        Comment

        Working...
        X