You are not logged in.

#1 2017-11-04 08:08

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,384

Automate trimming your SSD

If you want to manage your SSD trimming automatically, one simple way is to copy the attached file into /etc/cron.daily - needs to be done using sudo or with a file manager with root access to /etc

/etc/cron.daily/fstrim-ssd

#!/bin/bash
#this script is applied to SSD drives for sustained long-term performance and wear-leveling

LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim --all --verbose >> $LOG


Attachments:
fstrim-ssd, Size: 192 B, Downloads: 1,234

Offline

#2 2017-12-27 22:30

tlmiller76
Member
From: AZ, USA
Registered: 2016-11-29
Posts: 462

Re: Automate trimming your SSD

I just use the discard mount option.  The SSD I have in my q4os box is an enterprise class, and is rated for something nuts at 1,747TB write life.  So I could fill it every day for several years and wouldn't reach the point where it's expected to fail.  Needless to say, write life doesn't concern me in the least.

Last edited by tlmiller76 (2017-12-27 22:30)


Q4OS Trinity machine - Lenovo ThinkPad L14 Gen3 AMD.  AMD Ryzen 7 Pro 5875U, 64GB LPDDR4, 1TB m.2 NVMe SSD, Vega 8 iGP, Qualcomm QCNFA765 Wifi 6E + BT 5.2, 14" 1920x1080 low-power 400-nit LCD.

Offline

#3 2017-12-27 23:14

crosscourt
Member
From: Wash DC
Registered: 2017-05-07
Posts: 2,217
Website

Re: Automate trimming your SSD

Same here tlmiller, write life isnt a concern in general for most SSDs any more.


Q4OS Aquarius 5.x KDE   Dell Inspiron 3670, Dell Latitude 5450

Offline

Board footer

Powered by FluxBB