<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — [Fixed] fstrim service for SSD ?]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=60&amp;type=atom" />
	<updated>2018-07-18T15:10:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=60</id>
		<entry>
			<title type="html"><![CDATA[Re: [Fixed] fstrim service for SSD ?]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=485#p485" />
			<content type="html"><![CDATA[<p>Quick update :</p><p>The above script is now working with cronie service enabled.</p><p>EDIT : Script also works with full disk encryption, since I&#039;m using one LVM container, only trim on / is needed. PS : Don&#039;t forget to chmod+x the script</p>]]></content>
			<author>
				<name><![CDATA[aether]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=326</uri>
			</author>
			<updated>2018-07-18T15:10:52Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=485#p485</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[Fixed] fstrim service for SSD ?]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=195#p195" />
			<content type="html"><![CDATA[<p><strong>Fixed. cronie is working fine now.</strong></p><p>Hello,</p><p>On Parabola (&amp; systemd), I had the following service enabled :</p><p>fstrim.timer</p><p>Is there an equivalent for OpenRC ? Or has it to be written ?</p><p>Or what is the best way to run fstrim generally ?</p><p>My layout is as follow :</p><p>/dev/sda1 #boot<br />/dev/sda2 #swap<br />/dev/sda3 #root<br />/dev/sda4 #home</p><p>Right now, I have this script in /etc/cron.daily (with cronie service enabled) :<br /></p><div class="codebox"><pre><code>#!/bin/sh
LOG=/var/log/trim.log
echo &quot;*** $(date -R) ***&quot; &gt;&gt; $LOG
fstrim -v / &gt;&gt; $LOG
fstrim -v /home &gt;&gt; $LOG</code></pre></div><p>But the cron task is not executed. (My machine is on 15 hours / day) If the script is executed manually, it works though.</p><p>I also have an other machine with full disk encryption (LVM on LUKS), in this case, what would be the best way to run fstrim ?</p><p>Thanks for your help</p>]]></content>
			<author>
				<name><![CDATA[aether]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=326</uri>
			</author>
			<updated>2017-11-26T17:11:06Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=195#p195</id>
		</entry>
</feed>
