• trim for ssd

    Hello i read on the wiki that to optimize the ssd drive i need a periodic TRIM (its better then continuous TRIM) so I deleted the “discard” entries in the / etc / fstab file and followed the wiki i use fstrim.timer services

    sudo systemctl enable fstrim.timer
    sudo systemctl start fstrim.timer

    Did I do everything correctly? Where can I check if the trim actually does it automatically?

    I’m asking because I’m doing it for the first time and on the internet I’ve already found various tips on trim including ready simple scripts added to cron

  • First check if your SSD supports TRIM:

    lsblk -D

    DISC-GRAN and DISC-MAX needs to show “Numbers”

    When you are using the systemd service no cron or skript is nessesary…
    To see if the service is running you can check if this file exist:
    cat /var/lib/systemd/timers/stamp-fstrim.timer

    or check the service:

    systemctl status fstrim.timer

    should give you this:

    ● fstrim.timer - Discard unused blocks once a week
       Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled; vendor preset: disabled)
       Active: active (waiting) since Sun 2017-04-23 11:10:04 CEST; 1min 18s ago
         Docs: man:fstrim
    Apr 23 11:10:04 empowered64 systemd[1]: Started Discard unused blocks once a week.
ssd30 trim5 Posts 2Views 1745
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.