Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Trim SSD

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

[Solved] Trim SSD

#1 Post by Hallvor »

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.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Trim SSD

#2 Post by Head_on_a_Stick »

Code: Select all

# systemctl start fstrim.timer
Or you could have used this command origianlly:

Code: Select all

# systemctl enable fstrim.timer --now
deadbang

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Trim SSD

#3 Post by Hallvor »

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! :)
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Post Reply