Page 1 of 1

How do I enable periodic TRIM on MX Linux?

Posted: Thu Apr 11, 2019 12:42 pm
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.

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

Posted: Thu Apr 11, 2019 12:48 pm
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

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

Posted: Thu Apr 11, 2019 1:14 pm
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

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

Posted: Thu Apr 11, 2019 3:23 pm
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

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

Posted: Thu Apr 11, 2019 3:59 pm
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.