Trim on my SSD Hardisk

I have used this commands.
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer

And got this output

[carl@andersen ~]$ sudo systemctl start fstrim.timer
[sudo] adgangskode for carl:
[carl@andersen ~]$ systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled; vendor pres>
Active: active (waiting) since Sun 2021-03-07 14:59:50 CET; 2min 39s ago
Trigger: Mon 2021-03-08 00:55:14 CET; 9h left
Triggers: ● fstrim.service
Docs: man:fstrim

mar 07 14:59:50 andersen systemd[1]: Started Discard unused blocks once a week.
lines 1-8/8 (END)…skipping…
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled; vendor preset: disabled)
Active: active (waiting) since Sun 2021-03-07 14:59:50 CET; 2min 39s ago
Trigger: Mon 2021-03-08 00:55:14 CET; 9h left
Triggers: ● fstrim.service
Docs: man:fstrim

mar 07 14:59:50 andersen systemd[1]: Started Discard unused blocks once a week.

Will it then start every Sunday at 07 14:59:50
or Mon 2021-03-08 00:55:14 CET???

systemctl list-timers

This will inform you of the state for the currently activated timers - including when they where last run and the count down until next run.

Clarifying:

Timers which missed their timed property will be run at next available time slot - it they missed at time-slot they will be run at next system activation

Mon 2021-03-08 00:55:14 CET 9h left n/a n/a fstrim.timer fstrim.service

I’m not interested in getting up at night :sleepy:, so how can I change the time to 12:00 in the middle of the day

Don’t worry, the SSD will be trimmed the next morning.

2 Likes

Such timer has the Persistent=true option, so will be executed when you reboot or relogin (eg on resume after suspension) in your session.

3 Likes

Thanks

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.