下一页 上一页 目录

7. 硬盘

本节列出了与标准 MFM/RLL、ST-506、XT 和 IDE 磁盘驱动器设备关联的所有启动参数。请注意,IDE 和通用 ST-506 HD 驱动程序都接受 `hd=' 选项。

7.1 IDE 磁盘/CD-ROM 驱动程序参数

IDE 驱动程序接受许多参数,这些参数范围从磁盘几何结构规范到对高级或损坏的控制器芯片的支持。以下是一些更常见的启动参数的摘要。要了解完整详细信息,您真的应该查阅 `linux/Documentation` 目录中的 `ide.txt` 文件,本摘要即从中摘取。


 "hdx="  is recognized for all "x" from "a" to "h", such as "hdc".
 "idex=" is recognized for all "x" from "0" to "3", such as "ide1".

 "hdx=noprobe"          : drive may be present, but do not probe for it
 "hdx=none"             : drive is NOT present, ignore cmos and do not probe
 "hdx=nowerr"           : ignore the WRERR_STAT bit on this drive
 "hdx=cdrom"            : drive is present, and is a cdrom drive
 "hdx=cyl,head,sect"    : disk drive is present, with specified geometry
 "hdx=autotune"         : driver will attempt to tune interface speed
                                to the fastest PIO mode supported,
                                if possible for this drive only.
                                Not fully supported by all chipset types,
                                and quite likely to cause trouble with
                                older/odd IDE drives.

 "idex=noprobe"         : do not attempt to access/use this interface
 "idex=base"            : probe for an interface at the addr specified,
                                where "base" is usually 0x1f0 or 0x170
                                and "ctl" is assumed to be "base"+0x206
 "idex=base,ctl"        : specify both base and ctl
 "idex=base,ctl,irq"    : specify base, ctl, and irq number
 "idex=autotune"        : driver will attempt to tune interface speed
                                to the fastest PIO mode supported,
                                for all drives on this interface.
                                Not fully supported by all chipset types,
                                and quite likely to cause trouble with
                                older/odd IDE drives.
 "idex=noautotune"      : driver will NOT attempt to tune interface speed
                                This is the default for most chipsets,
                                except the cmd640.
 "idex=serialize"       : do not overlap operations on idex and ide(x^1)

以下参数仅对 ide0 有效,并且基本端口和控制端口的默认值不得更改。


 "ide0=dtc2278"         : probe/support DTC2278 interface
 "ide0=ht6560b"         : probe/support HT6560B interface
 "ide0=cmd640_vlb"      : *REQUIRED* for VLB cards with the CMD640 chip
                          (not for PCI -- automatically detected)
 "ide0=qd6580"          : probe/support qd6580 interface
 "ide0=ali14xx"         : probe/support ali14xx chipsets (ALI M1439/M1445)
 "ide0=umc8672"         : probe/support umc8672 chipsets

在安装某些 PCMCIA 系统期间,您或许可以使用以下方法检测到您的 CD-ROM:


 "ide2=0x180,0x386"     : probe typical PCMCIA IDE interface location

所有其他参数都将被拒绝,并显示“BAD OPTION”消息。另请注意,在没有任何其他 ide 启动参数的情况下,默认隐含 `ide0=0x1f0 ide1=0x170`。

7.2 旧式 MFM/RLL/标准 ST-506 磁盘驱动程序选项 (`hd=')

标准磁盘驱动程序可以接受类似于 IDE 驱动程序的磁盘几何结构参数。但请注意,它只接受三个值 (C/H/S) —— 任何更多或更少的值都将被静默忽略。此外,它只接受 `hd=' 作为参数,即 `hda='、`hdb=' 等在此处无效。格式如下:


        hd=cyls,heads,sects

如果安装了两个磁盘,则上述内容将重复,并使用第二个磁盘的几何结构参数。

7.3 XT 磁盘驱动程序选项 (`xd='、`xd_geo=')

如果您不幸使用了这些旧的 8 位卡,其数据传输速度仅为惊人的 125kB/s,那么以下是详细信息。这些卡的探测代码会查找已安装的 BIOS,如果不存在 BIOS,则探测将找不到您的卡。或者,如果您的 BIOS 的签名字符串无法识别,也将找不到您的卡。在任何一种情况下,您都必须使用以下形式的启动参数:


        xd=type,irq,iobase,dma_chan

`type` 值指定卡的特定制造商,如下所示:0=通用;1=DTC;2,3,4=西部数据 (Western Digital);5,6,7=希捷 (Seagate);8=OMTI。同一制造商的多个类型之间的唯一区别是用于检测的 BIOS 字符串,如果指定了类型,则不使用该字符串。

`xd_setup()` 函数不对值进行检查,并假定您输入了所有四个值。请不要让它失望。以下是使用 `default` XT 控制器参数的 WD1002 控制器的示例用法,其中 BIOS 已禁用/移除:


        xd=2,5,0x320,3

如果内核打印输出的磁盘几何结构与您知道的磁盘设置不符,您也可以使用以下方法覆盖它:


        xd_geo=cyl_xda,head_xda,sec_xda

如果您愚蠢到在旧的废铁堆上安装了两个磁盘...请添加另一个逗号和另外三个 CHS 值。


下一页 上一页 目录