SSD Trim

Questions about hardware and drivers
Forum rules
Before you post please read how to get help
Post Reply
Harfud
Level 2
Level 2
Posts: 57
Joined: Tue Dec 05, 2017 3:38 pm

SSD Trim

Post by Harfud » 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 ?

User avatar
catweazel
Level 17
Level 17
Posts: 7769
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: SSD Trim

Post by catweazel » Sun Nov 04, 2018 6:45 am

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.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

Nuts2u
Level 1
Level 1
Posts: 27
Joined: Sun Nov 27, 2011 8:44 pm

Re: SSD Trim

Post by Nuts2u » Sun Nov 04, 2018 3:05 pm

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: 57
Joined: Tue Dec 05, 2017 3:38 pm

Re: SSD Trim

Post by Harfud » Sat Nov 17, 2018 3:12 pm

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

Post Reply

Return to “Hardware Support”