Re: hdparm
Le Wed, 28 Nov 2001 22:44:26 +0100, ludovic.rousseau@free.fr écrivait :
> Je ne sais plus où j'ai récupéré ces lignes mais "ça marche bien chez
> moi" © :-)
>
> À ajouter dans /etc/init.d/hwtools entre le
> "if command -v hdparm >/dev/null 2>&1; then" et le "fi" qui
correspond.
>
> for d in /proc/ide/hd* ; do
> if [ `cat $d/media` = 'disk' ]; then
> hdparm -m8 -u1 -c1 -d1 -W1 /dev/${d##*/}
Ces lignes existent par défaut dans le fichier, SAUF les options de
hdparm. ATTENTION, on peut facilement tout flinguer avec hdparm... CET
OUTIL EST DANGEREUX. Ne mettez pas la ligne précédente sans rien
comprendre. Par défaut, l'activation du DMA suffit à obtenir de bonnes
performances sans danger.
PK
--
Patrice KARATCHENTZEFF
STMicroelectronics Tel: 04-76-92-67-95
850, rue Jean Monnet
38926 CROLLES Cedex, France Courriel: patrice.karatchentzeff@st.com
Reply to:
- Follow-Ups:
- Re: hdparm
- From: Ludovic Rousseau <ludovic.rousseau@free.fr>
- References:
- hdparm
- From: Jérôme Marant <jerome.marant@fr.thalesgroup.com>
- Re: hdparm
- From: Patrice Karatchentzeff <patrice.karatchentzeff@st.com>
- Re: hdparm
- From: Ludovic Rousseau <ludovic.rousseau@free.fr>