Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 16/02/2006, à 12:44

ABYSS

Lecteur Graveur en DMA[résolu]

Bonjour,

Voilà j'ai mon lecteur et mon graveur qui ne sont pas en DMA, j'ai suivi le wiki mais il y à un truc qui colle pas je m'explique.


/dev/hdc:
 using_dma    =  0 (off)

Ceci correspond à mon graveur liteon.

/dev/hdd:
using_dma    =  0 (off)

Et celui-ci le lecteur.


Après avoir fait les modifs pour le graveur au départ, dans

/etc/hdparm.conf

J'ai bien ajouter ces lignes

/dev/hdc {
  quiet
  dma = on
  io32_support = 1
  cd_speed = 40
}

J'ai ensuite redemarrer avec la commande

sudo /etc/init.d/hdparm restart

Et pour voir si le tout fonctionne

sudo hdparm /dev/hdc

Et la j'obtiens cela,

/dev/hdc:
IO_support   =  0 (default 16-bit)
unmaskirq    =  0 (off)
using_dma    =  0 (off)
keepsettings =  0 (off)
readonly     =  0 (off)
readahead    = 256 (on)
HDIO_GETGEO failed: Invalid argument

Par la même occasion je vous mets mon

/etc/hdparm.conf

## This is the default configuration for hdparm for Debian.  It is a
## rather simple script, so please follow the following guidelines smile
## Any line that begins with a comment is ignored - add as many as you
## like.  Note that an in-line comment is not supported.  If a line
## consists of whitespace only (tabs, spaces, carriage return), it will be
## ignored, so you can space control fields as you like.  ANYTHING ELSE
## IS PARSED!!  This means that lines with stray characters or lines that
## use non # comment characters will be interpreted by the initscript. 
## This has probably minor, but potentially serious, side effects for your
## hard drives, so please follow the guidelines.  Patches to improve
## flexibilty welcome.  Please read /usr/share/doc/hdparm/README.Debian for
## notes about known issues, especially if you have an MD array.
##
## Note that if the init script causes boot problems, you can pass 'nohdparm'
## on the kernel command line, and the script will not be run.
##
## Uncommenting the options below will cause them to be added to the DEFAULT
## string which is prepended to options listed in the blocks below.
##
## If an option is listed twice, the second instance replaces the first.
##
## /sbin/hdparm is not run unless a block of the form:
##      DEV {
##         option
##         option
##         ...
##      }
## exists.  This blocks will cause /sbin/hdparm OPTIONS DEV to be run.
## Where OPTIONS is the concatenation of all options previously defined
## outside of a block and all options defined with in the block.

# -q be quiet
quiet
# -a sector count for filesystem read-ahead
#read_ahead_sect = 12
# -A disable/enable the IDE drive's read-lookahead feature
#lookahead = on
# -b bus state
#bus = on
# -B apm setting
#apm = 255
# -c enable (E)IDE 32-bit I/O support - can be any of 0,1,3
#io32_support = 1
# -d disable/enable the "using_dma" flag for this drive
#dma = off
# -D enable/disable the on-drive defect management
#defect_mana = off
# -E cdrom speed
#cd_speed = 16
# -k disable/enable the "keep_settings_over_reset" flag for this drive
#keep_settings_over_reset = off
# -K disable/enable the drive's "keep_features_over_reset" flag
#keep_features_over_reset = on
# -m sector count for multiple sector I/O
#mult_sect_io = 32
# -P maximum sector count for the drive's internal prefetch mechanism
#prefetch_sect = 12
# -r read-only flag for device
#read_only = off
# -S standby (spindown) timeout for the drive
#spindown_time = 24
# -u interrupt-unmask flag for the drive
#interrupt_unmask = on
# -W Disable/enable the IDE drive's write-caching feature
#write_cache = off
# -X IDE transfer mode for newer (E)IDE/ATA2 drives
#transfer_mode = 34
# -y force to immediately enter the standby mode
#standby
# -Y force to immediately enter the sleep mode
#sleep
# -Z Disable the power-saving function of certain Seagate drives
#disable_seagate
# -M Set the acoustic management properties of a drive
#acoustic_management
# -p Set the chipset PIO mode
# chipset_pio_mode

# Root file systems.  Please see README.Debian for details
# ROOTFS = /dev/hda

## New note - you can use straight hdparm commands in this config file
## as well - the set up is ugly, but it keeps backwards compatibility
## Additionally, it should be noted that any blocks that begin with
## the keyword 'command_line' are not run until after the root filesystem
## is mounted.  This is done to avoid running blocks twice.  If you need
## to run hdparm to set parameters for your root disk, please use the
## standard format.

#Samples follow:
#First three are good for devfs systems, fourth one for systems that do
#not use devfs.  The fifth example uses straight hdparm command line
#syntax.  Any of the blocks that use command line syntax must begin with
#the keyword 'command_line', and no attempt is made to validate syntax. 
#It is provided for those more comfortable with hdparm syntax.

#/dev/discs/disc0/disc {
#    mult_sect_io = 16
#    write_cache = off
#    spindown_time = 240
#}

#/dev/discs/disc1/disc {
#    mult_sect_io = 32
#    spindown_time = 36
#    write_cache = off
#}

#/dev/cdroms/cdrom0 {
#    dma = on           
#    interrupt_unmask = on
#    io32_support = 0
#}

#/dev/hda {
#    mult_sect_io = 16
#    write_cache = off
#    dma = on
#}

#command_line {
#       hdparm -q -m16 -q -W0 -q -d1 /dev/hda
#}

#/dev/hdc {
#       quiet
#       dma = on
#       io32_support = 1
#       cd_speed = 40
#}

Si je tape la commande pour voir mon DMA il est toujours à off!

j'comprend pas bien là y aurai t'il quelque chose qui m'échappe?

Merci.

Dernière modification par ABYSS (Le 17/02/2006, à 23:21)

Hors ligne

#2 Le 16/02/2006, à 13:21

AlisonHell

Re : Lecteur Graveur en DMA[résolu]

tes commandes sont bonnes mais tu as laissées les # devant.
ces # sont des symboles qui disent de ne pas prendre en compte ce qui est ecrit.


Sur ubuntu depuis Novembre 2005. Une chose est sure je suis pas près de changer.

Hors ligne

#3 Le 17/02/2006, à 10:47

ABYSS

Re : Lecteur Graveur en DMA[résolu]

Ok,fait

C'est mieux par contre j'ai toujours ce petit message d'erreur en bas.est-ce important?

/dev/hdc:
 IO_support   =  1 (32-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Invalid argument

Hors ligne

#4 Le 17/02/2006, à 11:14

ABYSS

Re : Lecteur Graveur en DMA[résolu]

Pour compléter mon post de dessus j'ai ça maintenant,


/dev/hdc:
 using_dma    =  1 (on)

Hors ligne

#5 Le 17/02/2006, à 12:31

AlisonHell

Re : Lecteur Graveur en DMA[résolu]

je ne trouve rien concernant cette erreur hdio.
je ne pense pas que ce soit dramatique.


Sur ubuntu depuis Novembre 2005. Une chose est sure je suis pas près de changer.

Hors ligne

#6 Le 22/02/2006, à 10:03

terebeu

Re : Lecteur Graveur en DMA[résolu]

De mon côté mon hdparm.conf donne ça (j'ai pas tout mis)

#/dev/discs/disc0/disc {
#	mult_sect_io = 16
#	write_cache = off
#	spindown_time = 240
#}

#/dev/discs/disc1/disc {
#	mult_sect_io = 32
#	spindown_time = 36
#	write_cache = off
#}

#/dev/cdroms/cdrom0 {
#	dma = on		   
#	interrupt_unmask = on
#	io32_support = 0
#}

#/dev/hda {
#	mult_sect_io = 16
#	write_cache = off
#	dma = on
#}

#command_line {
#       hdparm -q -m16 -q -W0 -q -d1 /dev/hda
#}

Il n'ai pas fait mention de mon graveur DVD qui est placé en hdb.
-dois je décommenté toutes les lignes mentionnées ci-dessus ?
-dois je ajouter les lignes suivantes pour que mon graveur soit pris en compte :

/dev/hdb {
  quiet
  dma = on
  io32_support = 1
  cd_speed = 40
}

Merci

Hors ligne

#7 Le 22/02/2006, à 12:06

AlisonHell

Re : Lecteur Graveur en DMA[résolu]

ajoute les lignes ca suffira


Sur ubuntu depuis Novembre 2005. Une chose est sure je suis pas près de changer.

Hors ligne