Commande hdparm
De MicElectroLinGenMet.
Optimisation des périphériques IDE avec hdparm
- Affiche config. du disque:
# hdparm -i /dev/hda
/dev/hda: Model=ST380011A, FwRev=3.06, SerialNo=5JV89GXC Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=16 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 *udma2 AdvancedPM=no WriteCache=enabled Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2: * signifies the current active mode
- Test le débit du disque:
# hdparm -t /dev/hda
/dev/hda: Timing buffered disk reads: 64 MB in 27.86 seconds = 2.30 MB/sec
- Active mode 32 bits et DMA:
# hdparm -c 1 -d 1 /dev/hda (Valable aussi pour lecteur DVD.) /dev/hda: setting 32-bit I/O support flag to 1 setting using_dma to 1 (on) I/O support = 1 (32-bit) using_dma = 1 (on)
- Nouveau débit mesuré:
# hdparm -t /dev/hda /dev/hda: Timing buffered disk reads: 64 MB in 1.66 seconds = 38.55 MB/sec
- Changer le temps après lequel le disque arrête de tourner (Pour qu'il s'arrête après 10 secondes 2*5 secondes)
# hdparm -S 2 /dev/hda
- Mise en mode veille:
# hdparm -y /dev/hda
- Check the current IDE power mode status
# hdparm -C /dev/hda /dev/hda: drive state is: active/idle
- Reduit bruit têtes de lecture mais ralenti le débit (AAM setting)
# hdparm -M128 /dev/hdc
- Augmente bruit têtes de lecture mais débit normal (AAM setting)
# hdparm -M254 /dev/hdc
- Voir outil 'hddtemp' pour la t° du disque.
# hddtemp /dev/hda /dev/hda: ST380011A: 33°C
16 mars 2005
