<semi-SOLVED> I am new to SSD drives...need guidance

Chat about just about anything else
redlined

Re: <semi-SOLVED> I am new to SSD drives...need guidance

Post by redlined » Mon Jan 14, 2019 1:30 pm

rene wrote:
Mon Jan 14, 2019 12:20 pm
I believe you may have at one point bumped into viewtopic.php?f=49&t=282032&hilit=override#p1555681 or similar and decided to experiment. Simply deleting the /etc/systemd/system/fstrim.timer directory or more specifically its contained override.conf should get properly rid of it.
Thank you rene, for clarifying as well maintaining interest in thread and helping sort it all out!

Indeed I had made the override and thread mentioned pointed me to the reminder:
https://easylinuxtipsproject.blogspot.c ... html#ID8.2

Code: Select all

anyuser@f023:~$ sudo rm -v /etc/systemd/system/fstrim.timer.d/override.conf
[sudo] password for anyuser:              
anyuser@f023:~$ sudo systemctl daemon-reload
anyuser@f023:~$ systemctl cat fstrim.timer
# /lib/systemd/system/fstrim.timer
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim

[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true

[Install]
WantedBy=timers.target
done and done! Weekly and automated is good enough for me striking a good balance between ensuring it is done periodically without having it done more often than is needed. more awesomesauce for my local commands cheatsheet :mrgreen:

DAMIEN1307
Level 7
Level 7
Posts: 1846
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: <semi-SOLVED> I am new to SSD drives...need guidance

Post by DAMIEN1307 » Tue Jan 15, 2019 3:47 pm

one quick question...is there any real difference in these 2 different manual fstrim command codes...the first one was provided here in the posts regarding this subject, the second one was provided in pjotrs easy linux blog, they both appear to work, i just want to know if one does anything different then the other...thanks in advance...DAMIEN

Code: Select all

sudo fstrim -av

Code: Select all

sudo fstrim -v /
ORDO AB CHAO

User avatar
philotux
Level 5
Level 5
Posts: 829
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: <semi-SOLVED> I am new to SSD drives...need guidance

Post by philotux » Tue Jan 15, 2019 4:28 pm

The first one will run on all the mounted partitions/filesystems that are supported, if there are some more than the /, like a separate home or data partitions etc.
The second one will run only on the / partition.

Post Reply

Return to “Open chat”