I had added that to my /etc/rc.local&nbsp; <br><br>At a command prompt sudo gedit /etc/rc.local&nbsp; at the end of the file add the command.&nbsp; Every time the computer boot, the command is ran as root.&nbsp; <br><br><div class="gmail_quote">
On Fri, Apr 11, 2008 at 2:34 PM, Leif Gregory &lt;<a href="mailto:ldgregory69@gmail.com">ldgregory69@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>
<br>
My name is Leif and I guess I&#39;ll be the FNG till the next person subs.<br>
I&#39;m relatively new to Linux. Played off and on over the years with<br>
Debian, Red Hat, Mandrake and a couple others pretty much in dual boot<br>
environments. Shortly after installing Breezy Badger, I decided to make<br>
the head on plunge and wiped Windows from all the home machines.<br>
Haven&#39;t looked back since.<br>
<br>
I&#39;m a geek and love getting dirty tweaking things, but I still consider<br>
myself a n00b in Linux.<br>
<br>
So, to start the party off right, I figured I&#39;d throw out a question<br>
I&#39;ve been unable to find an answer to.<br>
<br>
To prevent my laptop hard drive from going to an early grave, I&#39;ve been<br>
using hdparm to set the Advance Power Management settings to 254 in<br>
order to reduce the number of load/unload cycles.<br>
<br>
i.e. hdparm -B 254 /dev/sda<br>
<br>
hdparm requires su privileges and so I was doing this manually at<br>
first. Sometimes I&#39;d forget. So then I made a quicky script and threw<br>
that into sessions with gksudo so when I log in, I get the password<br>
prompt and it runs and all is good.<br>
<br>
The downside is that one, it&#39;s annoying, and two, I have to log<br>
in so that it runs. I&#39;d like to set it up so that the script runs<br>
during boot before login and does so with su privileges where I don&#39;t<br>
have to type in a password for it.<br>
<br>
I&#39;ve googled all over and either I just am not getting the search terms<br>
correct, or it&#39;s not something people do often enough to take the time<br>
to write about.<br>
<br>
I tried messing with sudoers so that my user account could run hdparm<br>
without a password, but never could get it working. If I can&#39;t do the<br>
boot thing, then I&#39;ll go back to that and see if you all can help.<br>
<br>
Any ideas? Appreciate the help.<br>
<br>
--<br>
Leif Gregory<br>
Power Wagon Registry: &nbsp;<a href="http://powerwagonregistry.org" target="_blank">http://powerwagonregistry.org</a><br>
Truck Hacks: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://trucks.PCWize.com" target="_blank">http://trucks.PCWize.com</a><br>
Geocaching: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://gps.PCWize.com" target="_blank">http://gps.PCWize.com</a><br>
PHP Tutorials and snippets: &nbsp; &nbsp;<a href="http://www.DevTek.org" target="_blank">http://www.DevTek.org</a><br>
<font color="#888888"><br>
--<br>
ubuntu-us-nm mailing list<br>
<a href="mailto:ubuntu-us-nm@lists.ubuntu.com">ubuntu-us-nm@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-nm" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-nm</a><br>
</font></blockquote></div><br>