[Tutorials] How to enable TRIM on DEEPIN 20.2.2
Tofloor
poster avatar
lgv91
deepin
2021-07-24 04:55
Author

I check TRIM how it work and current status:

$ sudo systemctl status fstrim.timer

TRIM not work:

● fstrim.timer - Discard unused blocks once a week
   Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
   Active: inactive (dead)
  Trigger: n/a
     Docs: man:fstrim

So how i enable the service for My  SSD nvme hard drive

Thank!

Reply Favorite View the author
All Replies
rekees2020
deepin
2021-07-24 06:27
#1

Enable it by running the following command:

sudo systemctl enable fstrim.timer

 

By detault, TRIM occurs on a weekly basis.

If you wanna change that, go to the latter of the two paths in the message returned by the above command, and open fstrim.timer there as text. Then, change "weekly" to what you desire.  I'm not sure what values are valid, though "daily" surely works.

Reply View the author
lgv91
deepin
2021-07-25 02:58
#2

Thank but how i know it work?

Reply View the author
rekees2020
deepin
2021-07-25 05:51
#3
lgv91

Thank but how i know it work?

Run sudo systemctl status fstrim.timer

Reply View the author
lgv91
deepin
2021-07-25 06:24
#4
rekees2020

Run sudo systemctl status fstrim.timer

Thank You so much, it's working!

Reply View the author
rekees2020
deepin
2021-07-25 19:25
#5
lgv91

Thank You so much, it's working!

My pleasure.

Reply View the author