[SLE] ACPI - spin down second hard drive

From: Lars Norén (lars.noren_at_mbox321.swipnet.se)
Date: 05/31/04

  • Next message: James Oakley: "Re: [SLE] dev/lp problems"
    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
    

  • Next message: James Oakley: "Re: [SLE] dev/lp problems"

    Relevant Pages

    • RE: Installing Debian on second hard disk
      ... > instead of hda. ... > or hdb at the time of installation of Debian. ... > will debian still boot or will it refuse to boot? ... initially realize that grub labels drives differently than the kernel does. ...
      (Debian-User)
    • Re: rsync clone - ubuntu failure
      ... boot knoppix, mount drives and ... ... no error messages shown - all good, change jumpers of hdb from slave to ... but what did you do with the original hda? ...
      (Ubuntu)
    • Re: [opensuse] hard drive problem, help, please
      ... hda is XP, hdb is Suse 10.0. ... hard drives connected. ... How can I get the machine to boot into XP ... intending to recover/preserve your SUSE installation. ...
      (SuSE)
    • Re: (no subject)
      ... > I have 2 hard drives in my box with linux and windows on hda and hdb ... I can boot with no problems into windows when I set hdb to be ...
      (Fedora)
    • Re: [opensuse] 10.3 question
      ... IDE drives, hda is 6GB and hdb is 4GB. ... If I boot to knoppix 5.1 live, the system sees both hda and hdb. ...
      (SuSE)