On Sat, 2003-07-05 at 21:17, jacques wrote:
 
> Si cela t'éclaire ?

Il ont changé de syntaxe depuis la 8.1, on dirait... Sur une SuSE 8.1,
je mettais tous à 'off' et je réglais les paramètres plus finement avec
les commandes hdparm dans rc.local. Le script qui gère hdparm et son
contrôle sur ma RedHat m'a en tous cas l'air mieux conçu, il gère 'par
défaut' 4 paramètres courants et on peux y ajouter autant de paramètres
supplémentaires que l'on veut.

#!/bin/bash

if [ -x /sbin/hdparm ]; then
   for device in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20;
do
        unset MULTIPLE_IO USE_DMA EIDE_32BIT LOOKAHEAD EXTRA_PARAMS
        if [ -f /etc/sysconfig/harddisk${disk[$device]} ]; then
                . /etc/sysconfig/harddisk${disk[$device]}
                HDFLAGS[$device]=
                if [ -n "$MULTIPLE_IO" ]; then
                    HDFLAGS[$device]="-q -m$MULTIPLE_IO"
                fi
                if [ -n "$USE_DMA" ]; then
                    HDFLAGS[$device]="${HDFLAGS[$device]} -q -d$USE_DMA"
                fi
                if [ -n "$EIDE_32BIT" ]; then
                    HDFLAGS[$device]="${HDFLAGS[$device]} -q
-c$EIDE_32BIT"
                fi
                if [ -n "$LOOKAHEAD" ]; then
                    HDFLAGS[$device]="${HDFLAGS[$device]} -q
-A$LOOKAHEAD"
                fi
                if [ -n "$EXTRA_PARAMS" ]; then
                    HDFLAGS[$device]="${HDFLAGS[$device]} $EXTRA_PARAMS"
                fi
        else
                HDFLAGS[$device]="${HDFLAGS[0]}"
        fi
        if [ -e "/proc/ide/${disk[$device]}/media" ]; then
             hdmedia=`cat /proc/ide/${disk[$device]}/media`
             if [ "$hdmedia" = "disk" -o -f
"/etc/sysconfig/harddisk${disk[$device]}" ]; then
                  if [ -n "${HDFLAGS[$device]}" ]; then
                      action $"Setting hard drive parameters for
${disk[$device]}: "  /sbin/hdparm ${HDFLAGS[$device]}
/dev/${disk[$device]}
                  fi
             fi
        fi
   done
fi

avec comme fichier de config, par exemple :

USE_DMA=1

MULTIPLE_IO=16

EIDE_32BIT=3

LOOKAHEAD=1

EXTRA_PARAMS="-X66 -u1"

Ca pourrait facilement être transposé/adapté sur ta SuSE, non?

-- 
cornely nicolas - www.cornely.org - BE

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à