SuSE users, I have two hard drives of which the second one (hdb) is used as a backup unit, and as such it is used once a week or less. So, in order to save some heat and, above all, the noise I would like to spin down hdb a couple of minutes after booting. I used to do it by activating spindown in the BIOS on my old machine, but my new motherboard has ACPI instead. When I installed SuSE 8.2 Pro the installation process got stuck when it came to examine the floppy during "Hardware..."-something, and the only way I could install was with the ACPI option disabled. I've tried to set the THROTTLED_DISK_TIME_OUT in YaST but it doesn't seem to work, neither the ACPI-deamon (it won't start no matter which modules I choose to load or not to load). I guess the simplest way of accomplishing what I want is to do 'hdparm -S 90 /dev/hdb' but it would be nice not having to do it manually at every boot. Is it possible to specify a kind of cron job that takes care of it? Or can I edit some hard drive parameters somewhere and add 'hdparm -S 90 /dev/hdb' to them? I've looked everywhere in the KDE-menues and YaST for some kind of program or editor where I can edit some kind of hard drive parameters but I'm not sure what I'm looking for and I haven't found any matching programs. Thank you for any ideas, directions or help. /Lars
On Wednesday 21 May 2003 17:06, Lars Norén wrote:
SuSE users,
I guess the simplest way of accomplishing what I want is to do 'hdparm -S 90 /dev/hdb' but it would be nice not having to do it manually at every boot. Is it possible to specify a kind of cron job that takes care of it? Or can I edit some hard drive parameters somewhere and add 'hdparm -S 90 /dev/hdb' to them?
Thank you for any ideas, directions or help.
If you're still unable to get the other solutions to work, you could put the hdparm command and options into an /etc/init.d script that normally gets run at bootup. RH has/had a file called rc.local that was run after everything else had occurred. I had thought SuSE had the same, but can't find it. -- Mitch Thompson, San Antonio TX // WB5UZG Red Hat Certified Engineer (RHCE) http://home.satx.rr.com/mlthompson Independent Amsoil Dealer http://amsdealer.webhop.biz wget -O - http://home.satx.rr.com/mlthompson/pubkey.gpg | gpg --import -- ohnosecond: The amount of time between pressing the "ENTER" key and realizing you should not have.
* Mitch Thompson
On Wednesday 21 May 2003 17:06, Lars Norén wrote:
I guess the simplest way of accomplishing what I want is to do 'hdparm -S 90 /dev/hdb' but it would be nice not having to do it manually at every boot. Is it possible to specify a kind of cron job that takes care of it? Or can I edit some hard drive parameters somewhere and add 'hdparm -S 90 /dev/hdb' to them?
If you're still unable to get the other solutions to work, you could put the hdparm command and options into an /etc/init.d script that normally gets run at bootup. RH has/had a file called rc.local that was run after everything else had occurred. I had thought SuSE had the same, but can't find it.
RH's /etc/init.d/rc.local equates in SuSE to /etc/init.d/boot.local -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
The 03.05.22 at 06:02, Patrick Shanahan wrote:
else had occurred. I had thought SuSE had the same, but can't find it.
RH's /etc/init.d/rc.local equates in SuSE to /etc/init.d/boot.local
And read "man init.d" for "the SuSE way" ;-) -- Cheers, Carlos Robinson
* Mitch Thompson
[05-22-03 05:51]: On Wednesday 21 May 2003 17:06, Lars Norén wrote:
I guess the simplest way of accomplishing what I want is to do 'hdparm -S 90 /dev/hdb' but it would be nice not having to do it manually at every boot. Is it possible to specify a kind of cron job that takes
care
of it? Or can I edit some hard drive parameters somewhere and add 'hdparm -S 90 /dev/hdb' to them?
If you're still unable to get the other solutions to work, you could put
Ahh, thanks!
----- Original Message -----
From: "Patrick Shanahan"
hdparm command and options into an /etc/init.d script that normally gets run at bootup. RH has/had a file called rc.local that was run after everything else had occurred. I had thought SuSE had the same, but can't find it.
RH's /etc/init.d/rc.local equates in SuSE to /etc/init.d/boot.local -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Patrick Shanahan wrote:
* Mitch Thompson
[05-22-03 05:51]: If you're still unable to get the other solutions to work, you could put the hdparm command and options into an /etc/init.d script that normally gets run at bootup. RH has/had a file called rc.local that was run after everything else had occurred. I had thought SuSE had the same, but can't find it.
RH's /etc/init.d/rc.local equates in SuSE to /etc/init.d/boot.local
Thanks a bunch! I simply added 'hdparm -S 90 /dev/hdb' in /etc/init.d/boot.local and restarted the machine and... hey, it works! I've never really considered /var/log/boot.msg to be beautiful, until now: "Running /etc/init.d/boot.local /dev/hdb: setting standby to 90 (7 minutes + 30 seconds)" Again, thank you! /Lars
participants (4)
-
Carlos E. R.
-
Lars Norén
-
Mitch Thompson
-
Patrick Shanahan