Linux Lite Forums

Hardware - Support => Hard Drives and SSD's => Topic started by: GAULOISES on June 08, 2020, 03:29:53 AM

Title: Enabling TRIM on My SSD Is this Correct ?
Post by: GAULOISES on June 08, 2020, 03:29:53 AM
Code: [Select]
~ $ systemctl list-timers -a
NEXT                          LEFT        LAST                          PASSED       U
Mon 2020-06-08 10:00:36 CEST  37min left  Mon 2020-06-08 09:02:48 CEST  20min ago    a
Mon 2020-06-08 18:14:53 CEST  8h left     Mon 2020-06-08 06:31:12 CEST  2h 52min ago a
Tue 2020-06-09 06:03:44 CEST  20h left    Mon 2020-06-08 06:23:59 CEST  2h 59min ago a
Tue 2020-06-09 07:05:54 CEST  21h left    Mon 2020-06-08 07:05:54 CEST  2h 17min ago s
Mon 2020-06-15 00:00:00 CEST  6 days left Mon 2020-06-08 00:00:47 CEST  9h ago       f
n/a                           n/a         n/a                           n/a          m
n/a                           n/a         n/a                           n/a          s
n/a                           n/a         Mon 2020-06-08 06:51:42 CEST  2h 31min ago u

8 timers listed.
lines 1-11/11 (END)...skipping...
NEXT                          LEFT        LAST                          PASSED       UNIT                         ACTIVATES
Mon 2020-06-08 10:00:36 CEST  37min left  Mon 2020-06-08 09:02:48 CEST  20min ago    anacron.timer                anacron.service
Mon 2020-06-08 18:14:53 CEST  8h left     Mon 2020-06-08 06:31:12 CEST  2h 52min ago apt-daily.timer              apt-daily.service
Tue 2020-06-09 06:03:44 CEST  20h left    Mon 2020-06-08 06:23:59 CEST  2h 59min ago apt-daily-upgrade.timer      apt-daily-upgrade.service
Tue 2020-06-09 07:05:54 CEST  21h left    Mon 2020-06-08 07:05:54 CEST  2h 17min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Mon 2020-06-15 00:00:00 CEST  6 days left Mon 2020-06-08 00:00:47 CEST  9h ago       fstrim.timer                 fstrim.service
n/a                           n/a         n/a                           n/a          motd-news.timer             
n/a                           n/a         n/a                           n/a          snapd.snap-repair.timer      snapd.snap-repair.service
n/a                           n/a         Mon 2020-06-08 06:51:42 CEST  2h 31min ago ureadahead-stop.timer        ureadahead-stop.service

8 timers listed.
Title: Re: Enabling TRIM on My SSD Is this Correct ?
Post by: GAULOISES on June 08, 2020, 03:34:01 AM
i used this command                  ////                   systemctl list-timers -a

I would like to know if this ssd  looks correct ?

thank u
Title: Re: Enabling TRIM on My SSD Is this Correct ?
Post by: Jerry on June 08, 2020, 05:43:51 AM
There's no need to set Trim in Series 4 or 5, it is already enabled. Please use normal fonts and formatting in your posts. Thanks.
Title: Re: Enabling TRIM on My SSD Is this Correct ?
Post by: johnausten13 on June 28, 2020, 02:58:32 AM
I optimized my TRIM Method from WEEKLY to DAILY job. The default TRIM in LL5 is WEEKLY but I think it is too long to recover some disk space to be useful again. I made some tweaks to change my TRIM to DAILY. But before that, check your TRIM timer first by copy-pasting this code to the Terminal:

Code: [Select]
systemctl cat fstrim.timer
Output is somewhat like this for the weekly job:

Code: [Select]
# /lib/systemd/system/fstrim.timer
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim
ConditionVirtualization=!container

[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true

[Install]
WantedBy=timers.target