Installation Guide
for Red Hat Enterprise Linux 5.0
版 5.0
摘要
简介
注意
/usr/share/doc/redhat-release-notes-5<variant>/
directory after installation, where <variant> is Server
, Client
, or Desktop
.
1. 与体系结构相关的信息
2. 还有更多内容
2.1. 发送您的反馈
http://bugzilla.redhat.com/bugzilla/
) against the component Installation_Guide
(Product: Red Hat Enterprise Linux
, Version: 5.0
).
3. 其它手册的位置
注意
/usr/share/doc/redhat-release-notes-5<variant>/
directory after installation, where <variant> is Server
, Client
, or Desktop
.
部分 I. x86、AMD64、Intel® 64 和 Itanium - 安装和引导
第 1 章 Itanium 系统特有的信息
1.1. Itanium 系统安装概述
- 引导至 EFI(Extensible Firmware Interface,可扩展固件界面)Shell。
- 如果不能从光盘引导,你可以依据Red Hat Enterprise Linux 提供的引导映像文件创建一个 LS-120 软盘。
- 使用 EFI Shell 和 ELILO 引导装载程序、装载和运行内核,并引导至Red Hat Enterprise Linux 安装程序。
1.2. Itanium 系统 — EFI Shell
edit
、type
、cp
、rm
、和 mkdir
。要获得工具列表和其它命令,在 EFI Shell 提示下键入 help
。
http://developer.intel.com/technology/efi/index.htm
1.2.1. Itanium 系统 — EFI 设备名称
map
命令可以被用来列举所有 EFI 能够识别的设备和文件系统。当你的 Itanium 系统引导至 EFI shell 时,它会按以下顺序探测你的系统:
- LS-120 驱动器(如果它包含介质)
- 主 IDE 接口上的 IDE 硬盘驱动器
- 次 IDE 接口的 IDE 硬盘驱动器
- SCSI 接口上的 SCSI 硬盘驱动器
- IDE 接口上的光盘驱动器
- SCSI 接口上的光盘驱动器
map
map
命令的输出会和以下的内容类似:
Device mapping table fs0 : VenHw(Unknown Device:00)/HD(Part1,Sig00000000) fs1 : VenHw(Unknown Device:80)/HD(Part1,Sig00000000) fs2 : VenHw(Unknown Device:FF)/CDROM(Entry1)/HD(Part1,Sig00000000) blk0 : VenHw(Unknown Device:00) blk1 : VenHw(Unknown Device:00)/HD(Part1,Sig00000000) blk2 : VenHw(Unknown Device:80) blk3 : VenHw(Unknown Device:80)/HD(Part1,Sig00000000) blk4 : VenHw(Unknown Device:80)/HD(Part2,Sig00000000) blk5 : VenHw(Unknown Device:80)/HD(Part3,Sig00000000) blk6 : VenHw(Unknown Device:80)/HD(Part3,Sig00000000)/HD(Part1,Sig725F7772) blk7 : VenHw(Unknown Device:FF) blk8 : VenHw(Unknown Device:FF)/CDROM(Entry1) blk9 : VenHw(Unknown Device:FF)/CDROM(Entry1)/HD(Part1,Sig00000000)
fs
开头的是 EFI 能够读取的 FAT16 文件系统。所有列举项目中以 blk
开头的是 EFI 能够识别的块设备。文件系统和块设备都是按照它们被探测到的顺序被列出的。因此,fs0
是 LS-120 上的系统分区,fs1
是硬盘驱动器上的系统分区,fs2
是光盘上的系统分区。
1.2.2. Itanium 系统 — EFI 系统分区
/boot/efi/
挂载点。该分区包含安装了的 Linux 内核以及 ELILO 配置文件(elilo.conf
)。elilo.conf
文件包含你可以引导系统的内核列表。
第 2 章 安装前的准备工作
2.1. 选择升级还是安装?
2.2. 您的硬件兼容吗?
http://hardware.redhat.com/hcl/
2.3. 你有足够的磁盘空间吗?
/
and swap
)。对于 Itanium 系统,Red Hat Enterprise Linux 至少需要三个专用的分区(/
、/boot/efi/
和 swap
)。
- 有足够的未分区[1]的磁盘空间来安装Red Hat Enterprise Linux。或者
- 有一个或多个可以删除的分区,因此能够空出足够的空间来安装Red Hat Enterprise Linux。
2.4. 您可以使用光盘安装吗?
2.4.1. 其它引导方法
- 引导 DVD/CD-ROM
- If you can boot using the DVD/CD-ROM drive, you can create your own CD-ROM to boot the installation program. This may be useful, for example, if you are performing an installation over a network or from a hard drive. Refer to 第 2.4.2 节 “制作安装引导光盘” for further instructions.
- USB pen drive
- If you cannot boot from the DVD/CD-ROM drive, but you can boot using a USB device, such as a USB pen drive, the following alternative boot method is available:要使用 USB pen 驱动器,使用
dd
命令复制 CD-ROM #1 中的/images/
目录中的diskboot.img
映像文件。如:dd if=diskboot.img of=/dev/sda
你的 BIOS 必须支持从 USB 设备引导才能使这个引导方法奏效。
2.4.2. 制作安装引导光盘
isolinux/
directory from the Red Hat Enterprise Linux DVD or CD #1 into a temporary directory (referred to here as <path-to-workspace>
) using the following command:
cp -r <path-to-cd>/isolinux/
<path-to-workspace>
<path-to-workspace>
directory you have created:
cd <path-to-workspace>
chmod u+w isolinux/*
mkisofs -o file.iso -b isolinux.bin -c boot.cat -no-emul-boot \ -boot-load-size 4 -boot-info-table -R -J -v -T isolinux/
注意
file.iso
and located in <path-to-workspace>
) to a CD-ROM as you normally would.
2.5. 筹备网络安装
注意
注意
boot:
提示下输入以下命令(Itanium 系统:在命令前加上 elilo
):
linux mediacheck
注意
/location/of/disk/space
。通过 FTP、NFS 或 HTTP 共享的目录将被指定为 /export/directory。例如,/location/of/disk/space
可能是一个你创建的叫 /var/isos
的目录。对于 HTTP 安装来说, /export/directory
将是 /var/www/html/rhel5
。
- 使用以下命令在安装磁盘里创建一个 iso 映像文件:
- 对于 DVD:
dd if=/dev/dvd of=/location/of/disk/space/RHEL5.iso
这里的 dvd 指的是 DVD 驱动设备: - 对于 CD-ROM:
dd if=/dev/cdrom of=/location/of/disk/space/diskX.iso
在这里,cdrom 指的是 CD 驱动设备,X 是你复制的磁盘的编号,从 1 开始,以此类推。
2.5.1. 筹备 FTP 和 HTTP 安装
- 对于 DVD:
mount -o loop /location/of/disk/space/RHEL5.iso /export/directory/
在这里,/export/directory 将通过 FTP 或 HTTP 作为共享目录。 - 对于 CDROM:
mount -o loop /location/of/disk/space/diskX.iso /export/directory/diskX/
对于每个 CDROM ISO 映像文件重复上面的步骤,例如:mount -o loop /var/isos/disk1.iso /var/www/html/rhel5-install/disk1/
/export/directory
目录通过 FTP 或 HTTP 共享,并且验证客户的访问。你可以检查这个目录是否可以从服务器自身来访问,然后再从你准备安装的同一子网的其他机器上进行访问。
2.5.2. 筹备 NFS 安装
- 对于 DVD:
mv /location/of/disk/space/RHEL5.iso /export/directory/
- 对于 CDROM:
mv /location/of/disk/space/disk*.iso /export/directory/
/etc/exports
里进行设置确保 /export/directory
通过 NFS 输出。
/export/directory client.ip.address(ro,no_root_squash)
/export/directory *(ro,no_root_squash)
/sbin/service nfs start
命令)。如果 NFS 已在运行,重新加载配置文件(在 Red Hat Enterprise Linux 系统上运行 /sbin/service nfs reload
)。
2.6. 筹备硬盘驱动器安装
注意
- 使用一组光盘集合 — 从每个安装光盘(或 DVD)中创建光盘 ISO 映像文件。对于每个光盘,在 Linux 系统上执行以下命令(对于 DVD 只执行一次):
dd if=/dev/cdrom of=/tmp/file-name.iso
- 使用 ISO 映像 — 把这些映像传输到要安装的系统上。在试图安装前,请校验 ISO 映像的完整性。这会帮助你避免硬盘安装过程中经常会遇到的问题。要在执行安装前校验 ISO 映像的完整性,请使用 md5sum 程序(该程序有适用于各类操作系统的版本)。md5sum 程序应该可以在提供 ISO 映像的同一服务器上找到。
注意
boot:
提示符下键入以下命令(Itanium 系统中在命令前键入 elilo
):
linux mediacheck
updates.img
的文件,你可以用它来更新anaconda
。请参考 anaconda
RPM 软件包中的 install-methods.txt
文件来获取关于各种安装 Red Hat Enterprise Linux 的途径,以及怎样应用安装程序更新。
第 3 章 System Specifications List
- hard drive(s): type, label, size; e.g. IDE hda=40 GB
- partitions: map of partitions and mount points; e.g.
/dev/hda1=/home
,/dev/hda2=/
(fill this in once you know where they will reside) - memory: amount of RAM installed on your system; e.g. 512 MB, 1 GB
- CD-ROM: interface type; e.g. SCSI, IDE (ATAPI)
- SCSI adapter: if present, make and model number; e.g. BusLogic SCSI Adapter, Adaptec 2940UW
- network card: if present, make and model number; e.g. Tulip, 3COM 3C590
- mouse: type, protocol, and number of buttons; e.g. generic 3 button PS/2 mouse, MouseMan 2 button serial mouse
- monitor: make, model, and manufacturer specifications; e.g. Optiquest Q53, ViewSonic G773
- video card: make, model number and size of VRAM; e.g. Creative Labs Graphics Blaster 3D, 8MB
- sound card: make, chipset and model number; e.g. S3 SonicVibes, Sound Blaster 32/64 AWE
- IP, DHCP, and BOOTP addresses
- netmask
- gateway IP address
- one or more name server IP addresses (DNS)
- domain name: the name given to your organization; e.g.
example.com
- hostname: the name of your computer; your personal choice of names; e.g.
cookie
,southpark
第 4 章 在 Intel® 或 AMD 系统上进行安装的问题
- Becoming familiar with the installation program's user interface
- 启动安装程序
- 选择安装方法
- 安装中的配置步骤(语言、键盘、鼠标、分区等等)
- 结束安装
4.1. 图形化安装程序用户界面
注意
boot:
prompt:
linux text
注意
elilo linux text
4.1.1. 虚拟控制台的注记
表 4.1. 控制台,击键,和内容
控制台 | 击键 | 内容 |
---|---|---|
1 | ctrl+alt+f1 | 安装对话框 |
2 | ctrl+alt+f2 | shell 提示 |
3 | ctrl+alt+f3 | 安装日志(安装程序的消息) |
4 | ctrl+alt+f4 | 与系统相关的消息 |
5 | ctrl+alt+f5 | 其它消息 |
6 | ctrl+alt+f6 | X 图形化显示 |
4.2. 文本模式安装程序用户界面
注意

图 4.1. Installation Program Widgets as seen in Boot Loader Configuration

图 4.2. Installation Program Widgets as seen in Disk Druid
- 窗口 — 在整个安装进程中,你会不时地在屏幕上看到窗口(本书中通常把它称为对话框,dialog)。有时,一个窗口会重叠在另一个窗口之上;在这种情况下,你只能与最上面的窗口交流。当该窗口使用完毕,它就会消失,允许你继续使用下面的窗口。
- 复选箱 — 复选箱允许你选择或取消选择某项功能。箱内要么显示一个星号(已选),要么是一个空格(未选)。当光标位于复选箱内,按 Space 键来选择一个未选的功能或取消一个已选的功能。
- 文本输入行 — 文本输入行是你可以输入安装程序所要求信息的区域。当光标停在文本输入行时,你可以在那一行中输入并(或)编辑信息。
- 文本构件 — 文本构件是屏幕上用于显示文本的区域。有时,文本构件可能还会含有其它构件,如复选箱。如果文本构件所含的信息超出为它保留的空间所能显示的,一个滚动条就会出现;如果你将光标定位于文本构件之内,你可以使用向上和向下 箭头键来在所有信息中上下滚动。你在滚动条上的当前位置被显示为一个 # 字符,它会在你拖拉滚动条时移上移下。
- Scroll Bar — Scroll bars appear on the side or bottom of a window to control which part of a list or document is currently in the window's frame. The scroll bar makes it easy to move to any part of a file.
- 按钮构件 — 按钮构件是与安装程序交流的主要方法。通过 Tab 键和 Enter 键使用这些按钮,你可在安装程序的屏幕中逐步推进。当按钮被突出显示时,它们可以被选择。
- 光标 — 虽然不是一个控件,但光标被用来选择(和交互)某一特定控件。当光标在控件之间移动时,它可以使控件改变颜色,或者光标可以只在控件里或后面出现。
4.2.1. 使用键盘来导航
警告
4.3. 启动安装程序
注意
4.3.1. 在 x86、AMD64 和 Intel® 64 系统上引导安装程序。
- Red Hat Enterprise Linux 光盘 — 你的机器支持可引导的光盘驱动器,并且你有一组Red Hat Enterprise Linux 光盘。
- 可引导的光盘 — 你的机器支持可引导的光盘驱动器,并且你想执行网络或硬盘驱动器安装。
- USB pen 驱动器 — 你的机器支持从 USB 设备引导。
- PXE boot via network — Your machine supports booting from the network. This is an advanced installation path. Refer to 第 31 章 PXE 网络安装 for additional information on this method.
注意
boot:
提示的屏幕就会出现。这个屏幕包括了许多不同的引导选项。每个引导选项还有一个或多个与之关联的帮助屏幕。要访问帮助屏幕,按在屏幕底部列出的恰当的功能键。
- 当你看到了
boot:
提示后,如果在一分钟内不采取任何行动,安装程序会自动开始。要禁用这项功能,按帮助屏幕上的功能键之一。 - 如果你按了帮助屏幕功能键,在帮助屏幕从引导介质中被读取时会出现稍微的延迟。
4.3.2. 在 Itanium 系统上引导安装程序
4.3.2.1. 从光盘中引导安装程序
- 取出Red Hat Enterprise Linux 第一张光盘以外的所有介质。
- 从菜单中选择 。
- At the
Shell>
prompt, change to the file system on the CD-ROM. For example, in the above samplemap
output, the system partition on the CD-ROM isfs1
. To change to thefs1
file system, typefs1:
at the prompt. - 键入
elilo linux
来引导入安装程序。 - Go to 第 4 章 在 Intel® 或 AMD 系统上进行安装的问题 to begin the installation.
4.3.2.2. 从 LS-120 磁盘来引导安装程序
images/boot.img
来创建一个 LS-120 引导映像文件磁盘。要在 Linux 中创建这个磁盘,插入一张空白的 LS-120 磁盘,在 shell 提示下键入以下命令:
dd if=boot.img of=/dev/hda bs=180k
/dev/hda
替换成用于 LS-120 磁盘驱动器的正确设备名称。
- 插入你根据
boot.img
引导映像文件来创建的 LS-120 磁盘。如果你执行的是本地光盘安装,但是要从 LS-120 磁盘引导,还需插入Red Hat Enterprise Linux 的第一张光盘。如果你执行的是硬盘驱动器、NFS、FTP、或 HTTP 安装,你就不需要光盘。 - 从菜单中选择 。
- At the
Shell>
prompt, change the device to the LS-120 drive by typing the commandfs0:
, using the examplemap
output above. - 键入
elilo linux
来引导入安装程序。 - Go to 第 4 章 在 Intel® 或 AMD 系统上进行安装的问题 to begin the installation.
4.3.3. 其它引导选项
elilo linux option
注意
linux text
- ISO images have an md5sum embedded in them. To test the checksum integrity of an ISO image, at the installation boot prompt, type:
linux mediacheck
安装程序将会提示你插入一个光盘或选择一个要测试的 ISO 映像,然后选择来执行校验和的操作。这种校验和的操作可以在任何Red Hat Enterprise Linux 光盘上执行,而且不必按指定顺序执行(例如:第一张光盘不必是第一个需要校验的光盘)。我们强烈建议你在所有从下载的 ISO 映像中创建的Red Hat Enterprise Linux 光盘上执行这一操作。该命令可用于 CD、DVD、硬盘 ISO、和 NFS ISO 安装。 - Also in the
images/
directory is theboot.iso
file. This file is an ISO image than can be used to boot the installation program. To use theboot.iso
, your computer must be able to boot from its CD-ROM drive, and its BIOS settings must be configured to do so. You must then burn theboot.iso
file onto a recordable/rewriteable CD-ROM. linux console=<device>
文本模式安装,使用:linux text console=<device>
In the above command, <device> should be the device you are using (such as ttyS0 or ttyS1). For example,linux text console=ttyS0
.Text mode installations using a serial terminal work best when the terminal supports UTF-8. Under UNIX and Linux, Kermit supports UTF-8. For Windows, Kermit '95 works well. Non-UTF-8 capable terminals works as long as only English is used during the installation process. An enhanced serial display can be used by passing theutf8
command as a boot-time option to the installation program. For example:linux console=ttyS0 utf8
4.3.3.1. 内核选项
linux updates
linux text updates
rhupdates/
目录下,则不需要使用该命令。
4.4. 选择安装方法
- DVD/CD-ROM
- If you have a DVD/CD-ROM drive and the Red Hat Enterprise Linux CD-ROMs or DVD you can use this method. Refer to 第 4.5 节 “从光盘中安装”, for DVD/CD-ROM installation instructions.
- 硬盘驱动器
- If you have copied the Red Hat Enterprise Linux ISO images to a local hard drive, you can use this method. You need a boot CD-ROM (use the
linux askmethod
boot option). Refer to 第 4.6 节 “从硬盘安装”, for hard drive installation instructions. - NFS
- If you are installing from an NFS server using ISO images or a mirror image of Red Hat Enterprise Linux, you can use this method. You need a boot CD-ROM (use the
linux askmethod
boot option). Refer to 第 4.8 节 “通过 NFS 安装” for network installation instructions. Note that NFS installations may also be performed in GUI mode. - FTP
- If you are installing directly from an FTP server, use this method. You need a boot CD-ROM (use the
linux askmethod
boot option). Refer to 第 4.9 节 “通过 FTP 安装”, for FTP installation instructions. - HTTP
- If you are installing directly from an HTTP (Web) server, use this method. You need a boot CD-ROM (use the
linux askmethod
boot option). Refer to 第 4.10 节 “通过 HTTP 安装”, for HTTP installation instructions.
4.5. 从光盘中安装
注意
4.5.1. 如果没有发现 IDE 光盘怎么办?
boot:
提示后输入 linux hdX=cdrom
。根据光盘连接的接口以及它是被配置为主还是次而定,把 X
替换成以下字母之一:
a
— 第一个 IDE 控制器,主b
— 第一个 IDE 控制器,次c
— 第二个 IDE 控制器,主d
— 第二个 IDE 控制器,次
4.6. 从硬盘安装

图 4.3. 硬盘驱动器安装的选择分区对话框
/
. If the ISO images are located in a subdirectory of a mounted partition, enter the name of the directory holding the ISO images within that partition. For example, if the partition on which the ISO images is normally mounted as /home/
, and the images are in /home/new/
, you would enter /new/
.
4.7. 执行网络安装

图 4.4. TCP/IP 配置
4.8. 通过 NFS 安装
example.com
域的 eastcoast
主机上安装的话,在「NFS 服务器」 字段中输入 eastcoast.example.com
。
/export/directory/
.

图 4.5. NFS 设置对话框
4.9. 通过 FTP 安装

图 4.6. FTP 设置对话框
variant/
安装文件的目录。譬如,如果 FTP 站点包含目录 /mirrors/redhat/arch/variant;/
,请输入 /mirrors/redhat/arch/
(这里的 arch 应使用你的系统体系类型来替换,如 i386、ia64、ppc、或 s390,variant 是你正在安装的类型,如 Client、Server、Workstation 等)。如果一切都被正确地指定了,一个通知你文件正从服务器获取的消息框就会出现。
注意
mkdir discX mount -o loop RHEL5-discX.iso discX
4.10. 通过 HTTP 安装
variant/
安装文件的目录。譬如,如果 HTTP 站点包含目录 /mirrors/redhat/arch/variant/
,则请输入 /mirrors/redhat/arch/
(这里的 arch 应使用你的系统体系类型来替换,如 i386、ia64、ppc、或 s390,variant 是你正安装的类型,如 Client、Server、Workstation 等)。如果一切都被正确地指定了,一个通知你文件正从服务器获取的消息框就会出现。

图 4.7. HTTP 设置对话框
注意
mkdir discX mount -o loop RHEL5-discX.iso discX
4.11. 欢迎使用Red Hat Enterprise Linux

4.12. 语言选择

图 4.8. 语言选择
4.13. 键盘配置

图 4.9. 键盘配置
注意
system-config-keyboard
命令来启动「键盘配置工具」。如果你不是根用户,它会提示你输入根口令再继续。
4.14. 输入安装号码(Installation Number)

图 4.10. Installation Number
4.15. 磁盘分区设置
警告
/var/cache/yum/
中。如果你要手工给系统分区,并创建一个单独的 /var/
分区,请确定给这个分区保留足够的空间(大于 3.0GB)来容纳下载的软件包更新。

图 4.11. 磁盘分区设置
警告
4.16. 高级存储选项

图 4.12. 高级存储选项

图 4.13. 配置 ISCSI 参数
4.17. 按缺省格式分区
- 「删除选定驱动器上的所有分区并按缺省的格式创建分区」 — 选择这一选项来删除你的硬盘驱动器上的所有分区(这包括由其它操作系统创建的分区,如 Windows VFAT 或 NTFS 分区)。
警告
如果你选择了这个选项,在选定的硬盘驱动器上的所有数据将会被安装程序删除。如果在你打算安装Red Hat Enterprise Linux 的硬盘驱动器上有你想保留的信息,请不要选此项。 - 「删除选定驱动器上的所有 Linux 分区并按缺省的格式创建分区」 — 选择该选项来只删除 Linux 分区(在以前安装 Linux 时创建的分区)。这将不会影响你的硬盘驱动器上可能会有的其它分区,例如:VFAT 或 FAT32 分区。
- 「使用选定磁盘上的空闲空间并按缺省的格式创建分区」 — 选择这一选项来保留你当前的数据和分区,假设你的硬盘驱动器上有足够的可用空闲空间的话。

图 4.14. 创建缺省的格式
警告
注意
/boot/
分区一定要在 RAID 阵列之外的分区上创建,比如在一个分开的硬盘驱动器上。用有问题的 RAID 卡来创建分区,有必要使用一个内部硬盘驱动器。
/boot/
分区也是软件 RAID 设置所必需的。
/boot/
分区。
4.18. 为您的系统分区
注意
注意
/boot/efi/
partition of approximately 100 MB and of type FAT (VFAT), a swap partition of at least 512 MB, and an appropriately-sized root (/
) partition.

图 4.15. 在 x86、AMD64 和 Intel® 64 系统上用 Disk Druid 进行分区。
4.18.1. 硬盘的图形化表示
4.18.2. Disk Druid's Buttons
- 「分区」部分中选定分区的属性。选择 打开一个对话框。部分或全部字段可被编辑,这要依据分区信息是否已被写入磁盘而定。:用来修改目前在你还可以编辑图形化显示所表示的空闲空间,从而在那个空间内创建一个新分区。你既可以突出显示空闲空间,然后选择按钮,也可以双击空闲空间来编辑它。
- 要制作一个 RAID 设备,你必须首先创建(或重新利用现有的)软件 RAID 分区。一旦你已创建了两个或两个以上的软件 RAID 分区,选择来把软件 RAID 分区连接为一个 RAID 设备。
- 「当前磁盘分区」部分中突出显示的分区。你会被要求确认对任何分区的删除。:用来删除目前在
- Disk Druid 恢复到它最初的状态。如果你 分区,你所做的所有改变将会丢失。:用来把
- 它只有在你有使用 RAID 的经验时才应使用。关于 RAID 的详情,请参阅《Red Hat Enterprise Linux Deployment Guide》。:用来给部分或全部磁盘分区提供冗余性。要制作一个 RAID 设备,你必须首先创建软件 RAID 分区。一旦你已创建了两个或两个以上的软件 RAID 分区,选择来把软件 RAID 分区连接为一个 RAID 设备。
- 它只有在你有使用 LVM 的经验时才应使用。关于 LVM 的详情,请参阅《Red Hat Enterprise Linux Deployment Guide》。注意:LVM 只在图形化安装程序中才被提供。:允许你创建一个 LVM 逻辑卷。LVM(逻辑卷管理器)的目的是用来表现基本物理贮存空间如硬盘的简单逻辑视图。LVM 管理单个物理磁盘 — 或者更确切地说,磁盘上的单个分区。要创建 LVM 逻辑卷,你必须首先创建类型为物理卷(LVM)的分区。一旦你已创建了一个或多个物理卷(LVM)分区,选择来创建 LVM 逻辑卷。
4.18.3. 分区字段
- Device: This field displays the partition's device name.
- Mount Point/RAID/Volume: A mount point is the location within the directory hierarchy at which a volume exists; the volume is "mounted" at this location. This field indicates where the partition is mounted. If a partition exists, but is not set, then you need to define its mount point. Double-click on the partition or click the button.
- Type: This field shows the partition's file system type (for example, ext2, ext3, or vfat).
- 「格式化」:该字段显示了正创建的分区是否会被格式化。
- Size (MB): This field shows the partition's size (in MB).
- 「开始」:该字段显示了分区在你的硬盘上开始的柱面。
- 「结束」:该字段显示了分区在你的硬盘上结束的柱面。
4.18.4. 推荐的分区方案
4.18.4.1. Itanium 系统
- 一个
/boot/efi/
分区(至少 100MB)— 挂载在/boot/efi/
的分区包含所有安装了的内核、initrd 映像、以及 ELILO 配置文件。警告
你必须在第一个主分区上创建类型为 VFAT、大小至少为 100MB 的/boot/efi/
分区。 - 一个交换分区(至少 256MB)— 交换分区被用来支持虚拟内存。换一句话说,当内存不足以贮存系统正在处理的数据时,数据就会被写入交换分区。如果你不确定创建多大的交换分区,你可以指定两倍于系统物理内存的大小。分区类型必须是 swap。创建大小合适的交换空间依赖于以下几个因素(按重要性依次排列):
- 在机器上运行的应用程序。
- 机器上安装的物理内存数量。
- 操作系统的版本。
物理内存低于 2GB 时,交换空间应该是两倍于物理内存大小。对于任何高于 2GB 的内存,则为相同数量,但绝不能少于 32MB。所以,如果:M = 内存的 GB 数,S = 交换空间的 GB 数,然后If M < 2 S = M *2 Else S = M + 2
使用这个公式,物理内存为 2GB 的系统应该有 4GB 的交换空间,物理内存为 3GB 的系统应该有 5GB 交换空间。创建一个较大的交换分区在你计划将来升级内存的时候特别有帮助。对于具备超大内存的系统(超过 32GB),你可能能够使用一个较小的交换分区(物理内存的一倍或更少)。 - A root partition (3.0 GB - 5.0 GB) — this is where "
/
" (the root directory) is located. In this setup, all files (except those stored in/boot/efi
) are on the root partition.3.9GB 大小的根分区仅允许你进行最小程度的安装,而 5.0GB 大小的根分区允许你执行完整安装,包括所有软件包组。
4.18.4.2. x86、AMD64 和 Intel® 64 位系统
- 一个交换分区(至少 256MB)— 交换分区被用来支持虚拟内存。换一句话说,当内存不足以贮存系统正在处理的数据时,数据就会被写入交换分区。如果你不确定创建多大的交换分区,你可以指定两倍于系统物理内存的大小。分区类型必须是 swap。创建大小合适的交换空间依赖于以下几个因素(按重要性依次排列):
- 在机器上运行的应用程序。
- 机器上安装的物理内存数量。
- 操作系统的版本。
物理内存低于 2GB 时,交换空间应该是两倍于物理内存大小。对于任何高于 2GB 的内存,则为相同数量,但绝不能少于 32MB。所以,如果:M = 内存的 GB 数,S = 交换空间的 GB 数,然后If M < 2 S = M *2 Else S = M + 2
使用这个公式,物理内存为 2GB 的系统应该有 4GB 的交换空间,物理内存为 3GB 的系统应该有 5GB 交换空间。创建一个较大的交换分区在你计划将来升级内存的时候特别有帮助。对于具备超大内存的系统(超过 32GB),你可能能够使用一个较小的交换分区(物理内存的一倍或更少)。 - 一个
/boot
分区(100MB)— 挂载在/boot
中的分区,包含操作系统内核(它允许你的系统引导Red Hat Enterprise Linux)、以及在自展过程中使用的文件。由于某些限制,创建一个原始的 ext3 分区来容纳这些文件是一个好办法。对多数用户来说,大小为 100MB 的引导分区应该是足够了。注意
如果你的硬盘大于 1024 个柱面(而且你的系统至少是在两年前制造的),而且你想让/
(根)分区使用硬盘上的所有剩余空间,你可能需要创建一个/boot
分区。注意
如果你有一张 RAID 卡,请注意某些 BIOS 不支持从 RAID 卡中引导。在这种情况下,/boot/
分区必须在 RAID 阵列之外被创建,如在一个单独的硬盘驱动器上创建。 - A
root
partition (3.0 GB - 5.0 GB) — this is where "/
" (the root directory) is located. In this setup, all files (except those stored in/boot
) are on the root partition.3.0GB 大小的根分区仅允许你进行最小程度的安装,而 5.0GB 大小的根分区允许你执行完整安装,包括所有软件包组。
4.18.5. 添加分区
注意

图 4.16. 创建一个新分区
- Mount Point: Enter the partition's mount point. For example, if this partition should be the root partition, enter
/
; enter/boot
for the/boot
partition, and so on. You can also use the pull-down menu to choose the correct mount point for your partition. For a swap partition the mount point should not be set - setting the filesystem type to swap is sufficient. - File System Type: Using the pull-down menu, select the appropriate file system type for this partition. For more information on file system types, refer to 第 4.18.5.1 节 “文件系统类型”.
- Allowable Drives: This field contains a list of the hard disks installed on your system. If a hard disk's box is highlighted, then a desired partition can be created on that hard disk. If the box is not checked, then the partition will never be created on that hard disk. By using different checkbox settings, you can have Disk Druid place partitions where you need them, or let Disk Druid decide where partitions should go.
- 「大小(MB)」:输入分区的大小(MB)。注意,该字段从 100MB 开始;若不改变,创建的分区将只有 100MB。
- Additional Size Options: Choose whether to keep this partition at a fixed size, to allow it to "grow" (fill up the available hard drive space) to a certain point, or to allow it to grow to fill any remaining hard drive space available.如果你选择 「指定空间大小(MB)」,你必须在这个选项右侧的字段内给出大小限制。这会允许你在你的硬盘驱动器上保留一定的空间为将来使用。
- Force to be a primary partition: Select whether the partition you are creating should be one of the first four partitions on the hard drive. If unselected, the partition is created as a logical partition. Refer to 第 25.1.3 节 “分区内的分区 — 扩展分区概述”, for more information.
4.18.5.1. 文件系统类型
- 「ext2」 — ext2 文件系统支持标准的 Unix 文件类型(常规文件、目录、符号链接等等)。它提供了可以分配长达 255 个字符的长文件名的能力。
- 「ext3」 — ext3 文件系统是基于 ext2 文件系统之上的,它有一个主要优点 — 日志(journaling)。使用日志的文件系统减少了崩溃后恢复文件系统所花费的时间,因为它没有必要运行
fsck
[2] 来检查文件系统。ext3 文件系统会被缺省选定,这也是我们极力推荐的。 - 「物理卷(LVM)」 — 创建一个或多个物理卷(LVM)分区允许你创建一个 LVM 逻辑卷。LVM 可以在使用物理磁盘的时候提高性能。关于 LVM 的详细信息,请参阅 《Red Hat Enterprise Linux Deployment Guide》。
- 「软件 RAID」 — 创建两个或多个软件 RAID 分区允许你创建一个 RAID 设备。关于 RAID 的详情,请参阅《Red Hat Enterprise Linux Deployment Guide》中的“RAID(独立磁盘冗余阵列)”这一章。
- 「交换空间」 — 交换分区被用于支持虚拟内存。换一句话说,如果存放你的系统正要处理的数据所需的内存不够时,这些数据就会被写到你的交换分区上。额外信息请参阅《Red Hat Enterprise Linux Deployment Guide》。
- 「vfat」 — VFAT 文件系统是一个 Linux 文件系统,它与 Microsoft Windows 的 FAT 文件系统的长文件名兼容。这个文件必须被用在 Itanuim 系统的
/boot/efi
分区上。
4.18.6. 编辑分区
注意
4.18.7. 删除分区
4.19. x86、AMD64 和 Intel® 64 系统的引导装载程序(Boot Loader)的配置

图 4.17. 引导装载程序配置
警告
Red Hat Enterprise Linux
(for GRUB). Other partitions may also have boot labels. To add or change the boot label for other partitions that have been detected by the installation program, click once on the partition to select it. Once selected, you can change the boot label by clicking the button.
注意
4.19.1. 高级引导装载程序配置
- The master boot record (MBR) — This is the recommended place to install a boot loader, unless the MBR already starts another operating system loader, such as System Commander. The MBR is a special area on your hard drive that is automatically loaded by your computer's BIOS, and is the earliest point at which the boot loader can take control of the boot process. If you install it in the MBR, when your machine boots, GRUB presents a boot prompt. You can then boot Red Hat Enterprise Linux or any other operating system that you have configured the boot loader to boot.

图 4.18. 引导装载程序安装
注意
/boot
分区所在的同一驱动器上的 MBR。
/boot
分区超过 1024 柱面限制。如果你的系统支持使用 LBA32 扩展来引导超过 1024 柱面限制的操作系统,并且你想把 /boot
分区放置在 1024 柱面之外,你应该选择该选项。
注意
/boot
Linux 保留足够空间以便引导 Linux。其它 Linux 分区可以位于柱面 1024 之后。
parted
中,1024 柱面相当于 528MB。详情请参阅:
http://www.pcguide.com/ref/hdd/bios/sizeMB504-c.html
4.19.2. 救援模式
- 要使用 CD-ROM 来引导 x86、AMD64 或 Intel® 64 系统,在安装引导提示下键入
linux rescue
。Itanium 用户应该键入elilo linux rescue
来进入救援模式。
4.19.3. 其它可选的引导装载程序
- LOADLIN
- 你可以从 MS-DOS 中载入 Linux。不幸的是,这需要在 MS-DOS 分区上有一份 Linux 内核(以及一个初始内存磁盘,如果你有一个 SCSI 适配器的话)。达到这一目的的唯一方法是使用其它途径(譬如引导光盘)来引导你的Red Hat Enterprise Linux 系统,然后将内核复制到 MS-DOS 分区。LOADLIN 在以下网页以及相关的镜像网站中可以找到:
- SYSLINUX
- SYSLINUX 是一个和 LOADLIN 很相似的 MS-DOS 程序。它可以在以下网页以及相关的镜像站点中找到:
- Commercial boot loaders
- 你可以使用商用引导装载程序来载入 Linux。例如,System Commander 和 Partition Magic 能够引导 Linux (但仍需要在你的 Linux 根分区安装 GRUB)。
注意
4.19.4. SMP 主板和 GRUB
4.20. 网络配置

图 4.19. 网络配置

图 4.20. 编辑网络设备
注意
注意
localhost
。
注意
system-config-network
命令来启动「网络管理工具」。如果您不是根用户,它会提示您输入根密码后再继续。
4.21. 时区配置
- 用鼠标在互动地图上点击指定城市(用黄点表示)。一个红色的 X 符号会出现来标明你的选择。
- 你还可以在屏幕底部的列表中选择时区。使用鼠标点击位置来突出显示你的选择。

图 4.21. 配置时区
注意
system-config-date
命令来启动「时间和日期属性工具」。如果您不是根用户,它会提示您输入根密码后再继续。
timeconfig
命令。
4.22. 设置根口令
注意

图 4.22. 根口令
su -
命令暂时登录为根用户。遵循这些最基本的原则将会减少你因键入错误或不正确的命令而损害系统的机会。
注意
su -
,并按 Enter 键,然后,输入根口令并按 Enter 键。
注意
注意
system-config-rootpassword
命令来启动「根密码工具」。如果您不是根用户,它会提示您输入根密码后再继续。
4.23. 软件包组的选择
注意

图 4.23. 软件包组的选择

图 4.24. 软件包组细节
4.24. 准备安装
4.24.1. 准备安装
/root/install.log
中找到,以备今后参考。
警告
4.25. 安装软件包
4.26. 安装完成
- 按 Enter 键 — 导致默认的引导项目被引导。
- 选择一个引导标签,接着按 Enter 键 — 导致引导装载程序引导与该引导标签相对应的操作系统。
- Do nothing — after the boot loader's timeout period, (by default, five seconds) the boot loader automatically boots the default boot entry.
login:
提示或 GUI 登录屏幕(如果你安装了 X 窗口系统并选择要自动启动它的话)。
4.27. Itanium 系统 — 引导机器和安装后的设置
elilo
elilo
后,在 /boot/efi/elilo.conf
配置文件中列举的默认内核就会被载入。(文件中列举的第一个内核是默认内核。)
elilo
命令之后键入 /boot/efi/elilo.conf
中的内核的标签。例如,要载入叫做 linux
的内核,键入:
elilo linux
/boot/efi/elilo.conf
文件:
- At the
Shell>
prompt, change devices to the system partition (mounted as/boot/efi
in Linux). For example, iffs0
is the system boot partition, typefs0:
at the EFI Shell prompt. - Type
ls
at thefs0:\>
to make sure you are in the correct partition. - 然后键入:
Shell>
type elilo.conf
该命令显示配置文件的内容。每个实例都包含一行,以label
开头,其后跟随内核标签名称。标签名称是你在elilo
之后要键入来引导不同内核的名称。
4.27.1. 安装后引导装载程序选项
single
会引导单用户模式,或 mem=1024M
来强制Red Hat Enterprise Linux 使用 1024 MB 内存。要给引导装载程序传递选项,在 EFI Shell 提示下输入以下内容(把 linux
替换成你想引导的内核名称,把 option
替换成你想传递给内核的选项):
elilo linux option
4.27.2. 自动引导Red Hat Enterprise Linux
elilo
和任何引导选项。然而,如果你想配置你的系统自动引导Red Hat Enterprise Linux,你需要配置 EFI Boot Manager。
- 引导 Itanium 系统,然后从 EFI Boot Manager 菜单中选择 。
- 从主菜单中选择。
- 选择在 Linux 中被挂载为
/boot/efi/
的系统分区。 - 选择
elilo.efi
文件。 - 在
Enter New Description:
提示下,键入Red Hat Enterprise Linux 5
,或你想在 EFI Boot Manager 菜单中显示的名称。 - 在
Enter Boot Option Data Type
提示下,如果你不想给 ELILO 引导装载程序传递选项,输入N
代表 。这个选项在多数情况下都能奏效。如果你想给引导装载程序传递选项,你可以在/boot/efi/elilo.conf
配置文件中配置。 - 对
Save changes to NVRAM
提示回答Yes
。这会把你返回到 EFI Boot Maintenance Manager 菜单中。 - 下一步,让 u 键来把它向上移动。你还可以按 d 键把项目向下移动。改变了引导顺序后,选择 。选择 来返回到主菜单。这个菜单项目成为默认引导项目。一个引导选项列表会出现。把 菜单项目移到列表顶端,方法是使用箭头键来选择它,然后按
- Optionally, you can change the boot timeout value by choosing=> from the Main Menu.
- 选择 EFI Boot Manager。来返回到
4.27.2.1. 使用启动脚本
startup.nsh
的启动脚本。最后一个命令应该是引导 Linux 的 elilo
命令。
startup.nsh
脚本应该位于 /boot/efi
分区(/boot/efi/startup.nsh
),并包含以下内容:
echo -off your set of commands elilo
elilo
.
Shell>
prompt, change devices to the system partition (mounted as /boot/efi
in Linux). For example, if fs0
is the system boot partition, type fs0:
at the EFI Shell prompt. Type ls
to make sure you are in the correct partition. Then type edit startup.nsh
. Type the contents of the file and save it.
startup.nsh
文件,并使用它来引导系统。要停止 EFI 载入文件,键入 Ctrl+c。这会中止进程,并把你返回到 EFI shell 提示下。
fsck
程序被用来检查文件系统元数据统一性,还可以选用它修复一个或多个 Linux 文件系统。
第 5 章 删除Red Hat Enterprise Linux
注意
fdisk
工具来创建一个新的带有 undocumented 标志的 MBR:/mbr
。这只重写 MBR 来引导主 DOS 分区。该命令类似:
fdisk /mbr
linux rescue
。这会启动救援模式程序。
list-harddrives
。这条命令会列出你的系统上所有被安装程序识别的硬盘驱动器,以及它们的大小(以 MB 为单位)。
警告
parted
。启动 parted
,此处的 /dev/hda 是要删除的分区所在的设备:
parted /dev/hda
print
命令来查看当前的分区表,从而判定要删除的分区的号码:
print
command also displays the partition's type (such as linux-swap, ext2, ext3, and so on). Knowing the type of the partition helps you in determining whether to remove the partition.
rm
命令来删除分区。例如,要删除次要号码(minor number)为 3 的分区:
rm 3
重要
print
命令来确认它已从分区表中被删除了。
quit
来退出 parted
。
parted
后,在引导提示后键入 exit
来退出救援模式并重新启动系统,而不是继续安装。系统应该自动重启。如果没有重启,你可以用 Control+Alt+Delete 来重启系统。
第 6 章 在 Intel® 或 AMD 系统上进行安装的故障解除
6.1. 你无法引导红帽企业 Linux
6.1.1. 无法使用 RAID 卡来引导
GRUB:
)以及一个闪动的光标。如果情况如此,你将会需要重新为你的系统分区。
/boot
分区。对于有问题的 RAID 卡,你必须有一个用于创建分区的内部硬盘驱动器。
/boot/
分区的同一驱动器上。
6.1.2. 系统显示了信号 11 错误
boot:
提示下键入以下命令(Itanium 系统:在命令前加上 elilo
):
linux mediacheck
http://www.bitwizard.nl/sig11/
6.2. 安装起始部分的问题
6.2.1. 引导入图形化安装遇到问题
resolution=
boot option. This option may be most helpful for laptop users. Another solution to try is the driver=
option to specify the driver that should be loaded for your video card. If this works, it should be reported as a bug as the installer has failed to autodetect your videocard. Refer to 第 8 章 Intel® 和 AMD 系统的其他引导选项 for more information on boot options.
注意
nofb
启动选项。一些需要读硬件信息的屏幕可能会需要这个命令。
6.3. 安装过程中的问题
6.3.1. No devices found to install Red Hat Enterprise Linux
错误信息
No devices found to install Red Hat Enterprise Linux
错误消息,这可能表明某个 SCSI 控制器没有被安装程序识别。
6.3.2. 没有软驱却要保存回溯追踪消息
scp
命令把错误消息复制到另一个远程系统中。
/tmp/anacdump.txt
的文件。一旦这个对话框出现,键入 Ctrl+Alt+F2
来切换到一个新的 tty(虚拟控制台),然后使用 scp
命令把消息写入一个已知运行的远程系统上的 /tmp/anacdump.txt
文件中。
6.3.3. 分区表问题
6.3.4. 使用剩余空间
swap
和一个 /
(根)分区,而且选择了要让根分区使用剩余空间,但是它并不一定会填满整个硬盘驱动器。
/boot
分区才能使 /
(根)分区使用你的硬盘上的所有剩余空间。
6.3.5. 其它分区问题
- 一个
/
(根)分区 - A <swap> partition of type swap
注意
6.3.6. Itanium 系统用户会遇到的其它分区问题
- 一个类型为 VFAT 的
/boot/efi/
分区 - 一个
/
(根)分区 - A <swap> partition of type swap
注意
6.3.7. 看到 Python 错误
/tmp/
中时发生。它看起来类似于:
Traceback (innermost last): File "/var/tmp/anaconda-7.1//usr/lib/anaconda/iw/progress_gui.py", line 20, in run rc = self.todo.doInstall () File "/var/tmp/anaconda-7.1//usr/lib/anaconda/todo.py", line 1468, in doInstall self.fstab.savePartitions () File "fstab.py", line 221, in savePartitions sys.exit(0) SystemExit: 0 Local variables in innermost frame: self: <fstab.GuiFstab instance at 8446fe0> sys: <module 'sys' (built-in)> ToDo object: (itodo ToDo p1 (dp2 S'method' p3 (iimage CdromInstallMethod p4 (dp5 S'progressWindow' p6 <failed>
/tmp/
的链接可能是与其它位置的符号链接,或者 /tmp/
自从创建以来已被改变。这些符号链接或被改变的链接在安装进程中无效,因此安装程序无法在其中写入信息而失败。
http://www.redhat.com/support/errata/
http://rhlinux.redhat.com/anaconda/
http://bugzilla.redhat.com/bugzilla/
http://www.redhat.com/apps/activate/
6.4. 安装后的问题
6.4.1. 在 x86 系统的 GRUB 图形化屏幕中遇到问题
/boot/grub/grub.conf
文件,然后重新引导系统来达到这一目的。
grub.conf
文件中开头为 splashimage
的行变为注释。要将某一行变为注释,在这一行的起首插入 #
字符。
b
来引导系统。
grub.conf
文件将会被重读,你所做的改变就会生效。
grub.conf
文件中不注释掉(或添加)以上提到的那一行。
6.4.2. 引导入图形环境
startx
命令来启动 X 窗口系统图形化界面。
/etc/inittab
这个文件,只需改变运行级别部分中的一个数字即可。编辑完毕后,重新引导计算机,您下次登录时就会看到图形化登录提示。
su
命令来变成根用户身份。
gedit /etc/inittab
来使用 gedit 编辑这个文件。/etc/inittab
文件就会打开。在第一个屏幕上,您会看到类似以下的部分:
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
# id:3:initdefault:
id:3:initdefault:
这一行中的数字从 3
改为 5
。
警告
3
改为 5
。
id:5:initdefault:
6.4.3. 引导入 X 窗口系统(GUI)的问题
6.4.4. X 服务器崩溃和非根用户的问题
df -h
df
命令会帮助您诊断哪个分区已满。关于 df
命令及其选项(如本例中使用的 -h
选项)的更多信息,请参阅 df
的说明书页,方法是在 shell 提示下键入 man df
。
/home/
和 /tmp/
分区有时会被用户文件很快填满。您可以删除些老文件来在分区里腾出些位置。腾出些空间后,试着再以普通用户身份运行 X 服务器。
6.4.5. 登录时的问题
linux single
。
elilo
来输入引导命令。
e
来编辑。您会看到您所选定的引导标签的配置文件中的项目列表。
kernel
开始的行并输入 e
来编辑这个启动项。
kernel
行的结尾处,添加:
single
b
来引导系统。
#
提示符后,您需要输入 passwd root
,它允许您为根用户输入一个新口令。然后,您可以输入 shutdown -r now
来使用新的根用户口令重新启动这个系统。
su -
and enter your root password when prompted. Then, type passwd <username>
. This allows you to enter a new password for the specified user account.
http://hardware.redhat.com/hcl/
6.4.6. 你的内存不能够被识别吗?
cat /proc/meminfo
命令来校验。
/boot/grub/grub.conf
文件中添加以下一行:
mem=xxM
/boot/grub/grub.conf
文件中,以上的例子与下面相似:,
# NOTICE: You have a /boot partition. This means that # all kernel paths are relative to /boot/ default=0 timeout=30 splashimage=(hd0,0)/grub/splash.xpm.gz title Red Hat Enterprise Linux (2.6.9-5.EL) root (hd0,0) kernel /vmlinuz-2.6.9-5.EL ro root=/dev/hda3 mem=128M
grub.conf
文件中的改变将会反映在您的系统中。
e
来编辑。 您所选定的引导标签的配置文件中的项目列表就会在您面前出现。
kernel
的行,然后键入 e
来编辑这一引导项目。
kernel
行的末尾,添加:
mem=xxM
b
来引导系统。
elilo
来输入引导命令。
6.4.7. 您的打印机无法工作
system-config-printer
命令来启动「打印机配置工具」。如果您不是根用户,它会提示您输入根密码后再继续。
6.4.8. 配置声卡遇到问题
system-config-soundcard
)。
system-config-soundcard
命令来启动 「声卡配置工具」。如果您不是根用户,它会提示您输入根密码后再继续。
6.4.9. 基于 Apache httpd
的服务/Sendmail 在启动时挂起
httpd
的服务或 Sendmail 挂起的错误,请检查以下行包括在 /etc/hosts
文件中:
127.0.0.1 localhost.localdomain localhost
第 7 章 用于 Intel® 或 AMD 系统的驱动介质
7.1. 为什么需要驱动程序盘
- 如果你需要从块设备中执行安装
- 如果你需要从 PCMCIA 设备中执行安装
- 如果你在安装引导提示下输入
linux dd
(Itanium 用户应该输入elilo linux dd
)来运行安装程序 - 如果你在一个不具备任何 PCI 设备的计算机上运行安装程序
7.2. 驱动程序介质到底是什么?
注意
7.3. 如何获取驱动程序介质
images/drvnet.img
— 网卡驱动程序,以及 images/drvblock.img
— 用于 SCSI 控制器的驱动程序)。这些映像包括许多常见和罕见的驱动程序。
注意
linux dd=url
命令来替代 linux dd
引导命令,其中的 url 是驱动程序映像所在的 HTTP、FTP、或 NFS 地址。
7.3.1. 根据映像文件创建驱动程序盘
- 在第一个软盘(或 LS-120 磁盘)驱动器中插入一张空白的、格式化的软盘(Itanium 系统用户则插入 LS-120 磁盘)。
- 在含有驱动程序盘映像(如:
drvnet.img
)的同一目录下,以根用户身份键入dd if=drvnet.img of=/dev/fd0
。
注意
driverdisk.img
复制到 USB pen drive 上。例如:
dd if=driverdisk.img of=/dev/sda
7.4. 在安装过程中使用驱动程序映像
boot:
prompt, enter linux dd
if using an x86 or x86-64 system. Refer to 第 4.3.1 节 “在 x86、AMD64 和 Intel® 64 系统上引导安装程序。” for details on booting the installation program. For Itanium systems, at the Shell>
prompt, type elilo linux dd
. Refer to 第 4.3.2 节 “在 Itanium 系统上引导安装程序” for details on booting the installation program.
第 8 章 Intel® 和 AMD 系统的其他引导选项
boot:
提示下键入你想启用的命令。
引导时的命令参数
askmethod
- 该命令请你选择从 Red Hat Enterprise Linux 光盘中引导时你想使用的安装方法。
apic
- 这个 x86 引导命令绕过在 Intel 440GX 芯片组 BIOS 中可能会普遍遇到的程序错误,它只应该使用安装程序内核来执行。
apm=allow_ints
- 这个 x86 引导命令改变挂起服务的处理方式(对于某些便携电脑来说可能是必要的)。
apm=off
- 这个 x86 引导命令禁用 APM(高级电源管理)。它很有用处,因为某些 BIOS 的电源管理(APM)问题重重,很容易崩溃。
apm=power_off
- 这个 x86 引导命令会使Red Hat Enterprise Linux 默认关闭(断电)系统。它对于不默认关闭的 SMP 系统来说有用。
apm=realmode_power_off
- 某些 BIOS 在基于 x86 的系统试图关闭(断电)机器时崩溃。该命令把操作方法从 Windows NT 方式改为 Windows 95 方式。
dd
- 这个参数会导致安装程序提示你使用驱动程序盘。
dd=url
- 这个参数会导致安装程序提示你使用来自指定 HTTP、FTP、或 NFS 网络地址的驱动程序映像。
display=ip:0
- 该命令允许远程显示转发。其中,ip 应该用你想充当显示系统的 IP 地址替换。在你想用来显示的系统上,你必须执行
xhost +remotehostname
命令,这里的 remotehostname 是你运行显示命令的主机名称。使用xhost +remotehostname
命令限制了对远程显示终端的访问,而且不允许来自没有被确切授予远程访问权的人员和系统的访问。 driverdisk
- 该命令执行的功能和
dd
命令相同,它还会在 Red Hat Enterprise Linux 安装中提示你使用驱动程序盘。 ide=nodma
- 该命令禁用所有 IDE 设备上的 DMA,在遇到 IDE 相关的问题时可能有用。
linux upgradeany
- 该命令会放松对你的
/etc/redhat-release
文件的某些检查。如果你的/etc/redhat-release
文件已从默认内容被改变了。在试图升级 Red Hat Enterprise Linux 5 时就可能会找不到你的 Red Hat Enterprise Linux 安装。只有在你现存的Red Hat Enterprise Linux 安装没有被检测到时才使用该选项。 mediacheck
- 该命令给你提供测试安装源完整性的选择(如果使用的是基于 ISO 的方法)。该命令可用于光盘、DVD、硬盘 ISO、和 NFS ISO 安装方法。在试图安装前先校验 ISO 映像的完整性会帮助你避免在安装中经常遇到的问题。
mem=xxxm
- 该命令允许你改变内核在机器上检测到的内存数量。在某些较老的仅能检测到 16MB 内存的系统上,以及某些较新的视频卡与主内存共享视频内存的机器上,你可能需要使用该命令。当执行这项命令时,xxx 应该用以 MB 为单位的内存数量替换。
nmi_watchdog=1
- 该命令启用内建的内核死锁检测器。它可以用来调试硬性内核锁定。通过执行定期的 NMI(不可屏蔽中断)中断,内核可以监控 CPU 是否被锁,并在需要时打印出调试消息。
noapic
- 这个 x86 引导命令告诉内核不要使用 APIC 芯片。它对于某些带有不良 APIC(如 Abit BP6)或错误重重的 BIOS 的母板有帮助。基于 NVIDIA nForce3 芯片集(如 ASUS SK8N)的系统有一个已知的问题。它在引导时间 IDE 探测时会挂起,或显示其它中断发送的问题。
noht
- 这个 x86 引导命令禁用超线程。
-
nofb
- 该命令禁用帧缓冲支持,允许安装程序在文本模式中运行。它可能是带有某些读屏硬件的辅助功能所必需的。
nomce
- 这个 x86 引导命令禁用在 CPU 上执行的自我诊断检查。内核默认启用 CPU 的自我诊断(称为机器检查意外,Machine Check Exception)。在一些早期的 Compaq Pentium 系统上,你可能需要这个选项,因为它们不能正确支持处理器错误检查。几个其它便携电脑,尤其是那些使用 Radeon IGP 芯片组的便携电脑,可能也需要这个选项。
nonet
- 这个命令禁止网络硬件检测。
nopass
- 该命令禁止把键盘和鼠标信息传递给安装程序的第二阶段。当执行网络安装时,它可以用来在安装的第二阶段测试鼠标和键盘配置屏幕。
nopcmcia
- 该命令忽略系统上的任何 PCMCIA 控制器。
noprobe
- 该命令禁用硬件检测,相反,它提示用户来提供硬件信息。
noshell
- 该命令禁止在安装时使用第二个虚拟控制台上的 shell。
nostorage
- 这个命令禁用对 SCSI 和 RAID 存储硬件的探测。
nousb
- 该命令禁止在安装中载入 USB 支持。如果安装程序在进程早期容易挂起,该命令就能够起到作用。
nousbstorage
- this command disables the loading of the usbstorage module in the installation program's loader. It may help with device ordering on SCSI systems.
numa=off
- Red Hat Enterprise Linux 支持 AMD64 体系上的 NUMA(Non-Uniform Memory Access,不规范内存存取)。 虽然所有 CPU 能够存取不带 NUMA 支持的内存,在更新内核中存在的 NUMA 支持却能够导致内存分配尽可能地偏向于引发它们的 CPU,从而减少 CPU 间的内存交通。这能够在某些应用程序中显著地提高性能。要恢复到原始的无 NUMA 行为,指定这个引导选项。
reboot=b
- 这个 x86、AMD64 和 Intel® EM64T 命令改变内核试图重新引导机器的方式。如果系统关闭时内核被挂起,该命令会导致系统被成功地重新引导。
rescue
- this command runs rescue mode. Refer to 第 26 章 基本系统恢复 for more information about rescue mode.
resolution=
- 告诉安装程序要运行哪种视频模式。它接受所有标准的分辨率,如
640x480
、800x600
、1024x768
等等。 serial
- 该命令启用串行控制台支持。
text
- 该命令禁用图形化安装程序,并强制安装程序在文本模式下运行。
updates
- 该命令会提示你插入包含更新(错误修正)的软盘。如果你执行的是网络安装,并且已把更新映像存放在服务器上的
rhupdates/
目录下,则不需要使用该命令。 updates=
- 这个命令允许你指定一个 URL,用来获取 anaconda 安装程序的更新(错误修复)。
vnc
- 该命令允许你从 VNC 服务器中安装。
vncpassword=
- 该命令设置用来连接 VNC 服务器的密码。
第 9 章 GRUB 引导装载程序
9.1. 引导装载程序和系统架构
表 9.1. 不同体系结构所使用的引导装载程序
体系结构 | 引导装载程序 |
---|---|
AMD® AMD64 | GRUB |
IBM® eServer™ System i™ | OS/400® |
IBM® eServer™ System p™ | YABOOT |
IBM® System z® | z/IPL |
IBM® System z® | z/IPL |
Intel® Itanium™ | ELILO |
x86 | GRUB |
9.2. GRUB
9.2.1. GRUB 和 x86 引导过程
- The Stage 1 or primary boot loader is read into memory by the BIOS from the MBR[4]. The primary boot loader exists on less than 512 bytes of disk space within the MBR and is capable of loading either the Stage 1.5 or Stage 2 boot loader.
- 如果有需要,第 1.5 阶段的引导装载程序由第一阶段的引导装载程序读入内存。 某些硬件在进入第二阶段引导装载程序之前,要求一个中间步骤。当
/boot/
分区处于硬盘的 1024 柱面之上,或者使用 LBA 模式时,这就会发生。第 1.5 阶段引导装载程序位于/boot/
分区或者是 MBR 和/boot/
分区的一小部分空间里。 - 第二阶段或第二级的引导装载程序被读入内存。 第二级引导装载程序显示 GRUB 菜单和命令环境。这个界面允许用户选择引导哪个内核或操作系统、把参数传递给内核、或者查看系统参数。
- 第二级的引导装载程序把操作系统或内核,以及
/boot/sysroot/
里的内容读入内存。 一旦 GRUB 决定启动哪个操作系统或者内核,它就会把它载入内存并把机器的控制权交给那个操作系统。
警告
9.2.2. GRUB 的特征
- GRUB 在 x86 机器上,提供一个真正基于命令的、先于操作系统(pre-OS)的环境。 这个特征给予了用户用指定选项装载操作系统或收集系统信息最大的灵活性。多年以来,很多非 x86 体系结构的系统已经采用了先于操作系统(pre-OS)的环境,且允许系统从命令行引导。
- GRUB supports Logical Block Addressing (LBA) mode. LBA places the addressing conversion used to find files in the hard drive's firmware, and is used on many IDE and all SCSI hard devices. Before LBA, boot loaders could encounter the 1024-cylinder BIOS limitation, where the BIOS could not find a file after the 1024 cylinder head of the disk. LBA support allows GRUB to boot operating systems from partitions beyond the 1024-cylinder limit, so long as the system BIOS supports LBA mode. Most modern BIOS revisions support LBA mode.
- GRUB can read ext2 partitions. This functionality allows GRUB to access its configuration file,
/boot/grub/grub.conf
, every time the system boots, eliminating the need for the user to write a new version of the first stage boot loader to the MBR when configuration changes are made. The only time a user needs to reinstall GRUB on the MBR is if the physical location of the/boot/
partition is moved on the disk. For details on installing GRUB to the MBR, refer to 第 9.3 节 “安装 GRUB”.
9.3. 安装 GRUB
/sbin/grub-install <location>
, where <location> is the location that the GRUB Stage 1 boot loader should be installed. For example, the following command installs GRUB to the MBR of the master IDE device on the primary IDE bus:
/sbin/grub-install /dev/hda
重要
9.4. GRUB 术语
9.4.1. 设备名
(<type-of-device><bios-device-number>,<partition-number>)
hd
for a hard disk or fd
for a 3.5 diskette. A lesser used device type is also available called nd
for a network disk. Instructions on configuring GRUB to boot over the network are available online at http://www.gnu.org/software/grub/manual/.
0
and a secondary IDE hard drive is numbered 1
. This syntax is roughly equivalent to that used for devices by the kernel. For example, the a
in hda
for the kernel is analogous to the 0
in hd0
for GRUB, the b
in hdb
is analogous to the 1
in hd1
, and so on.
0
. However, BSD partitions are specified using letters, with a
corresponding to 0
, b
corresponding to 1
, and so on.
注意
0
,而不是从 1
开始的。这是新用户最常犯的错误之一。
(hd0)
来引用第一个硬盘,用 (hd1)
来引用第二个硬盘。GRUB 用 (hd0,0)
引用第一个硬盘里的第一个分区,用 (hd1,2)
引用第二个硬盘里的第三个分区。
- 不管系统的硬盘驱动器是 IDE 还是 SCSI,所有的硬盘驱动器都用字母
hd
开始。而fd
用来指定 3.5 寸软盘。 - 要指定整个设备而不是某个分区,可以把分区号码和逗号都去掉。当 GRUB 为某个特定磁盘配置主引导分区时,这很重要。例如,
(hd0)
指定了第一个设备上的主引导分区,(hd3)
指定第四个设备上的主引导分区。 - 如果系统有多个驱动器设备,在 BIOS 里设置引导顺序就很重要。如果系统只有 IDE 或 SCSI 驱动器,这当然很简单,但是如果两种设备都有的话,使存放引导分区的驱动器先被访问就很关键了。
9.4.2. 文件名和块列表(Blocklist)
(<device-type><device-number>,<partition-number>)</path/to/file>
hd
, fd
, or nd
. Replace <device-number> with the integer for the device. Replace </path/to/file> with an absolute path relative to the top-level of the device.
0+50,100+25,200+1
(hd0,0)+1
chainloader
命令:
chainloader +1
9.4.3. 根文件系统和 GRUB
(hd0,0)/grub/splash.xpm.gz
位于 (hd0,0)
分区(实际上是系统的 /boot/
分区)的顶层(或根)的 /grub/
目录。
kernel
命令被执行。一旦 Linux 内核被引导,它设立 Linux 用户所熟悉的根文件系统。之前的 GRUB 根文件系统和它所挂载的文件系统都不再被使用;它们只在引导内核文件时存在。
9.5. GRUB 界面
注意
- Menu Interface
- 这是安装程序配置 GRUB 时显示的缺省界面。操作系统或者预配置内核的列表会出现并按名字排序。用箭头键可以选择缺省选项之外的其他选项,然后按 Enter 键来引导它。如果你什么都不做,在超过预定时间后 GRUB 会装载缺省选项。按 e 键来进入条目编辑器界面,或者按 c 键来装载命令行界面。Refer to 第 9.7 节 “GRUB 菜单配置文件” for more information on configuring this interface.
- Menu Entry Editor Interface
- 要访问菜单条目编辑器,你可以在引导装载程序里按 e 键。然后屏幕会显示条目的 GRUB 命令行,在引导操作系统之前,用户可以修改这些命令行,例如添加命令行(o 在当前行之后插入新的一行,而 O 则在当前行之前插入新命令行)、编辑命令行(e)或者删除命令行(d)。在完成了所有的修改后,按 b 键可以执行该命令行并引导操作系统。按 Esc 可以取消所有的修改并重新载入标准的菜单界面。按 c 键可以装载命令行界面。
注意
For information about changing runlevels using the GRUB menu entry editor, refer to 第 9.8 节 “Changing Runlevels at Boot Time”. - Command Line Interface
- 命令行界面是最基本的 GRUB 界面,但它也是可以进行最大限度控制的界面。你可以输入任何相关的 GRUB 命令并按 Enter 键来执行它。这个界面提供一些高级的类似于 shell 的特征,包括按 Tab 键依据上下文来自动完成命令,Ctrl 键组合如 Ctrl+a 来移动到一行的起始处、以及 Ctrl+e 移动到一行的末尾。此外,就象在
bash
shell 里一样,你也可以使用箭头键、Home、End 和 Delete 键。Refer to 第 9.6 节 “GRUB 命令” for a list of common commands.
9.5.1. 界面装载顺序
9.6. GRUB 命令
boot
— 引导操作系统或者最后被装载的 chain 装载程序。chainloader </path/to/file>
— Loads the specified file as a chain loader. If the file is located on the first sector of the specified partition, use the blocklist notation,+1
, instead of the file name.下面是chainloader
命令的一个示例:chainloader +1
displaymem
— 根据 BIOS 信息,显示当前的内存使用情况。这对在引导前确认系统有多少内存很有用。initrd </path/to/initrd>
— Enables users to specify an initial RAM disk to use when booting. Aninitrd
is necessary when the kernel needs certain modules in order to boot properly, such as when the root partition is formatted with the ext3 file system.下面是initrd
命令的一个示例:initrd /initrd-2.6.8-1.523.img
install <stage-1> <install-disk> <stage-2>
— Installs GRUB to the system MBR.p
config-file<stage-1>
— Signifies a device, partition, and file where the first boot loader image can be found, such as(hd0,0)/grub/stage1
.<install-disk>
— Specifies the disk where the stage 1 boot loader should be installed, such as(hd0)
.<stage-2>
— Passes the stage 2 boot loader location to the stage 1 boot loader, such as(hd0,0)/grub/stage2
.p
<config-file>
— This option tells theinstall
command to look for the menu configuration file specified by<config-file>
, such as(hd0,0)/grub/grub.conf
.
警告
install
命令覆盖主引导分区里任何已有的信息。kernel </path/to/kernel> <option-1> <option-N>
... — Specifies the kernel file to load when booting the operating system. Replace </path/to/kernel> with an absolute path from the partition specified by the root command. Replace <option-1> with options for the Linux kernel, such asroot=/dev/VolGroup00/LogVol00
to specify the device on which the root partition for the system is located. Multiple options can be passed to the kernel in a space separated list.下面是kernel
命令的一个示例:kernel /vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00
前面例子里的选项指定了 Linux 的根文件系统位于hda5
分区。root (<device-type><device-number>,<partition>)
— Configures the root partition for GRUB, such as(hd0,0)
, and mounts the partition.下面是root
命令的一个示例:root (hd0,0)
rootnoverify (<device-type><device-number>,<partition>)
— Configures the root partition for GRUB, just like theroot
command, but does not mount the partition.
help --all
来获取命令的完整列表。关于所有 GRUB 命令的描述,请参考 http://www.gnu.org/software/grub/manual/ 上的在线文档。
9.7. GRUB 菜单配置文件
/boot/grub/grub.conf
), which is used to create the list of operating systems to boot in GRUB's menu interface, essentially allows the user to select a pre-set group of commands to execute. The commands given in 第 9.6 节 “GRUB 命令” can be used, as well as some special commands that are only available in the configuration file.
9.7.1. 配置文件结构
/boot/grub/grub.conf
。为菜单界面设置全局参数的命令位于这个文件的顶部,后面的内容是菜单里列出的每个操作系统或者内核。
default=0 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-2.el5PAE) root (hd0,0) kernel /boot/vmlinuz-2.6.18-2.el5PAE ro root=LABEL=/1 rhgb quiet initrd /boot/initrd-2.6.18-2.el5PAE.img # section to load Windows title Windows rootnoverify (hd0,0) chainloader +1
注意
title
行。在前面的例子里,如果要把 Windows
设置为缺省选项,你可以把 default=0
修改为 default=1
。
9.7.2. 配置文件指令
chainloader </path/to/file>
— Loads the specified file as a chain loader. Replace </path/to/file> with the absolute path to the chain loader. If the file is located on the first sector of the specified partition, use the blocklist notation,+1
.color <normal-color> <selected-color>
— Allows specific colors to be used in the menu, where two colors are configured as the foreground and background. Use simple color names such asred/black
. For example:color red/black green/blue
default=<integer>
— Replace <integer> with the default entry title number to be loaded if the menu interface times out.fallback=<integer>
— Replace <integer> with the entry title number to try if the first attempt fails.hiddenmenu
— 当超过timeout
所指定的时间后,阻止 GRUB 菜单界面的显示以及装载default
条目。用户可以按 Esc 键来查看标准 GRUB 菜单。initrd </path/to/initrd>
— Enables users to specify an initial RAM disk to use when booting. Replace </path/to/initrd> with the absolute path to the initial RAM disk.kernel </path/to/kernel> <option-1> <option-N>
— Specifies the kernel file to load when booting the operating system. Replace </path/to/kernel> with an absolute path from the partition specified by the root directive. Multiple options can be passed to the kernel when it is loaded.password=<password>
— Prevents a user who does not know the password from editing the entries for this menu option.Optionally, it is possible to specify an alternate menu configuration file after thepassword=<password>
directive. In this case, GRUB restarts the second stage boot loader and uses the specified alternate configuration file to build the menu. If an alternate menu configuration file is left out of the command, a user who knows the password is allowed to edit the current configuration file.关于 GRUB 的安全性的更多信息,请参考《Red Hat Enterprise Linux Deployment Guide》里的“工作站安全性”章节。root (<device-type><device-number>,<partition>)
— Configures the root partition for GRUB, such as(hd0,0)
, and mounts the partition.rootnoverify (<device-type><device-number>,<partition>)
— Configures the root partition for GRUB, just like theroot
command, but does not mount the partition.timeout=<integer>
— Specifies the interval, in seconds, that GRUB waits before loading the entry designated in thedefault
command.splashimage=<path-to-image>
— Specifies the location of the splash screen image to be used when GRUB boots.title group-title
— 指定和用来装载内核或操作系统的特定的一组命令一起使用的标题。
#
)开头。
9.8. Changing Runlevels at Boot Time
- 当 GRUB 菜单绕过屏幕(bypass screen)出现时,按任何键来进入 GRUB 菜单(在 3 秒钟之内)。
- 按 a 键可以在
kernel
命令后附加选项。 - Add
<space><runlevel>
at the end of the boot options line to boot to the desired runlevel. For example, the following entry would initiate a boot process into runlevel 3:grub append> ro root=/dev/VolGroup00/LogVol00 rhgb quiet 3
9.9. 其它资料
9.9.1. 安装了的文档
/usr/share/doc/grub-<version-number>/
— This directory contains good information about using and configuring GRUB, where <version-number> corresponds to the version of the GRUB package installed.info grub
— GRUB info 页包含了指南、用户参考手册、程序员参考手册和关于 GRUB 及其用法的 FAQ 文档。
9.9.2. 有用的网站
- http://www.gnu.org/software/grub/ — GNU GRUB 项目的主页。这个网站包含了 GRUB 开发的信息和 FAQ。
- http://kbase.redhat.com/faq/FAQ_43_4053.shtm — 详述非 Linux 操作系统的引导。
- http://www.linuxgazette.com/issue64/kohli.html — 讨论从头开始配置 GRUB 的介绍性文章,包括对 GRUB 命令行选项的概述。
第 10 章 关于 Itanium 和 Linux 的额外资料
- http://www.intel.com/products/processor/itanium2/ — 关于 Itanium 处理器的 Intel 网站
- http://developer.intel.com/technology/efi/index.htm?iid=sr+efi — 关于可扩展固件界面(Extensible Firmware Interface,EFI)的 Intel 网站
- http://www.itanium.com/business/bss/products/server/itanium2/index.htm — 关于 Itanium 2 处理器的 Intel 网站
部分 II. IBM POWER 体系结构 - 安装和引导
第 11 章 安装前的准备工作
11.1. 选择升级还是安装?
11.2. IBM eServer System p 和 System i 的筹备工作
11.3. 你有足够的磁盘空间吗?
- 有足够的未分区[5]的磁盘空间来安装Red Hat Enterprise Linux。或者
- 有一个或多个可以删除的分区,因此能够空出足够的空间来安装Red Hat Enterprise Linux。
11.4. 你能用 CD-ROM 或 DVD 光盘安装吗?
11.5. 筹备网络安装
注意
注意
boot:
提示下输入以下命令(Itanium 系统:在命令前加上 elilo
):
linux mediacheck
注意
/location/of/disk/space
。通过 FTP、NFS 或 HTTP 共享的目录将被指定为 /export/directory。例如,/location/of/disk/space
可能是一个你创建的叫 /var/isos
的目录。对于 HTTP 安装来说, /export/directory
将是 /var/www/html/rhel5
。
- 使用以下命令在安装磁盘里创建一个 iso 映像文件:
- 对于 DVD:
dd if=/dev/dvd of=/location/of/disk/space/RHEL5.iso
这里的 dvd 指的是 DVD 驱动设备: - 对于 CD-ROM:
dd if=/dev/cdrom of=/location/of/disk/space/diskX.iso
在这里,cdrom 指的是 CD 驱动设备,X 是你复制的磁盘的编号,从 1 开始,以此类推。
11.5.1. 筹备 FTP 和 HTTP 安装
- 对于 DVD:
mount -o loop /location/of/disk/space/RHEL5.iso /export/directory/
在这里,/export/directory 将通过 FTP 或 HTTP 作为共享目录。 - 对于 CDROM:
mount -o loop /location/of/disk/space/diskX.iso /export/directory/diskX/
对于每个 CDROM ISO 映像文件重复上面的步骤,例如:mount -o loop /var/isos/disk1.iso /var/www/html/rhel5-install/disk1/
/export/directory
目录通过 FTP 或 HTTP 共享,并且验证客户的访问。你可以检查这个目录是否可以从服务器自身来访问,然后再从你准备安装的同一子网的其他机器上进行访问。
11.5.2. 筹备 NFS 安装
- 对于 DVD:
mv /location/of/disk/space/RHEL5.iso /export/directory/
- 对于 CDROM:
mv /location/of/disk/space/disk*.iso /export/directory/
/etc/exports
里进行设置确保 /export/directory
通过 NFS 输出。
/export/directory client.ip.address(ro,no_root_squash)
/export/directory *(ro,no_root_squash)
/sbin/service nfs start
命令)。如果 NFS 已在运行,重新加载配置文件(在 Red Hat Enterprise Linux 系统上运行 /sbin/service nfs reload
)。
11.6. 筹备硬盘驱动器安装
注意
- 使用一组光盘集合 — 从每个安装光盘(或 DVD)中创建光盘 ISO 映像文件。对于每个光盘,在 Linux 系统上执行以下命令(对于 DVD 只执行一次):
dd if=/dev/cdrom of=/tmp/file-name.iso
- 使用 ISO 映像 — 把这些映像传输到要安装的系统上。在试图安装前,请校验 ISO 映像的完整性。这会帮助你避免硬盘安装过程中经常会遇到的问题。要在执行安装前校验 ISO 映像的完整性,请使用 md5sum 程序(该程序有适用于各类操作系统的版本)。md5sum 程序应该可以在提供 ISO 映像的同一服务器上找到。
updates.img
的文件,你可以用它来更新anaconda
。请参考 anaconda
RPM 软件包中的 install-methods.txt
文件来获取关于各种安装 Red Hat Enterprise Linux 的途径,以及怎样应用安装程序更新。
第 12 章 在 IBM System i 和 IBM System p 上进行安装
- Becoming familiar with the installation program's user interface
- 启动安装程序
- 选择安装方法
- 安装中的配置步骤(语言、键盘、鼠标、分区等等)
- 结束安装
12.1. 图形化安装程序用户界面
注意
yaboot:
prompt:
linux text