+ -
当前位置:首页 → 问答吧 → question about hdparm

question about hdparm

时间:2003-09-08

来源:互联网

I could use hdparm -d1 /dev/hda to open the DMA before I installed the X and gnome. But I cannot use it after I apt-get gnome! I could not use this commond in MDK (this is why I switch to debian!). I was able to open the DMA channel when I installed X, kernel and compaile. But after I apt-get gnome, I cannot use it any more? Every time I run this, the console gives a error message like this:

lanb:/home/lanb# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

My computer is a laptop, toshiba 1135-s125.
anybody know what happened?

作者: lanb   发布时间: 2003-09-08

把 lspci | grep IDE 的结果列出来。

作者: kwokts   发布时间: 2003-09-08

I don't think that's a problem about gnome, but about your kernel.
Is the kernel built yourself?
If so, you might have not built in the DMA support.
I ran into this problem several times.

作者: pupilzeng   发布时间: 2003-09-08

I am not saying this is a problem about gnome! (Cause I could not use DMA in MDK 9.1 either!)Actually, I recompiled my kernel for two times. And DMA worked just fine(when I was still facing the black monitor!)! But after I got the graphic interface, I cannot use DMA, I even could open DMA in fluxbox before! That is why I feel stupid!

作者: lanb   发布时间: 2003-09-09

你的意思是,在DMA的变化前后,内核都是一样的,唯一的区别就是是否装了gnome?
如果确实是这样的话。
那确实有些怪了。

作者: pupilzeng   发布时间: 2003-09-09

我不确定一定和gnome有关,但是在gnome里面我现在打不开,我的kernel里面USe DAM by default 是打开了的!一直弄不明白,在网上也有看见有人说个这个问题,但是他也不懂怎么样,原来打不开的,后来无缘无故又可以了!

作者: lanb   发布时间: 2003-09-09

modprobe <your IDE interface>

作者: kwokts   发布时间: 2003-09-09

lanb:/home/lanb# lspci | grep IDE
00:1f.1 IDE interface: Intel Corp.: Unknown device 24ca (rev 03)

BTW, is there any files like rc.local in Debian so that I can write the command hdparm -d1 -X66 -c1 /dev/hda in that file and activate the DMA channel as soon as I enter the linux?

作者: lanb   发布时间: 2003-09-09

引用:
最初由 lanb 发表
BTW, is there any files like rc.local in Debian so that I can write the command hdparm -d1 -X66 -c1 /dev/hda in that file and activate the DMA channel as soon as I enter the linux?
精华区目录 三、 12.

作者: carlos   发布时间: 2003-09-09

引用:
最初由 carlos 发表
精华区目录 三、 12.
got it! Thanks, how come I didnt see it? stupid! BTW, it should be 17! But thanks a lot!

作者: lanb   发布时间: 2003-09-09