0

Does it work once a week or does it continually trim the system? I have seen answers for this but they refer to Ubuntu 14.04 but not to Ubuntu 15.04

Ervin Dine
  • 11
  • 3
  • there is weekly cron job but you need to enable no checking for device model. Ill link relevant post in a minute – Sergiy Kolodyazhnyy Sep 29 '15 at 13:33
  • [Here it is](http://askubuntu.com/a/443779/295286) – Sergiy Kolodyazhnyy Sep 29 '15 at 13:38
  • That was for Ubuntu 14.04. For Ubuntu 15.04 there is no model check needed or necessary. It just does not say though how often the check is done. – Ervin Dine Sep 30 '15 at 15:24
  • For Ubuntu 15.04 this is the output of the cron file. #!/bin/sh # trim all mounted file systems which support it /sbin/fstrim --all || true – Ervin Dine Sep 30 '15 at 15:24
  • @ErvinDine if it's a cron file, by virtue of being a cron file, it's known how often it runs. Where exactly is it located? – muru Sep 30 '15 at 15:41
  • @muru it is in weekly ;) and it is the same as in 14.04 and it is in 15.04. Though more models work out of the box. – Rinzwind Sep 30 '15 at 16:35
  • 1
    @ErvinDine still a dupe. The correct way is to add differnces for 15.04 to that answer ;) I myself have not seen any differences in usage between trim in 14.04 and 15.04 – Rinzwind Sep 30 '15 at 16:37

1 Answers1

0

fstrim has changed in Ubuntu 15.04 compared to previous version. fstrim-all --no-model-check is now called as fstrim --all. There is no more option to desiable model-check.

/etc/cron.weekly/fstrim does now contain:

#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true

So you don't need to change anything in Ubuntu 15.04 concerning TRIM

Raphael Roth
  • 111
  • 3
  • 1
    Ah, the change happened in the previous version (14.10), not in 15.04, as the dupe post says. – muru Dec 28 '15 at 06:58