找回密码
 注册
查看: 1668|回复: 3

这个机子的dma怎么搞定

[复制链接]
发表于 2006-8-13 20:52:01 | 显示全部楼层 |阅读模式
这种问题好像有帖子提过了,但好像没解决过.我现在的麻烦与之前的那位仁兄类似。

也许与硬件无关,也许有关。
我的麻烦是这样的,现在由于某种原因,我的机子上挂了两个IDE硬盘,并且,由于我是915G的主板,这块该死的板子只有一个IDE口,因为要光驱,只能用了一个随主板送的SATA转IDE线连上光驱。现在无法打开DMA,我试过多种方法,包括编译的时候去掉ide_generic模块,结果是……,出现了这以下提示:
[code:1]Alert!/dev/hd5 does not exist.Dropping to a shell.[/code:1]我保证没设错menu.lst,之前的内核就是用这个menu.lst。顺便说一下,我在用光盘安装时发现只能用2.4的内核才能检出那个用SATA转IDE线连的光驱,2.6的内核不管sarge还是etch的盘(我怎么会下两张盘?)都不行。
发表于 2006-8-13 21:17:46 | 显示全部楼层
看看你的硬盘是否都能mount,然后看看hdparm的配置,
我的hdparm的配置是

# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm

# You can either set hdparm arguments for each drive using hdX_args,
# discX_args, cdromX_args and genericX_args, e.g.
#
hda_args="-d1 -X69 -c1"
# disc1_args="-d1"
cdrom0_args="-d1"

# or, you can set hdparm options for ALL drives using all_args, e.g.
#
all_args="-d1"


man hdparm的说明
       -d     Disable/enable the "using_dma" flag for this drive.  This option
              now  works  with  most combinations of drives and PCI interfaces
              which support DMA and which are known to the kernel IDE  driver.
              It  is also a good idea to use the appropriate -X option in com-
              bination with -d1 to ensure that the drive itself is  programmed
              for the correct DMA mode, although most BIOSs should do this for
              you at boot time.  Using DMA nearly always gives the  best  per-
              formance, with fast I/O throughput and low CPU usage.  But there
              are at least a few configurations of  chipsets  and  drives  for
              which  DMA  does not make much of a difference, or may even slow
              things down (on really messed up hardware!).  Your  mileage  may
              vary.
回复

使用道具 举报

 楼主| 发表于 2006-8-13 21:29:52 | 显示全部楼层
我再试试,不过好像不能mount。
回复

使用道具 举报

 楼主| 发表于 2006-8-14 16:52:42 | 显示全部楼层
刚才试了一下官方的内核,装的很方便,apt-get install kernel-image就行了,但重起后,马上出现与上面描述一样的情况。
[code:1]
dmesg|grep -i ide
...................
ide0:I/O resource 0x1F0-0x1F7 not Free
ide0:ports already in use sking probo
....................
dmesg|grep -i 0x1F0
ata1:SATA max............[/code:1]于是把光驱禁了,再试,结果可以进系统了而且DMA也打开了。但我总不能不用光驱吧,所以不知道有没有更好的方法可以解决这个问题。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-15 05:54 , Processed in 0.025442 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表