[Solved] Trim SSD

If none of the more specific forums is the right place to ask

[Solved] Trim SSD

Postby Hallvor » 2018-04-16 16:15

I got myself a brand new SSD for my computer, and thought I'd set up trim.

After having read a little online, I decided to try the following:
Code: Select all
# cp /usr/share/doc/util-linux/examples/fstrim.{service,timer} /etc/systemd/system


And

Code: Select all
# systemctl enable fstrim.timer


However, when I try to list it, the output is this:
Code: Select all
hallvor@debian-hp:~$ systemctl list-timers fstrim.timer --all
NEXT LEFT LAST PASSED UNIT         ACTIVATES
n/a  n/a  n/a  n/a    fstrim.timer fstrim.service


It basically doesn't say that much.

Is there some way I can tell of it is working, except waiting for a week?
Last edited by Hallvor on 2018-04-16 20:00, edited 1 time in total.
HP Elitebook 2570p, Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 843
Joined: 2009-04-16 18:35
Location: Norway

Re: Trim SSD

Postby Head_on_a_Stick » 2018-04-16 19:46

Code: Select all
# systemctl start fstrim.timer

Or you could have used this command origianlly:
Code: Select all
# systemctl enable fstrim.timer --now
User avatar
Head_on_a_Stick
 
Posts: 8004
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trim SSD

Postby Hallvor » 2018-04-16 19:59

Head_on_a_Stick wrote:
Code: Select all
# systemctl start fstrim.timer

Or you could have used this command origianlly:
Code: Select all
# systemctl enable fstrim.timer --now


Why didn't I think of that? :lol:

Code: Select all
root@debian-hp:/home/hallvor# systemctl start fstrim.timer
root@debian-hp:/home/hallvor# systemctl list-timers fstrim.timer
NEXT                          LEFT        LAST PASSED UNIT         ACTIVATES
Mon 2018-04-23 00:00:00 CEST  6 days left n/a  n/a    fstrim.timer fstrim.service


Well, it should work now. Marking thread as solved. Thank you very much! :)
HP Elitebook 2570p, Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 843
Joined: 2009-04-16 18:35
Location: Norway


Return to General Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable