[gull] hdparm -S

Erik Rossen rossen at linux-gull.ch
Sat Jan 24 09:05:03 CET 2004


On Sat, Jan 24, 2004 at 12:48:11AM +0100, Marc Mongenet wrote:
> J'ai un disque IDE 80 Go (WDC WD800JB-00CRA1) que j'arrive à
> mettre au repos immédiat avec `hdparm -y /dev/hda`, mais pas
> différé avec `hdparm -S 1 /dev/hda`, malgré le message
> prometteur suivant :
> 
> # hdparm -S 1 /dev/hda
> 
> /dev/hda:
>  setting standby to 1 (5 seconds)
> #  hdparm -V
> hdparm v4.5
> #
> 
> Je n'ai rien trouvé dans le BIOS ni dans la config du noyau à
> ce propos. Que puis-je faire d'autre pour le repos de mes
> oreilles ?

You need to be sure that no process is writing/flushing to the disk
every 5 seconds or less before the disk will spin down and stay down.  I
use the following commands to make my old laptop/wireless-stereo-relay
quieter.  The "bdflush" and "swapoff" lines are the most important.

rossen at olive:~$ cat /usr/local/bin/shutup 
#/etc/rc.d/ledd stop
/sbin/hdparm -k1 -S1 /dev/hda
echo -ne '40 500 64 256 500 36000 36000 1884 2' > /proc/sys/vm/bdflush
swapoff -a
/etc/init.d/apache stop
/etc/init.d/atd stop
/etc/init.d/cron stop
/etc/init.d/postfix stop
/etc/init.d/lprng stop
killall dhclient-2.2.x
killall cardmgr
mount -o remount,ro /


-- 
Erik Rossen
rossen at linux-gull.ch                   Tel: (41 22) 362 45 08
http://www.linux-gull.ch               OpenPGP key: 2935D0B9



More information about the gull mailing list