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

Chat about just about anything else
redlined
Level 5
Level 5
Posts: 637
Joined: Wed Jun 06, 2018 8:12 pm
Location: Mile High, Green State! (Denver, CO;)

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:
LM19.1 Cinnamon4.0.9 kernel4.15.0-43-generic x86_64
HP15 Laptop: 2Ghz Celeron quad core, 1TB 860 Evo SSD, 8GB Timetec RAM

My go to sites, besides this forum:
(start here! - EasyLinuxTips project then go Learn Linux-fu!

DAMIEN1307
Level 6
Level 6
Posts: 1374
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 4
Level 4
Posts: 367
Joined: Sat Jul 21, 2018 11:14 am

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”