How do I enable periodic TRIM on MX Linux?

Post Reply
Message
Author
User avatar
gbhollr
Posts: 104
Joined: Wed Mar 13, 2019 1:18 pm

How do I enable periodic TRIM on MX Linux?

#1 Post by gbhollr »

Right now, I'm configuring my own copy of MX Linux on a virtual machine to make a live ISO to install into my computer.
Since I'm using an SSD, I gotta know how to enable periodic TRIM but I see its a little more tricky to do than on a systemd-driven distro.

MX Linux already has util-linux installed so I'm lost over what to do next.
Thanks.

User avatar
richb
Administrator
Posts: 10343
Joined: Wed Jul 12, 2006 2:17 pm

Re: How do I enable periodic TRIM on MX Linux?

#2 Post by richb »

Trim is already enabled to execute once per week. The log is in /etc/var/log/trim.log to view when it was executed.
Correction: the log is in /var/log/trim.log
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
chrispop99
Global Moderator
Posts: 3179
Joined: Tue Jan 27, 2009 3:07 pm

Re: How do I enable periodic TRIM on MX Linux?

#3 Post by chrispop99 »

Just to add, Alt-F1 for the manual, Ctrl-F to search for 'trim', would have gotten you the information you wanted.

Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines

User avatar
fehlix
Developer
Posts: 10375
Joined: Wed Apr 11, 2018 5:09 pm

Re: How do I enable periodic TRIM on MX Linux?

#4 Post by fehlix »

And in case you want check something was trimmed weekly,
have a look here:

Code: Select all

$ tail /var/log/trim.log 
/: 25.6 GiB (27494445056 bytes) trimmed
*** Thu, 28 Mar 2019 12:58:24 +0100 ***
/mnt/ssd_data: 77.1 GiB (82802745344 bytes) trimmed
/: 16.3 GiB (17455443968 bytes) trimmed
*** Thu, 04 Apr 2019 11:20:33 +0200 ***
/mnt/ssd_data: 77.1 GiB (82755313664 bytes) trimmed
/: 16.8 GiB (18007142400 bytes) trimmed
*** Thu, 11 Apr 2019 11:11:49 +0200 ***
/mnt/ssd_data: 77.1 GiB (82740334592 bytes) trimmed
/: 21.1 GiB (22642679808 bytes) trimmed
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Jerry3904
Administrator
Posts: 21941
Joined: Wed Jul 19, 2006 6:13 am

Re: How do I enable periodic TRIM on MX Linux?

#5 Post by Jerry3904 »

This thread made me realize there is no Wiki entry on "Trim" so I created a start to fill out later.

https://mxlinux.org/wiki/hardware/trim/

If anyone wants to jump in with text for the empty sections, just put it in the Comment space below. TIA.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “Software / Configuration”