Is there a reason why SSD TRIM isn't enabled by default?

Discussion in 'Discussions' started by ramarromarrone, Sep 21, 2023.

Tags:
  1. ramarromarrone

    ramarromarrone Thread Starter
    Expand Collapse
    New Member

    Joined:
    Sep 21, 2023
    Messages:
    1
    Likes Received:
    0
    Is there a reason why SSD TRIM isn't enabled by default?

    I've had elementaryOS installed for many months and I've just discovered this.
    I did it manually with fstrim and it trimmed like 200GB.

    A modern OS should have TRIM enabled by default and scheduled, most people don't know about this very much needed thing for SSDs.
     
  2. henry7654

    henry7654
    Expand Collapse
    New Member

    Joined:
    Aug 8, 2024
    Messages:
    3
    Likes Received:
    0
    SSD TRIM support might not be enabled by default in some Linux distributions, including elementary OS, due to various factors such as the diversity of storage hardware and concerns about compatibility and performance. However, most modern Linux distributions including recent versions of elementary OS usually have periodic TRIM enabled through the `fstrim.timer` service. It's possible that in your case, this wasn't enabled automatically due to a specific setup or upgrade path. You can manually ensure it's active by enabling and starting the fstrim timer with:

    ```bash
    sudo systemctl enable fstrim.timer
    sudo systemctl start fstrim.timer
    ```

    This schedules regular TRIM operations, helping maintain SSD performance and longevity.
     

Share This Page

Loading...