SSD Trim

Questions about hardware and drivers
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Harfud
Level 2
Level 2
Posts: 90
Joined: Tue Dec 05, 2017 3:38 pm

SSD Trim

Post by Harfud »

What's the default with SSD Trim in LMDE3 ?

It's possible to set trim as a weekly task but it likely won't defer to run later if the PC is off when it's scheduled.

Does anybody use a better method ?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: SSD Trim

Post by catweazel »

Harfud wrote: Sun Nov 04, 2018 6:41 am What's the default with SSD Trim in LMDE3 ?

It's possible to set trim as a weekly task but it likely won't defer to run later if the PC is off when it's scheduled.

Does anybody use a better method ?
There is absolutely no harm in running it daily.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Nuts2u
Level 3
Level 3
Posts: 129
Joined: Sun Nov 27, 2011 8:44 pm

Re: SSD Trim

Post by Nuts2u »

I have my SSD Trim set to run weekly using scripts in systemd.

Create the two following files:

name as fstrim.service:
[Unit]
Description=Discard unused blocks

[Service]
Type=oneshot
ExecStart=/sbin/fstrim -av


name as fstrim.timer
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim

[Timer]
OnBootSec=30min
OnCalendar=weekly
AccuracySec=1h
Persistent=true

[Install]
WantedBy=timers.target

After you create these named files, save them and then copy them to /etc/systemd/system

Here is a link with instructions if mine are confusing:
https://chromabits.com/posts/2016/07/30/fstrim-systemd/
Silence is golden. Duct tape is silver. Welcome to Hell. Here's your copy of Windows.
Harfud
Level 2
Level 2
Posts: 90
Joined: Tue Dec 05, 2017 3:38 pm

Re: SSD Trim

Post by Harfud »

I eventually decided that I'd run this manually from time to time sudo fstrim -a -v
Locked

Return to “Hardware Support”