Wiki Table of Contents



On traditional magnetic drives, deleted files are not completely removed from the disk at the time of deletion. This is why you can recover deleted files. Essentially, the filesystem just references the location of a file on the disk, and when a file is deleted, that reference is erased, allowing you to write new data over old data in these blank spaces. However, with SSDs, new data can only be written on completely new or erased cells of the drive. Because the space must be cleared prior to a write, if enough free space is not already available at the time a file is being written, it must be erased first. This can negatively affect performance. (Watkins 2017)

Automatic procedure

MX Linux uses by default an automatic clearing procedure by running the command “trim” on a weekly schedule. This command tells the SSD which blocks of data are no longer considered in use and can be wiped internally.


In order to check that the trim procedure is actually being carried out, press F4 (or open a terminal) and enter the following command:

$ tail /var/log/trim.log 


  • Watkins 2017:
  • Wikipedia:

3 thoughts on “Trim”

  1. This is what hapend for me?
    $ tail /var/log/trim.log
    *** Fri, 19 Jul 2019 17:47:18 +0430 ***
    /: 109.9 GiB (117956812800 bytes) trimmed
    *** Fri, 26 Jul 2019 11:59:28 +0430 ***
    /: 68 GiB (72952356864 bytes) trimmed
    *** Fri, 02 Aug 2019 21:01:47 +0430 ***
    /: 67.4 GiB (72325160960 bytes) trimmed


Leave a Comment

Do NOT follow this link or you will be banned from the site!