DMA timeout error

hda DMA timeout error

在网上查了一些资料,报错原因是IDE启用DMA时出错。

解决办法:

使用hdparm命令:显示与设置硬盘参数

1.列出IDE硬盘支持的DMA模式

hdparm -i /dev/hda

/dev/hda:

Model=ST3320620A, FwRev=3.AAE, SerialNo=9QFCBVKD
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
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=no WriteCache=enabled
Drive conforms to: device does not report version:

* signifies the current active mode

2.关闭DMA

hdparm -d0 /dev/hda

3.在grub.conf中设置关闭DMA,kernel后添加ide=nodma

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-42.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.ELsmp ro root=/dev/VolGroup00/LogVol00 ide=nodma
initrd /initrd-2.6.9-42.ELsmp.img

你可能感兴趣的:(linux,error,timeout,dma)