PDA

View Full Version : Gutsy RC: hdparm is broken


trapanator
October 13th, 2007, 06:57 AM
Hi,

I use hdparm since Dapper to gain performance on hard disk and dvd access.
I have PATA hard disk and DVD-RW:


trap@dell:~$ sudo hdparm -i /dev/sda

/dev/sda:

Model=HTS548060M9AT00 , FwRev=MGBOA5EA, SerialNo= MRLB55L4JEM44C
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=DualPortCache, BuffSize=7877kB, MaxMultSect=16, MultSect=?8?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
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 udma3 udma4 *udma5
AdvancedPM=yes: mode=0x80 (128) WriteCache=disabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a: ATA/ATAPI-2,3,4,5,6

* signifies the current active mode

and

trap@dell:~$ sudo hdparm -i /dev/cdrom

/dev/cdrom:

Model=_NEC DVD+/-RW ND-6500A , FwRev=202C , SerialNo=
Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:120,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

* signifies the current active mode



but, if I do:


trap@dell:~$ sudo hdparm /dev/cdrom

/dev/cdrom:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device
trap@dell:~$ sudo hdparm /dev/sda

/dev/sda:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 7296/255/63, sectors = 117210240, start = 0


all is off. Then I try:


trap@dell:~$ sudo hdparm -d1 /dev/sda

/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device


Any idea???

swudee
October 13th, 2007, 08:21 PM
That hasn't worked for the last few releases. Back with 6.10 it didn't set up DMA by default. Current releases do and as you will see your hard drive is set up as UDMA 5 so you don't need to run the command to set it up anyway. I think it is to do with the merging of the kernel packages fot SATA and PATA drivers so that PATA packages don't have their support abandoned as the go out of date.