LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1015|回复: 6

笔记本sata硬盘的,有关的内核选项,求救(几乎解决了)

[复制链接]
发表于 2008-7-3 16:56:29 | 显示全部楼层 |阅读模式
我用的是日立硬盘5400转,启动系统时警告“硬盘DMA”没打开。
我用:hdparm -d 1 /dev/hda   时又出现:
#hdparm -d 1 /dev/hda   
  setting using_dma to 1 (on)
  HDIO_SET_DMA failed: Operation not permitted
using_dMA    =0   (off)  

#lspci |grep IDE
  IDE interface: IntelCorporation Modile SATA IDE Controller (rev 03)


用hdaprm查看:

#hdparm /dev/hda
multcount =16 (on)
IO_support  =0 (default)
16-bit)
unmaskirq  =0 (off)
using_dma  =0 (off)
keepsettings  =0 (off)
readonly  =0 (off)
readahead  =256 (on)
geometry    =16383/255/63,sectors =234441648,start=0


另外:
#hdparm -tT /dev/hda
  Timing cached reads:     1012 MB in 2.00 seconds =506.09 MB/sec
  Timing buffered disk reads:   8 MB in 3.72 seconds =  2.15 MB/sec


据说,我这很不正常,我这问题,怎么个解决呢,我是自己编译内核的,哪里没选?
发表于 2008-7-3 19:08:36 | 显示全部楼层
和我一样的情况

我正在查WIKI。。。 一起查吧,谁找到了就过来发一下
回复 支持 反对

使用道具 举报

发表于 2008-7-3 19:16:20 | 显示全部楼层
The hard drive controller in this system has two modes: AHCI or ATA. If you want to dual-boot windows xp and linux, the easiest choice is to just bump the controller down to ATA mode. If you are running Linux alone (or alongside Vista, for some masochistic reason), you can leave the controller in AHCI mode. Both options are in the system BIOS.

Regardless, the kernel options you will want are:


  1. Device Drivers -> <*> Serial ATA Drivers ->
  2. <*> AHCI SATA Support
  3. <*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
  4. <*> Intel PATA MPIIX support
复制代码

And (for ATA support):


  1. Device Drivers -> <*> ATA/ATAPI/MFM/RLL support -> <*> Intel PIIXn chipsets support
复制代码

After installing the new kernel, you can verify that you have DMA support (if you're using the controller in ATA mode) by running:
  1. hdparm /dev/hda
复制代码


and checking for using_dma = 1

If you decide to switch your controller from AHCI mode to ATA mode in the BIOS (or back the other way), don't forget to update /etc/fstab , /boot/grub/grub.conf and any other path-specific files
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-3 20:07:16 | 显示全部楼层
用得上QQ不,好交流
回复 支持 反对

使用道具 举报

发表于 2008-7-3 21:00:31 | 显示全部楼层
置顶有IRC
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-3 21:53:42 | 显示全部楼层
有人说ICH把SATA也绑定到IDE,所以我在用stage3光盘引导的时候都没有认出sda来,直接挂载为hda,我把内核里的IED的相关驱动delete后,启动时认出sda了,但是,是进不了系统的,而hdparm又是针对IDE的,我的意思就是,安装时就按着hda来装,实际上又是sata,,IDE的壳,sata的心,会欺骗很多软件。
gentoo forum里有篇文章:
kernel compiling for the beginner.htm

里面有专门针对IDE硬盘的内核设置,也有专门针对SATA的内核设置。 可是我却用不上,我感觉我是两不像:
在文中有:
To find the chipset driver (or drivers) for /dev/sda, run代码:
udevinfo -a -p /sys/block/sda | grep DRIVERS
DRIVERS=="sd"
DRIVERS==""
DRIVERS==""
DRIVERS=="ahci"
DRIVERS==""
,我在我系统上运行后(把sda改为hda),却显示的
DRIVERS=="ide-disk"
然后又改为sda运行,显示为:
DRIVERS=="sd"
弄得sata不像sata,ide不像ide,,,老火啊
你有QQ吗,方便联系?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-4 10:27:43 | 显示全部楼层
BIOS中,他默认是设置是模拟IDE模式的,我修改后,miniCD直接认出了sda,测试速度为:50.33 MB/sec
参考http://hi.baidu.com/uroot/blog/item/...51d95835f.html
进行修改,另外,
如果你没用LVM,
我感觉还要在grub.conf和tstab中修改路径,hda改为sda,我用了LVM,所以,我不知道在哪里可以修改哪里面的以前建“卷组”的hda,如果没办法只好重装了,有没高人会哦?
回复 支持 反对

使用道具 举报

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

本版积分规则

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