[SLE] ACPI - spin down second hard drive
From: Lars Norén (lars.noren_at_mbox321.swipnet.se)
Date: 05/31/04
- Previous message: C Hamel: "[SLE] k3b seems to trash modem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 May 2004 14:54:54 +0200 To: SuSE Linux <suse-linux-e@suse.com>
Hi, maybe this has been said, or you already knew, but it was new for me.
I have two hard drives (hda, hdb) on the first IDE-channel and want to
spin down hdb, because it's only a back-up drive and I want to save some
heat and sound. Before SuSE 9.1, I put a line 'hdparm -S 60 /dev/hdb' in
/etc/init.d/boot.local to make hdb spin down.
It worked very well, after a couple of minutes after boot hdb spun down
and stopped and stayed that way as long as I didn't mount it. But in 9.1
this doesn't seem to work -- at boot I can see that boot.local is being
read and there are no error messages concerning the line 'hdparm -S 60
/dev/hdb', but then it never seems to be executed; hdb never spins down.
If ACPI is enabled you can use a powersaving scheme, but it applies to
both drives, I want to spin down only hdb.
After some poking around with the power saving schemes I found out that
it seems as you can use YaST's Editor for /etc/sysconfig-files and edit
'Other - etc - sysconfig - powersave - hdparm - HD_STBY_PERF' and change
it from '-B 255 -S 0' to '-B 255 -S 60 /dev/hdb'.
The difference is, the way I understand it, that instead of telling
hdparm to never spin down anything (-S 0) you tell it to spin down hdb
after 60 x 5 sec = 5 minutes (-S 60 /dev/hdb).
I've been using it for a couple of days now and it seems to work very
well. No problems so far. Five minutes after boot, hdb spins down and
mostly stays that way. It's not _exactly_ the way it was before, but I
think that has to do with the automount-thing (btw, do not try to
"Unmount" a hdb-drive in Gnome, it makes the whole system freeze -- that
menu entry shouldn't be there at all :-)
/Lars
-- 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
- Previous message: C Hamel: "[SLE] k3b seems to trash modem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|