LinuxSir.cn,穿越时空的Linuxsir!

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

为什 IDE硬盘 会被任成sata的?

[复制链接]
发表于 2009-4-2 13:16:02 | 显示全部楼层 |阅读模式
为什 IDE硬盘 会被任成sata的?

localhost ~ # fdisk -l

Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xebb4ebb4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2423    19462716    7  HPFS/NTFS
/dev/sda2            2424        9964    60573082+   f  W95 Ext'd (LBA)
/dev/sda5            2424        4973    20482843+   b  W95 FAT32
/dev/sda6            4974        5096      987966   82  Linux swap / Solaris
/dev/sda7   *        5097        6556    11727418+  83  Linux
localhost ~ #


---------------------------------------------------------------------------------

主机配置:



p4 2.3+865PE+80 IDE 硬盘

BIOS 里的
on chip ide  里
我设定
on chip serial ata

disable,auto,combined,

情况的是一样。我记得在gentoo mini cd的环境下是hda的啊。


------------------------------------------------------
主板的硬件情况:
livecd ~ # lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 MX200] (rev b2)
02:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

---------------------------------------------------------------

emerge gentoo-sources


得到的
kernel-2.6.27-gentoo-r8


---------------------------------------------------------------------
make menuconfig时  关于硬盘驱动的配置我是按这个来的。

NeddySeagoons' Rough Guide to Intel ICH7 Chip Set
Edit - Now tested with ICH3, ICH4, ICH5, ICH6, ICH7,ICH8, ICH9 and ICH10R too

Regardless of the electrical connection of the drives to the motherboard, you will use the SCSI high level layer.
All your drives will appear as SCSI devices. This means you will have to change grub.conf and /etc/fstab if you have PATA drives.

You have an Intel ICH7 Family chip set. genkernel will not set this one up correctly, so you have to help it if you want to use genkernel.
In make menuconfig choose the following options:-
代码:
--------------------
Device Drivers --->
< > ATA/ATAPI/MFM/RLL support --->
-------------------

turn off the ATA/ATAPI/MFM/RLL support menu item entirely.
You may think this will prevent your CDROM working - it won't. I'll explain later.
Choose
代码:
------------------------
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
-----------------------
notice how it says PATA/SATA in the name. This driver is a combined driver for both SATA and IDE modes - its peculiar to Intel. All other options on this menu must be off, including the two Intel PATA options close to the bottom. If you get that wrong your hard drive will appear as an IDE drive and be very slow as you will not get DMA modes.
Thats the low level drivers set.
Now the high level driver
go back up to

代码:
-----------------------
SCSI device support --->
----------------------
Inside that menu choose

代码:
-------------------
│ │ < > RAID Transport Class
│ │ -*- SCSI device support
│ │ < > SCSI target support
│ │
  • legacy /proc/scsi/ support
    │ │ *** SCSI support type (disk, tape, CD-ROM) ***
    │ │ <*> SCSI disk support
    │ │ < > SCSI tape support
    │ │ < > SCSI OnStream SC-x0 tape support
    │ │ <*> SCSI CDROM support
    ------------------------------------
    SCSI CDROM support may be either <M> or <*> but your CDROM is going to be treated as a SCSI device now. It will have two entries in /dev, /dev/sr0 which is the block device you use in the normal way and /dev/sg0 which is its controlling charater device. Normally, you don't need to know that as udev takes care of creating the symlinks properly. However, if your CDROm is listed in /etc/fstab as /dev/hd... that will need to change.

    Edit - with thanks to ilm
    Note - ICH8 and ICH9 chipsets have been seen with AHCI SATA hardware, in which case you will need
    代码:
    -----------------------------
    <*> AHCI SATA support
    <*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
    -----------------------------

    If you are sure you only have AHCI hardware, Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support is not required.

    Edit - with apologies to Mort_pp
    Note, Some ICH9 chipsets have a supporting Jmicron PATA/SATA chip. If this is listed in your lspci, you will need
    代码:
    ---------------------------

    <*> JMicron PATA support

    -------------------
    too.

    Edit - with thanks to E001754 for reporting the ICH10R working

    Edit - tested with ICH3 in IRC.
    /////////////////////////////////////////
    .
    .
    最后进行编辑的是 NeddySeagoon, on Thu Dec 25, 2008 6:20 pm, 总计第 7 次编辑
    .


    /////////////////////////////////////////
  • 发表于 2009-4-2 14:16:13 | 显示全部楼层
    现在就是这样,没有问题。
    回复 支持 反对

    使用道具 举报

    发表于 2009-4-2 15:08:31 | 显示全部楼层
    libata
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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