LinuxSir.cn,穿越时空的Linuxsir!

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

¤绝对原创¤红帽子认证辅导教程第三章 安装 V.2003.1.8

[复制链接]
发表于 2003-1-12 09:47:31 | 显示全部楼层 |阅读模式
¤绝对原创¤红帽子认证辅导教程第三章 安装 V.2003.1.8
声明:  
本文的中文版权属于译者probing所有  
你可以随便使用和补充资料但请注明译者,前提是不要用在商业用途上.如果用于商业请与我联系.  
probinger@21cn.com zhoubinn@yeah.net  
做为redhat的非官方的补充学习资料,通过以认证资料的学习为主线来贯串整个有关的知识.  
原英文资料目前你可以从www.linuxsir.cn的发行版redhat专题中找到  
本文不遵循任何条约,但在全部完成后可能会有改变.  
特别注意:  
如果你在阅读本文档时发现所写的内容与你所知不符或者你觉得错处太多或者在该用专业术语的地方却被不明确的词语代替,请原凉,因为译者的水平有限,但是任推荐你阅读本文档,因为好的教科书好找,但是撰文让你挑错的文档难寻,但这也不是说译者没有认真的做这件事.^-^  
别的论坛及网站请勿转载 如要转载请和linuxsir及我联系(方式是去linuxsir上发贴注明要求)  
翻译说明:  
本人不保证这些翻译是完全正确的,也不保证它对你有用,虽然我想保证.  
由于本人水平有限,本文中必然存在许多错误和不当之处,本人欢迎你对此修改  
所以,我采用中英文对照方式,便于大家查询使用文档.
文档约定:  
本文档随时更新,如要确定你拿到的是否是最新的版本请看标题旁的修改时间  
类似(*注,....)的内容就是原英文资料没有的,是译者的补充  
有些经验参照了linuxsir上兄弟们的经验,如果你按步就班的出了问题不要来问我,请到www.linuxsir.cn上发贴询问.  
本文档首先考虑的是基于理论上的完整性,但在适当的地方译者会放上实际操作中可能出现的问题及解决的办法,当然本人觉的这更象个大杂烩而不太象一个标准的文档,但这也没有什么关系,重要的是你知道了新的东西,你的知识又充足了一点.  
基于译者的机器配置如下  
主板 磐英EPOX BX3  
处理器 intel celeron433超541  
显卡 国产金鹰TNT2PRO版 32M  
声卡 国产青苹果CMI8738  
显示器 三星550S  
硬盘 IBM 桌面之星系列15.3G + 希捷ST32120A 2.1G  
内存 KINGMAX64M + KINGMAX128M  
光驱 国产狮王50x  
软驱 三星1.44M  
鼠标 普通双飞燕3D  
键盘 ACER  
系统 redhat8.0硬盘完全安装 英文版
主板 大众FIC VL601
处理器 intel celeron433
显卡 国产金鹰TNT2PRO版 32M  
声卡 国产青苹果CMI8738  
显示器 三星550S  
硬盘 IBM 桌面之星系列15.3G + 希捷ST U5 20G
内存 KINGMAX64M + KINGMAX128M +HY64M
光驱 国产狮王50x  
软驱 三星1.44M  
鼠标 普通双飞燕3D  
键盘 ACER  
系统 redhat8.0硬盘完全安装 英文版
本章学习要达到的目标:
详细的7.*和8.*安装步骤和实例分析,完整的概念和论述.
附带各种安装出现的怪问题和解决办法和原理探讨.
Chapter 3
第三章
Installation
安装
Certification Objectives
具体目标
3.01      Disk Partitioning Strategies for Server and Workstation Installations
3.01          服务器和工作站的硬盘分区策略
3.02      Choosing an Installation Class: Workstation, Server, Laptop, or Custom
3.02          安装选项:工作站,服务器,笔记本计算机和定制
3.03      The Installation Process
3.03          安装过程
3.04      The LILO Boot Process and Intel Hardware/BIOS Issues
3.04          LILO的启动过程和英特尔硬件/BIOS内容
3.05      Using loadlin
3.05          loadlin的使用
3.06      Additional Installation Details
3.06          附加的安装详细资料
3.07      Creating Partitions: Details
3.07          创建分区:详细资料
3.08      Viewing Boot Time Information
3.08          观察启动时的信息
3.09      The Bootup Messages in dmesg
3.09          启动环境信息
3.10      Understanding the Standard Boot Process
3.10          理解标准启动的过程
3.11      Validating the Installation
3.11          确认安装
3.12      Logging In as Root
3.12          作为root登录
3.13      How Do You Know When Your Hardware Is Not Supported?
3.13          你如何知道当你的硬件不被支持?  
3.14      Sample Installation Exercises
3.14          实际示范安装

(*注:章节论述要点如下)
Installation Options.  
安装选项
Workstation and Laptop Installation Details.  
工作站和笔记本电脑安装的详细资料
Server Installation Details.  
服务器安装的详细资料
The Custom Installation Option.  
定制安装的选项
Disk Space Required for Installation Options.  
安装选项时的硬盘空间需求
Preinstallation Preparation.  
安装前的准备工作
PreInstalling Hardware Information.  
收集硬件信息
Boot the First CD-ROM.
首先从光驱启动
Installation Diskette(s) May Be Needed.  
安装或许需要软盘
Almost Ready to Install  
准备开始安装
CD-ROM or Boot Diskette Starts Installation.  
从光驱或软盘开始安装
Quick Overview of Installation.  
快速浏览安装
Boot Control of Your System..  
引导调试你的系统
/etc/lilo.conf  
What to Do When You See LILO..  
当你看见LILO的时候做什么?  
LILO Parameters.  
LILO的参数
LILO Errors.  
LILO的错误
What to Do If /etc/lilo.conf Changes.  
如果/etc/lilo.conf改变了该怎么办?
Partition Concepts.  
分区的概念
Preparation Details Before fdisk or Disk Druid.  
在执行fdisk或Disk Druid之前准备好详细资料
Why Separate File Systems?.  
为什么分隔文件系统?
Linux File Systems: /tmp /boot /usr/local /var /home.  
linux的文件系统:/tmp /boot /usr/local /var /home
Possible Target File Systems for Separate File System Placement  
为了单独的文件系统准备目标文件系统
Swap Space Partition Sizing and Placement  
交换分区的大小和位置
Hardware Installation Scenarios.  
硬件安装脚本
Hard Disk Installation.  
硬盘安装
Source Files on the CD-ROM..  
光驱上的来源文件
Source Files from Network Installations.  
网络安装上的来源文件
Source Files from FTP and HTTP.  
FTP和HTTP上的来源文件
Source Files from NFS.  
NFS上的来源文件
Source Files from Samba.  
Samba上的来源文件
The Installation Log File.  
安装什时的日志文件
The Console Installation Output Screens.  
控制台安装的屏幕输出
Installation Complete.  
安装完成
Introduction to Installation Exercises.  
实例安装入门

There is a perception that a workstation and server are two distinct systems. In the Linux environment, this categorization is more an optimization for usage than a type of platform. Both Workstation and Server installations use the exact same installation disk, the difference being the particular software sets, also called packages, loaded by each option.
工作站和服务器是两种不同的系统.在linux的世界里.这比一种单一的平台明显的具有更多的优势.工作站和服务器都是相同的硬盘设置,区别是不同的软件设置,也称软件包管理,每个都有不同的设置.
The Workstation installation is designed mainly for inbound traffic to the host, where the workstation uses network services from the network servers. The workstation usage concept itself is one where the user sits at the machine and performs day-to-day activities.
工作站安装是特意为主人(*注:理解为具有root权限的使用者,也可以是计算机的主人)方便本地交流而设计的,其中,工作站从网络服务器使用网络服务.工作站的设计概念本身就是用户在计算机旁边处理日常事务.
The Server installation includes all the common network services like Web, FTP, NFS, Samba, and many more. You can add any combination of these network services to any machine. At any time, you can upgrade a workstation to server status by installing these services. A server designation conceptually is a machine centrally located and managed, that offers network services to many other hosts, usually workstations.
服务器安装包括所有的网络服务如Web, FTP, NFS, Samba,还有更多.你可以添加任何网络服务组合到任何机器上.任何时候你都可以通过安装这些服务把工作站升级到服务器状态.服务器指派概念上是集中定位和管理机器,服务于许多其他的主人(*注:此处理解同上述),通常是工作站.
All installations now include the choice of configuring a firewall, and since the Workstation and Server designations are oriented more for perceived use, there are no actual limitations as in some operating systems.
所有的安装包括选择配置一个防火墙,从工作站到服务器的指派都是为了感知的使用更加定向,如同一些操作系统中没有实际的限制一样.
The next section is an overview of the installation program, pointing out various aspects of the installation you need to be aware of. Overall, the chapter is designed to provide a bigger picture of the more difficult concepts.
接下来的章节是一个安装程序的综述,指出你需要知道的安装程序的各个方方面面.本章特意提供了许多关于这些不同概念的图片.
The first preinstallation topic is the disk partitions, their layout, and what is needed for various installation options. Since unlimited possibilities abound when installing an operating system, you are introduced to various scenarios, such as what to do when the target system is new, and what's the best course of action when it has an operating system you may or may not want to keep.
在安装前的第一个主题是硬盘的分区,它们的布局,为了安装选项的各各方方面面.当安装操作系统时毫无限制,你应该提出一个脚本,这样知道在目标新系统中如何去做,当你想或者不想保持的时候最好的行动方针步骤.
There are many details related to concepts and design information that are useful to know, but if you wanted to get started immediately, you simply need to some unallocated and unformatted free disk space. You can get this by simply adding a new disk drive to your system. The mechanics of adding a drive and changing your CMOS settings (so your CD-ROM is a bootable device) are beyond the scope of this book, but neither operation is complicated. Once the new drive is installed and your system is configured to boot from the CD-ROM drive, just stick the first CD-ROM from the Official Red Hat set into the CD drive and reboot! Take the defaults for a Workstation installation and see what happens, it will probably just install, dual boot automatically, and voilà! You are ready to play!  
有许多需要知道的关于概念和设计上的有用的详细信息,但是如果你想要立刻开始,你仅仅需要一些没有分配和无格式的磁盘空间.要做到这些你可以简单的给你的系统加个新的硬盘.加硬盘的技巧和你的CMOS设置(如果你的光驱是可引导的)超出了本书的论述范围(*注:不要紧,在本章的末尾我们会有一些有关的讨论.^-^),尽管这两者的调试是复杂的.一旦新的硬盘安装了并且系统设置为从光驱启动,就把正式版redhat放入到第一个光驱中并从新启动机器.使用默认值安装工作站观察发生了什么,可能只是安装,自动双重启动.你开始准备玩吧!
Note: Some commercially available unofficial copies of Red Hat Linux may not be bootable. In such cases, you will need to create a floppy disk using the BOOT.IMG file on the first CD-ROM in the IMAGES directory to start your installation. Details on creating this diskette will appear later in this section.
注意:一些redhatlinux的供应商使用非官方的拷贝可能不是可引导的.在这种情况下,你将需要用在第一张光盘中IMAGES
文件夹中的BOOT.IMG创建一张启动软盘来开始你的安装.关于创建这个软盘的详细信息将在本章中晚些时候论述.

CERTIFICATION OBJECTIVE 3.01
Disk Partitioning Strategies for Server and Workstation Installations
服务器和工作站安装的分区策略

By the very nature of the usage, the Workstation installation is typically much simpler than the Server installation. Usually, Workstation installs are optimized for local user applications that are centered around the X-Window system and utilize services from the network.
由于很相似的用法性质,相对服务器安装工作站安装典型的简单的多.通常,工作站是围绕视窗(X-windows)系统和从网络利用服务对本地用户最佳化.
The server system needs to be designed for optimal management and flexibility of use. This normally means the server has many more distinct partitions that make up the file system, allowing for more selective management of these individual partitions. For example, it is very common to have a separate partition for the user home directories. By separating the user home directories to one partition, disk quotas can be maintained on just that file system, and backups and restores are more specific. With the smaller file systems, failures are easier to rebuild, and expansion of any one-file system is made easier.
服务器系统是为了最理想的管理和灵活的使用性需要而设计.正规的服务器意味着有许多不同的划分构成文件系统,允许更多的选择性管理这些单独的划分.例如,可以为用户主目录划分一个单独的分区.通过给用户主目录单独划分分区,可以实现磁盘配额,备份和恢复数据等许多特殊功能.这么一个小小的文件系统,错误可以被容易的修复,任何一个文件系统的扩展也更容易了.
The Red Hat installation program has preconfigured options that build both a generic workstation and server, as well as a laptop workstation. Although these are not perfect, they are excellent starting points for new systems. The Custom option allows you to create any combination of partitions and software services for either a workstation or server usage. The Custom option can be used to create any installation design, including a server or workstation type of installation.  
redhat安装程序已经预先构造了一个普通工作站和服务器,还有便携式工作站.尽管这不是完美的,但对一个新的系统来说是一个极好的起点.定制选项允许你对每个系统,工作站和服务器的不同使用目的进行分区和软件服务的自由组合.定制选项可以用来创建任何安装设计,包括服务器和工作站类型的安装.

CERTIFICATION OBJECTIVE 3.02
Choosing an Installation Class: Workstation, Laptop, Server, or Custom
选择安装类型:工作站,膝上型,服务器,或者定制

This section will introduce you to the various installation options you will encounter during installation and try to demystify the reasons behind why there are many partitions, explain differences between the installation choices, and why you should choose one over the other.
这节将向你介绍在安装过程中遇到的各个安装选项并在随后努力解释明白为什么有许多分区,解释安装中不同选项的差别,为什么你选择这个而不是别的.
Installation Options
安装选项
Figure 3-1 details the different installation types found in Red Hat 7.1.
Figure 3-1:
插图3-1详细列出了不同的安装类型,red hat 7.1
(*注:7.x的都差不多了,尽管不是完全一样的,相信你能看出来,8.0版多了个desktop,即桌面版的选项,在最顶端)
Laptop-Class Installation
膝上型安装(*注:就是笔记本电脑或者移动型工作站)
A laptop-class installation provides a workstation-class installation that has some packages removed to save space and some packages added specifically for the laptop type of hardware. The Laptop installation allows you to select either GNOME or KDE desktop environments, or both, plus Games, and is basically a Workstation installation.
笔记本电脑安装提供的是一个移除了一些软件包的工作站安装以节约硬盘空间,增加了一些支持笔记本电脑硬件的软件.
笔记本安装允许你选择任一GNOME或KDE环境或者都选,附加的游戏等,从根本上来说就是一个工作站安装.
For general installation details, follow the Workstation installation. The Laptop installation specifics are not covered in this section.
对于普通的安装细节,参考工作站安装.在这部分章节中就不在重复了.
Upgrade Installation
升级安装
For any version of Red Hat Linux starting with 3.0.3 or later, you can quickly update to the latest packages and kernel version by using this upgrade option.
对于redhatlinux3.0.3或更高的版本,你可以通过这个选项来快速的更新软件包和内核版本.
Creating a Server or Workstation Using the Custom Installation Option
使用定制选项建立服务器或工作站
There is a Custom option that allows selection of any combination of software, and there are three other installation options-server, workstation, or laptop-each with preconfigured software package sets. All four options are presented during an interactive installation, as illustrated in Figure 3-1.
定制选项允许你任意的组合软件,还有另外的三种安装选项-服务器,工作站,或笔记本,都是已经构成好的软件包组合.所有的这四个选项都在安装中交互提出,如图3-1.1(注:这是8.0版的,对比7.X的少了笔记本选项)
The Custom option can actually be used to create either a Server or Workstation installation, but offers the added benefit that you can make changes to the default package sets.
事实上定制选项可以创建一个服务器或者工作站,好处是它可以让你修改默认的软件包设置.
The Custom installation requires that you be aware of how to configure disk drives and their partitions, what is the swap partition, how to create a swap partition, how to create separate file systems for important directory structures, and why you need to plan this all beforehand.
定制安装要求你知道如何配置硬盘和设置分区,什么是交换分区,如何创建一个交换分区,如何为重要的目录创建单独的文件系统,为什么你需要事先规划这些.
If you wanted to change the default partition layout or preserve an already installed operating system of any type, you would need to use the Custom Installation option. To use the Custom Installation for either a server or workstation installation would require that you know exactly what packages represent the workstation or server installation options.
如果你想改变缺省的硬盘规划或者保持已经安装了的任何类型的操作系统,需要用定制安装.使用定制安装对服务器或工作站来说要求你确切的知道工作站和服务器安装的软件包的用途.
Base Packages Installed
基本的软件包安装
On the Red Hat CD-ROM in the /Red Hat/base/ directory, there is a text file that lists all the packages associated with each group, as well as the specific sets of packages installed for the Workstation and Server installations. This package configuration file is called comps. This file can be viewed with any text-oriented editor, like Notepad on Windows or gNotepad on Linux. Figure 3-2 shows the GUI installation representation of the first few groups of packages.
在redhat光盘内的/Red Hat/base/目录里,有一个文本文件列出了所有的与每个组有关联的软件包,还有为工作站和服务器安装设置的软件包.这个软件包配置文件名是comps.这个文件可用任何文本编辑器来查看,如windows下的记事本或者linux下了gNotepad,图3-2显示了图形安装时最初的组的少数软件包.
Figure 3-2: GUI installation of the first few package groups
图片3-2:图形安装时最初的少数软件包群
A package is just one set of files related to a given application. For example, there is a Perl (programming language) package named perl-5.00503-2.i386.rpm. This Perl package, at about 4.3MB, is in the /Red Hat/RPMS directory on the CD-ROM and contains all the required executables, libraries, help files, and installation requirements. You can install this package, or any other, on any Red Hat Linux host whenever necessary using the rpm (Red Hat Package Manager) utility, which will be discussed later.
一个封包(注:从一开始我们就管package称为软件包,其翻译的原意是封包,这是redhat公司的一种软件封装形式,我习惯称为软件包,好像中文对这还没有一个统一的称谓.)仅仅是约定的应用程序的文件设置.例如,有一个Perl(编程语言)软件包名为perl-5.00503-2.i386.rpm.这个Prel软件包大约4.3MB,在光盘的目录/Red Hat/RPMS下并且包含所有可执行的,
帮助文件和安装需求.你可以安装这个软件包,或者别的,在任何redhat host需要使用rpm(red hat 软件包管理)工具,这将在稍后讨论.
A group of packages, such as the DOS/Windows Connectivity group includes a pre-configured set of these packages, as detailed in the following comps text file:
一组软件包,如DOS/Windows相关联组包括一个配置设置这些软件包,详细资料在如下的文本文件排列中:
  0 DOS/Windows Connectivity {
   dosfstools
   dos2unix
   unix2dos
   mtools
   zip
   tcsh
   samba-common
   samba-client
   perl
   unzip
}
You could customize the groups associated with any installation group, or create new ones, and add them to the comps file, then either provide the revised Red Hat directory via a network share, or create a custom CD-ROM, in order to have customized workstation and server installations that anyone can use (such as remote offices wanting to stick to a standard installation for all corporate-wide machines).
你可以自定义这些关联的组群和任何安装的组,或者创建新的,把它们加入到文件列表中,或者通过网络服务共享得到修订的red hat目录,或者创建一张定制光盘,以得到任何人可使用的(如远程办公室想为所有的机器安装同样的标准安装)定制工作站和服务器安装.
Workstation and Laptop Installation Details
工作站和笔记本安装的详细资料
The following lists the minimum recommended disk space requirements for a basic workstation installation.
下面的列表是一个基本工作站安装需要的推荐的最小硬盘空间.
*Workstation with GNOME: 1.2GB
*Workstation with KDE: 1.2GB
*Workstation with both GNOME and KDE, and Games group: 1.5GB
(*注:GNOME和KDE是X-windows也就是图形界面)
This is just the minimum disk space, you will require more for actual data files such as documents, downloads, source files and e-mail to name a few. The more disk space, the better. If you are testing Linux for the first time, you should have at least a few hundred more megabytes of space to play with.
这仅仅是最小的硬盘空间,你可能需要更多的空间在实际使用数据文件如文档,下载,源码文件和e-mail.空间越多越好.如果你首次测试linux,你需要多出100MB的空间来运行.
Behind the Scenes-The Partition Layout for Workstation
工作站硬盘划分的后台工作
The Workstation installation option first deletes all ext2 (Linux) partitions. Then the Workstation installation uses all the remaining free space, whether it was ext2 type before or not, and creates three partitions as follows:
工作站安装首先删除所有ext2(linux)分区.接着工作站安装将使用所有剩下的空闲分区,不管它以前是否是ext2,接着创建如下分区:
*        64MB swap partition  
               64MB交换分区
*        16MB /boot partition for all Intel platforms (a 2MB partition mounted as /dos and used for the Milo boot loader for an Alpha platform)  
               16MB /boot分区对于所有的intel平台(Alpha平台是一个2MB分区如/dos用来放启动管理器)
*        A variable-sized partition for the root, denoted as "/", that consumes all available remaining free space  
               对root一个可变大小分区,标志如/,这使用了所有可用的空间.
Dual-Boot with Previous OS
多重启动以前的OS
Any previous operating system that existed on the machine is left intact. This can be good or bad. It is good if this is a test or development system and you want to be able to boot into any one of the operating systems on the machine. It is bad if this machine will only be running Linux. The other operating systems will take up space that may never be available to the Linux operating system for use. You must decide whether you want to keep the previous operating system, before doing your installation.
机器上以前的操作系统是完好的.这可以是好的或坏的.好的是如果这是个测试或发展的系统并且你想能导入到任何机器里.不好的是如果这个机器将只能运行linux.别的操作系统将占据它们可能永远都不会用而LINUX系统需要的空间.你必需决定是否保留以前的系统在安装前.
The Apache Web Server package is NOT installed with a Workstation installation. You can add this package at any time using the rpm utility.
在工作站安装中Apache Web Server软件包没有被安装.你可在任何时候用rpm工具添加.
The Laptop installation allows you to select either the GNOME or KDE desktop environments, or both, plus Games and is basically a Workstation installation.
笔记本安装允许你选择任一GNOME或者KDE桌面环境,或者两者都,还有些附加的游戏.
The Simplest Partition Strategy for a Workstation or Server
工作站和服务器的最简单的分区策略
The simplest partition setup for a basic workstation would be to create a single swap partition and then a single root partition. This is not a very well designed system for security or maintenance purposes, but it will work. This is NOT recommended for anything but a development system. A production server should maintain certain portions of the file system tree as separate partitions. More details are provided later on this topic.
基本的工作站的最简单的分区策略是创建一个单独的交换分区和单独的root分区.对安全和维护来说这不是个好的设计,但是它可以工作.这是不推荐的除非是为了系统开发研究.一个成品的服务器应该作为文件系统树的一部分如同单独的分区.稍后我们还将讨论.
If you do choose to install with only a single root partition, you can add additional partitions later, provided you have additional available disk space. Thus, your system can easily expand to meet the needs of its users.
如果你选择安装只有一个跟分区,你能以后增加分区,如果你有多余能用的空间.从而,你的系统可很容易的\扩展来满足用户的需要.
Workstation Option Packages Installed
工作站安装时的软件包选项
The list of file packages installed by a default Workstation installation is listed on the CD-ROM in /Red Hat/base/comps. This list contains references, either directly or indirectly through the use of group names, to the hundreds of packages installed. Each package contains at least one file, and usually several of them. Hundreds of files are installed during an installation, and this is only the beginning.
缺省的工作站安装的软件包列表在光盘的/Red Hat/base/comps中.对于上千个软件包,这个列表中包含参考,或者直接通过使用组来命名.每个软件包包含至少一个文件,通常是几个不等.在安装是数百的软件被安装,而这仅仅是个开始
0 --hide Workstation Common {
   @ Printer Support                  打印支持
   @ X Window System                  X-窗口支持
   @ Mail/WWW/News Tools              Mail/WWW/News工具
   @ DOS/Windows Connectivity         DOS/Windows连通
   @ Utilities                        实用软件
   @ Graphics Manipulation            图形处理
   @ Multimedia Support               多媒体支持
   @ Networked Workstation            网络工作站
   @ Dialup Workstation               Dialup工作站
   @ Authoring/Publishing             作者与出版
   @ Emacs                            Emacs
   @ Development                      发展
Notice that the workstation contains ten groups (referenced by the @ symbol preceding the group name) of software packages. The comps syntax allows for packages or groups to be tested as selected, and to optionally load more package groups if the selected package or group has been chosen, as in this next example:
注意,工作站安装包含10个组(引用符号@在组的名字前面)的软件包.comps构造允许测试如选择,选择更多的软件包或组,如
下面的例证
0 Emacs {
  ? X-Window System {
     emacs-X11     
  }
   ? Authoring/Publishing {
     psgml
   }
   emacs
   emacs-nox
}
The "? X Window System" indicates test if the X-Window System group has been selected already. If true (i.e., the X-Window System group has been selected), this test will include everything between the curly brackets (in this example {  emacs-X11  }).
"? X Window System"表明检测如果已经选择了X-窗口系统组.如果这是真的(i.e., X窗口系统组已经被选择),这个检测将指明每个软件包(如这个例证中的{  emacs-X11  }).
In both of the previous code listings, the group names, Workstation Common and Emacs, are preceded by a zero (0), indicating they are not part of the default selection group should the user select the Custom Installation option. Additionally, the "--hide" option provides a mechanism to hide this option during the Custom installation screen display of groups available.
在这所有之前的代码列表中,组的名字,普通的工作站和略小的工作站,被命为零(0),指明了它们不是缺省选择的组的部分,而是用户选择定制安装.另外,"--hide"(隐藏)选项提供在定制安装时屏幕显示若干组可供使用选项.
Server Installation Details
服务器安装的详细资料
If you are intending to run this machine as a server of common network services and do not wish to hunt through the selection of packages during the installation, then the Server Installation option is your best choice.  
如果你希望这台机器运行如一个公共网络服务而不希望在安装时选择软件包,那么服务器安装是你最佳选择.
caution: This installation will remove all partitions on all disks.
警告:安装将删除硬盘上的所有分区和数据.
If you already have an operating system on this machine, it will be overwritten, with no opportunity given to back up anything during the installation. This installation assumes you are creating a full-time server, and that any other operating system would just waste disk space.
如果你已经有操作系统在这台机器上,它将被覆写掉,在安装期间没有机会挽回任何事情.这个安装假定你在创建一个专业的服务器,任何其他的操作系统都是浪费硬盘空间.
Server Partitions
服务器分区
You need at least 2400MB, or 2.4GB, of total disk space. There are six partitions created, four with a fixed size and two that share the remainder of the disk or disks. The four fixed-size partitions created are a 256MB swap partition, a root partition of 256MB, a /boot partition of 16MB, and a /var partition of 256MB. The two variable-sized partitions created are a /usr partition of at least 512MB and a /home partition of at least 512MB.
你需要至少2400MB或者2.4G的硬盘空间.这将创建六个分区,其中四个是固定大小的,两个是共享盘.这四个固定大小的分区是:一个256MB的交换分区,一个256MB的root分区,一个16MB的/boot分区,一个256MB的/var分区.两个动态分区是一个至少512MB的/usr和一个至少215MB的/home分区.
The following list provides an overview of the partitions created automatically by a Server installation:
下面的列表是一个自动安装服务器的所有分区的浏览:
*256MB swap partition
*16MB /boot partition for all Intel platforms (a 2MB partition mounted as /dos and used for the Milo boot loader for an Alpha platform)  
*A root (/) partition of 256MB  
*A /var partition of 256MB
*A /home partition of at least 512MB
*A /usr partition of at least 512MB
The variable-sized partitions, /home and /usr, split the remainder of space and hence consume the rest of up to two additional disks if needed. If more than three disks are present, some of the disks will not be used.
动态分区/home和/usr,如果需要的话可以分割硬盘的剩余空间附加到这两个盘上.如果有三个硬盘,那么有些硬盘将不被使用.
Server Option Network Packages Installed  
网络服务软件包的安装选项
Table 3-1 is a sublist of the application packages loaded by the Server installation that are network related: (The order matches the sequence in the /Red Hat/base/comps installation file.)
表3-1是相关的网络服务应用软件.(排列对应于/Red Hat/base/comps)
autofs     bind-utils   finger     ftp       whois      indexhtml    iptables    nfs-utils
ncftp      ipchains     iputils    wget      m4         nscd         nss_ldap    openldap-clients
openssl    openssh      openssh-clients      krbafs     pam_krb5     pidentd     portmap
gmp        python       rdate      rhn_register         up2date      rpm-python  python-xmlrpc
gnupg      rmt          rsh        rusers    rwho       sendmail-cf  stunnel     make
talk       tcp_wrappers telnet     traceroute           yp-tools     ypbind      openssh-server
sysstat    xinetd       talk-server          telnet-server           rusers-server
rwall-server            finger-server        rsh-server  make        ypserv
Table 1: Network-related Packages Specific to Server Installation
表1:服务器安装中网络服务相关的软件包

The Custom Installation Option
定制安装选项
This Custom Installation option provides the most flexibility for an experienced Linux or UNIX administrator. During this installation option, you can select more or fewer groups and even individual packages within each group, configuring the partitions to suit your needs more explicitly.
定制安装为富有经验的linux和unix管理员提供了极大的灵活性.在这种安装你可以在每一组内选择多个或者少数或者单独的软件包,按照你的需要来划分分区.
Selecting Packaged Sets
选择设置软件包
Of the many package sets available, each has a list of associated modules. In many cases, these module names are required for more than one group and hence appear duplicated in many of the package options. This ensures all required dependencies are installed if only one or two optional packages are picked.
许多软件包设置的是通用的,每一个有相关模块列表.在许多情况下,这些模块名称对超过一个组是需要的因此出现在许多软件包安装安装选项中.对仅仅随意安装一两个软件包来说这可以保证所需要的从属关系.
After all package group options have been selected, the system checks for duplicate name requests, then installs all required packages just once. For full details on these package sets, see the /RedHat/base/comps text file.
在完成所有软件包群的选择后,系统检察所要复制文件的从属关系,然后一次安装完所有这些软件包.详细的相关设置细节请看/RedHat/base/comps文件.
Figures 3-3, 3-4, 3-5, and 3-6 show the various package set names available during a Custom installation. Some packages will already be selected for you and will have an asterisk (*) in the selection box. These four figures contain all the package sets. During installation, only the first few names on the list can be seen, but there are actually more packages than can fit on one screen. To view them during installation, use the arrow keys to scroll up and down, and press the SPACEBAR to toggle the selection on or off. An asterisk means "selected." The base Linux system is included automatically in all cases.
图3-3,3-4,3-5,3-6是定制安装中显示可供安装的各种各样的软件包组,一些包将已经选择,因为在前面有记号标示出*,这四个图包含了所有的软件包组,安装中仅仅列表的最初几个名称可以看见,实际中还有更多的软件包.你可以用旁边的键盘的方向健来上下察看用空格健来选择.linux基本系统在所有情况中自动的被包括.
Figure 3-3:
图3-3
Package set names, first screen  
软件包名称,第一个屏幕
*printer support                  (打印支持)
*x window system                  (x窗口系统)
*gnome                            (gnome窗口管理器)
kde
*mail/www/news tools              (电子邮件/www/新闻组 工具)
dos/windows connectivity         (dos/windows连通)
Figure 3-4:
Package set names, screen two
*graphics manipulation             (图形处理)
*games                             (游戏)
*multimedia support                (多媒体支持)
laptop support                    (笔记本电脑支持)
*networked workstation             (网络工作站)
*dialup workstation                (dialup工作站)
Figure 3-5:
Package set names, screen three
news server                       (新闻服务)  
*nfs server                        (网络文件系统服务)
*smb(samba) server                 (smb服务)
ipx/netware(tm) connectivity      (ipx/netware连通)
*anonymous ftp server              (匿名ftp服务)
*web server
Figure 3-6:
Package set names, screen four
*authoring/publishinh              (授权/出版许可证)
*emacs
*development                       (开发工具)
*kernel development
*utilities                         (工具箱)
everything
select individual packages
Note: Selected groups have dark boxes preceding them, whereas unselected options have light boxes beside them.
注意:如果选择组请在旁边单击
If you were doing a text-based install (an option in every installation), you would see a text-based set of choices as depicted in the following code:
如果你是用文本安装(每个安装中都有的),那如下:
[ ]   Printer Support
  •    X-Window System
  •    GNOME
    [ ]   KDE
  •    Mail/WWW/News Tools
    [ ]   DOS/Windows Connectivity
  •    File Managers               (文件管理)
    [ ]   Graphics Manipulation
    [ ]   Console Games
    [ ]   X Games
  •    Console Multimedia          (控制台多媒体)
  •    X multimedia support
  •    Networked Workstation
  •    Dialup Workstation
    [ ]   News Server
    [ ]   NFS Server
    [ ]   SMB (Samba) Connectivity
    [ ]   IPX/Netware(tm)Connectivity
    [ ]   Anonymous FTP Server
    [ ]   Web Server                  (web服务)
    [ ]   DNS Name Server             (dns服务)
    [ ]   Postgres(SQL)Server         (数据库服务)
    [ ]   Network Management Workstation
    [ ]   TeX Document Formatting     (有关文本文件的处理工具)
    [ ]   Emacs
    [ ]   Emacs with X-Window
    [ ]   C Development               (c开发工具)
    [ ]   Development Libraries
    [ ]   C++ Development             (c++开发工具)
    [ ]   X Development               (图形化开发工具)
    [ ]   GNOME Development           (gnome下的开发工具)
    [ ]   Kernel Development          (核心开发工具)
    [ ]   Extra Documentation         (额外的开发工具)
    [ ]   Everything
         [ ] Select Individual Packages
    In the preceding code, the choices are many and the combinations numerous. Pick only the packages you need. For instance, if you want to write C language programs, you would want the C Development packages and possibly the C Development Libraries. The Extra Documentation package is usually a good idea for at least one machine in your network.
    (注:在这里有许多的安装选择,仅仅安装你需要的最好.如果你不了解软件包的倚赖从属关系,或者你是个新手,建议你选择全部安装,这样在以后的软件编译安装中你不会在到处找软件包来满足倚赖关系)

    Disk Space Required for Installation Options
    安装时所需的硬盘空间

    Most new computers come with very large disks, easily exceeding the 2.4GB (2400MB) needed for a full installation of Red Hat Linux. If you do not have this much space available, you should find out what space requirement is necessary for each installation.
    大部分的新计算机有许多大的磁盘空间,很容易的超过redhat linux安装所需的2.4GB(2400MB).如果你没有这么多的可用空间,那你需要知道每个安装选择所要的磁盘空间.
    Workstation-Class Space Requirements
    工作站类的空间需求
    A workstation-class installation (choosing to install GNOME or KDE) requires at least 1.2GB of free space. Choosing both GNOME and KDE as well as the Games requires at least 1.5GB of free disk space.  
    一个工作站类安装(选择安装GNOME或者KDE)需要至少1.2GB.GNOME和KDE及游戏都选则是1.5GB.
    Server-Class Space Requirements
    服务器类空间需求
    A server-class installation requires 2.1GB (2100MB) of disk space. If you were to use the Custom installation and decide which server packages to install, this installation would require 650MB for a minimal installation and at least 2.1GB of free space if every package is selected.
    一个服务器类安装需要2.1GB.如果你是使用定制安装决定选择服务软件包,那一个最小安装需要650MB,如果安装所有的服务软件包将至少要2.1GB.
    Laptop-Class Space Requirements
    笔记本电脑类空间需求
    A Laptop-class installation (when choosing to install GNOME or KDE) requires at least 1.2GB of free space. If you choose both GNOME and KDE as well as the Games you will need at least 1.5GB of free disk space.
    一个笔记本电脑类安装(选择GNOME或KDE)至少1.2GB,如果GNOME和KDE及游戏都选则至少1.5GB.
    Custom-Class Space Requirements
    定制类空间需求
    A Custom-class installation requires 300MB for a minimal installation and at least 2.4GB of free space if every package is selected.
    一个定制类的最小系统安装需要300MB,如果选择全部安装则是至少2.4GB
    The Everything option includes more packages than just selecting all the named groups, and thus requires more disk space overall. To use automatic partitioning, you must have enough free disk space available (1.2GB or more). If you do not have enough free disk space, this option will not appear during your installation and you will be required to partition the disk.
    选择全部选项包括更多的软件包组群需要更多的空间.使用这个选项你必需有足够多的自由空间(1.2GB或者更多).如果你没有足够多的空间,那么这个选项在安装中将不会出现,你将被要求为硬盘分区.

    How Much More Space Is Needed?
    还需要多少空间?
    The question of disk space needed over and above operating system needs is always relevant. You will require as much as it takes, and probably more. The absolute minimum for a Red Hat Linux OS is around 300MB of disk space, if you install Linux with few server services and without X. With 500MB, you could probably sneak in X, but you still wouldn't have enough room for a few server services and games. You still need a minimum of 100MB or more to work with. 1.2GB for a Workstation installation is merely a starting point; you'll likely need lots of additional space for user data. As of early 2001, you probably cannot buy a new PC with less than 6000MB (6GB) of disk space. For a single-user workstation, this may be sufficient. For a server, it may be too small. If it is too small, you will know soon enough. However, it is easy to add disks to Linux and expand your file system at any time, so this should not be a big concern. Get the biggest disk you can afford as your starting point. Then, if you are new to Linux, select either Workstation for a single dedicated user, or the Server option for Web, FTP, File and Print, DNS, and NFS services. If you have some Linux or UNIX experience, you will probably want to use the Custom Installation option for additional flexibility.
    磁盘空间需求的问题总是和系统需求有关联的.你随着它的需要而增加空间.REDHAT LINUX OS绝对最小系统需要300MB左右,如果你安装少数几个服务并不安装X系统要500MB,你可能不需要X,但对几个服务和游戏你需要空间.并且要使它们工作你还需要约100MB的空间或者更多.1.2GB对工作站安装来说只是个起点;你可能需要给你的用户更多的空间来存储数据.对于早在2001前,你可能不会买到一台新机器带有至少6000MB(6GB)硬盘空间.对单用户的工作站这足够了.对一个服务器,这可太小了.然而,随时添加硬盘给LINUX是一件容易的事情.所以你可以不用太关注这个问题.如果你对LINUX不熟悉并想要诸如打印'网络'FTP'等服务,你可以选择工作站,如果你熟悉LINUX可能为了更多的灵活性你可以选定制安装.
    All servers managed by the author have at least two disks containing between 6 and 10GB of disk space. You will probably find that if you are connected to the Internet and start creating Web and FTP content, by downloading applications, support material, new kernels, new games, and other amusements, you will very quickly use up the disk space. So go big! Get lots of disk space. It's cheap. Additionally, get a CD-R or CD-RW device to make backups, since single write CD-ROMs have become very inexpensive lately, just like rewriteable CD-RW disks. Remember, the true cost of disk space is the cost of the disk space itself plus the cost of the backup media and associated backup hardware!
    所有被管理的服务器都有至少2块在6到10GB之间的硬盘.很快你会发现,从英特网上制作网页FTP,下载文件,新的资料游戏'核心及其他的娱乐等使硬盘空间越来越小,增加硬盘吧!它很便宜!(注:呵呵,同感!)另外,可以使用CD-RM和CD-R来备份文件,这也相对低廉的.记得:磁盘空间的真实费用是硬盘本身的费用加上备份文件的费用.


    CERTIFICATION OBJECTIVE 3.03
    The Installation Process
    安装过程

    There are many interrelated questions you need to answer during installation, just as there are many ways to access installation files, and many options on how to install the operating system. The following installation outline is designed to get you through it in as simple a fashion as possible, with just enough detail to keep you going.  
    在安装时有许多的相关问题需要你回答,如同有许多方法能访问安装文件,许多选项如何安装操作系统.下面的要点是特意让你能简单有效的完成安装.

    Preinstallation Preparation
    安装前的准备
    Red Hat Linux has been specifically crafted to work on almost any "old" PC hardware (built within the last five years or so). It can also be installed on Alpha and PowerPC-based computers, to name a few. Today, many manufacturers currently provide Linux driver support, and the list is growing quickly. You are probably better off with two- to three-year-old hardware rather than the most recent, since Linux drivers may not be available for them yet.  
    Red Hat Linux是精心设计的可工作在任何旧的的电脑上(过去5年内的机器).它还能工作在Alpha和PowerPC-based机器上(注:一直以来这是RED HAT公司骄傲的地方!).今天,许多的制造商提供LINUX驱动支持,支持列表在迅速增长.或许你有两个或三个硬件LINUX还不能支持.
    When the author got a new desktop PC without a network card, he stopped by the local computer shop to see what they could offer. Surprisingly, a number of network cards clearly stated "Linux Drivers Included." When purchased, the network card came with a Linux directory on the diskette containing the ".o" object file that needed to be put into the module library along with detailed instructions
    当你要买一台新的机器时,没有网卡.于是你就想为这台机器添加一块网卡.你发现,相当数目的网卡上标明"Linux Drivers Included."当你购买这个网卡时,就带有了LINUX下的驱动程序和详细的安装说明.
    Linux hardware support is gradually improving. Several of the major manufacturers, such as Compaq, Dell, and HP, offer their hardware preinstalled with Red Hat Linux. This is one way to get the latest hardware, with all the correct drivers, direct from the manufacturer. Check the hardware manufacturer's Web site for driver information.
    LINUX的硬件支持正在逐渐的改进.许多制造商如Compaq, Dell, and HP,向它们的硬件提供RED HAT LINUX安装测试和驱动.这是使用新硬件的直接的好方法,用制造商的驱动.你可以查询制造商的网站来获取驱动信息.
    The author has personally installed Linux on Toshiba, Dell, Compaq, and HP laptops without any problems. The biggest issue is usually the monitor settings, but with the current state of the probing by Linux, this has not been a problem since RH 6.0. Other potential problem areas are PC cards and the audio subsystem. Particularly in the case of PC cards, check that your computer's BIOS settings are compatible with Linux. In a completely contrary experience, another of the authors installed Linux on two different generations of Toshiba laptops-mid-1998 to mid-1999, which should be the "sweet spot" for being compatible-and yet both locked up while loading the PCMCIADD.IMG-based diskette, regardless whether the BIOS was set for pcic compatibility or cardbus mode. Just goes to show that you never know.
    我们已经将LINUX安装到Toshiba, Dell, Compaq,和HP的笔记本电脑上了,没有任何问题.最大的问题是通常监视器的设置,查明当前的LINUX版本,自从REDHAT LINUX6.0以来这已经不在是问题了.潜在的问题是其它的个人电脑上的PC卡和音频系统.检察你的BIOS设置是否和LINUX兼容.在一个完全相反的经验中,我们将LINUX安装在不同的两个机器上Toshiba 笔记本电脑-mid-1998 to mid-1999,哪一个是"甜点"?是通过还是当机在读取PCMCIADD.IMG基础软盘时,不留心是否BIOS设置好pcic和cardbus方式.这将会怎样你永远都不知道.
    You can check the Red Hat Web site at http://www.RedHat.com/hardware for current hardware drivers and pointers to other resources at any time.
    任何时候你都可以在http://www.RedHat.com/hardware查询流行的硬件信息.
    PreInstalling Hardware Information
    安装前收集硬件信息
    There is certain hardware configuration information about your system you should know before beginning:
    在开始安装前你应该知道的一些硬件配置信息:
    *        Hard drive(s), their geometry and size (and SCSI ID if using SCSI)
                   硬盘,它们的容量及接口(如果是SCSI还的知道SCSI ID)
    *        Physical RAM (Random Access Memory) of the machine
                   机器的物理内存
    *        CD-ROM and its interface type: IDE or SCSI
                   光驱及其接口型号:IDE?还是SCSI?
    *        Mouse type and the port it is attached to
                   鼠标的类型和接口
    *        NIC (Network Interface Card) make, model, and parameters
                   网卡的型号和参数
    *        SCSI adapter and settings if one is present
                   SCSI适配器的设置              
    Additional information you should note:
    你应该注意到的附加信息:
    *If you plan on installing the X-Window system, you'll also need:
    如果你计划安装X窗口系统,你还需要:
       *The video adapter card type and local video RAM memory size
       显卡的型号和显存的大小
       *The monitor brand name or its specifications (horizontal and vertical refresh rates)
       监视器的型号和名称及参数说明
    *If you plan on keeping your old operating system or not
    你是否保留你以前的系统
    * Primary use of this machine: workstation for a user or network server  
    这台机器的用途:单用户工作站或者网络服务器

    Boot the First CD-ROM
    首先从光驱启动
    Most current Intel-based PC hardware systems support booting from the CD-ROM drive directly. If you have purchased an official copy of Red Hat Linux 6.x/7.x, the first binary CD is designed to boot directly into the installation program.  
    当前英特尔平台上硬件系统大多数支持从光驱启动,如果你已经购买了redhat linux6.x和7.x的官方拷贝,你可以直接从光盘启动进入安装.
    Figure 3-7 shows the Red Hat 7.1 bootup screen that appears whether you use the CD-ROM alone or start with the BOOT.IMG bootup diskette.
    图3-7展示的是你是否从光驱启动或者用boot.img从软盘启动.
    Figure 3-7:
    The Bootup screen for Red Hat Linux 7.1
    (注:不放图片了,放上文字.)

      welcome to red hat linux 7.1!
    -to install or upgrade red hat linux in graphical mode
    press the <enter> key
    (注:图形化安装或升级)
    -to install or upgrade red hat linux in text mode. type:text <enter>
    (注:文本模式)
    -to enable low resolution mode,type:lowes <enter>
    press <f2> for more information about low resolution mode
    (注:使用低分辨率模式)
    -to disable framebuffer mode. type :nofb <enter>
    press <f2> for more information about disable framebuffer mode
    -to enable export mode.type:export <enter>
    press <f3> for more information about export mode
    (注:专家模式)
    -to enable  rescue mode.type:linux rescue <enter>
      press <f5> for more information about rescue mode
    (注:使用救援模式)
    -if you have a driver disk .type :linux dd <enter>
    (注:你有一张启动盘,健人linux dd)
    -use the function keys listed below for more information
    (注:使用下面的功能健获取更多的信息)
    [F1 MAIN] [F2 GUNERAL] [F3 EXPERT] [F4 NERNL] [F5 RESCUE]
    BOOT:
    Creating Your Own Bootable CD-ROMs
    创建你自己的启动光盘
    You can download the .iso image files for every current Red Hat distribution, as well as many of Linux versions, from various sites around the Internet (such as  ftp://sunsite.unc.edu/pub/Linux/distributions).
    你可以从任何的red hat 发布站点下载.iso镜像文件诸如ftp://sunsite.unc.edu/pub/Linux/distributions
    For example, the Red Hat 7.1 images are called: seawolf-i386-disc1.iso and seawolf-i386-disc2.iso. There are two additional files as well that you might find to download, as depicted in Figure 3-8: the source RPMs and the PowerTools disks. Each are about 650MB in size so be prepared for a long wait on cable modem and DSL connections.  
    例如,RED HAT7.1的镜像文件是seawolf-i386-disc1.iso和seawolf-i386-disc2.iso.还有两个附加文件你可以下载,如图3-8:source RPMs(注:源码包文件)和PowerTools(注:工具包).每个文件大概有650MB,如果用cable modem或DSL都需要很长的时间.
    Figure 3-8:
    图:3-8
    Downloading the ISO image from Sunsite.unc.edu
    Many software packages that write CDs are aware of the .iso type file (ISO9660 is the standard CD-ROM format). The complete list of ISO images for Red Hat are depicted in Figure 3-9.
    许多刻录软件都可以识别.ISO文件(ISO9660是标准的光盘格式)图3-9是ISO镜像文件的列表.
    Figure 3-9:
    The four ISO images available for Red Hat 7.1
    Another alternative is to download the entire distribution onto a single partition and install from that partition. This is a valid option during any installation. When choosing the location of the files, you would indicate the type of file system and the partition ID.
    另一个选择是下载整个目录到一个单一的分区并从这个分区安装.这是一个安全有效的选择.当选择指定文件位置时你指出文件系统类型和分区ID.
    The assumption throughout this book is that you have an official standard copy of the Red Hat software that contains all the necessary files for installation.
    这里假定你有所有安装的必要文件的RED HAT官方标准拷贝.
    Installation Diskette(s) May Be Needed
    可能需要的安装软盘
    In cases where your hardware does not boot from the CD-ROM, you will need to create a DOS-based boot disk, or disks, from the image files supplied with the CD-ROM set (or from those you downloaded from Internet sites).
    如果你的系统不能从光驱启动,你需要通过光驱(或者从网上的下载的镜像文件中)从镜像文件中创建一张启动盘或者DOS启动盘.
    You will need to create the installation diskette(s) as indicated next. There are a few options to consider here, depending on where the installation files will be retrieved from.
    接下来你可能需要创建一张安装启动盘.有几点需要考虑的,安装文件的位置是在哪里.
    You need at least one of these three images on a diskette:
    在这张盘上你至少需要以下三个镜像文件\之一:
    *boot.img?69Installations using the local hard disk or CD-ROM.
    boot.img,从硬盘或者光盘安装使用的
    *bootnet.img?69Installations using HTTP, FTP, or NFS primarily.
    boot.net用HTTP, FTP,或者NFS来安装的
    *pcmcia.img?69Installations on laptops that need to start the PC card manager service, originally known as the PCMCIA manager service.
    pcmcia.img是在笔记本电脑上安装时使用
    Depending on your hardware, you may also need one of the following:
    倚赖于你的硬件,你或许还需要下面的其中文件:
    *pcmciadd.img?69Additional support for PCMCIA adapters.
    pcmciadd.img PCMCIA适应支持
    *drivers.img?69Additional drivers for special hardware.
    drivers.img 附加的特别驱动支持
    These are secondary support disks (only asked for if needed):
    还有些次要的盘(仅在需要时使用)
    *rescue.img?69RH 6.0 used a single diskette for recovery of a failed system. You could always keep one handy for emergency purposes. It will boot the system with a minimal Linux kernel and its file system in a virtual RAM drive. This allows you to run various programs from the diskette and any mountable partition.
    rescue.imgREDHAT 6.0使用的用来恢复一个失败的系统.这使得你手边总有可用的来处理突发事情.它将启动一个迷你的linux内核和一个装载了文件系统的虚拟内存驱动.这允许你运行软盘上的各个程序和挂载上的分区.
    You can download the image files (boot.img and rescue.img) from a distribution of Red Hat 6.0 from the Internet to create these diskettes, which should work on any machine. Otherwise, the newer rescue mode needs to be booted directly from the CD-ROM or from the BOOT.IMG diskette.
    你可以下载这些镜像文件(boot.img and rescue.img).从英特网上的任何地方.然而,较新的救援模式需要从boot.img软盘或光盘直接被导入.

    To Use rescue.img
    使用rescue.img
    You must boot your machine with either the CD-ROM directly or via the BOOT.IMG diskette and then the CD-ROM. When you get to the first screen prompt showing LILO, type linux rescue, and press enter. The boot disk will continue to load if using the CD-ROM, or you will eventually be asked for the next disk (PCMCIA if on a laptop). You must have the CD-ROM available in the local CD-ROM drive for rescue mode to install itself.  
    你必需先用光盘或者boot.img软盘启动系统,在显示屏幕lilo时健入linux rescue,然后回车.启动盘将继续读取如果使用光驱,最后要求你下个磁盘(PCMCIA如果是笔记本电脑).你必需使用通用的光驱以使救援模式自动安装.
    Essentially, the rescue installation loads a Linux kernel and a virtual file system into memory and includes a few very basic but essential binary files (utilities like fdisk, e2fsck, pico, mount, umount, mknod, and more) for you to try to recover your system with. You get a simple bash command shell with a simplified file system and some of the standard Linux system administration utilities.  
    基本上,救援模式在内存中装载了一个内核和一个虚拟文件系统,包含几个基本的但十分重要的二进制文件(如fdisk.e2fsck.pico, mount, umount, mknod还有一些)你可以用来试图恢复系统.你得到一个简单的bash命令shell和一个简单的文件系统和一些标准的linux系统管理员工具.
    When you start Rescue Mode, you are prompted for the keyboard and language modules, then are informed that the system has preloaded your entire file system set under the /mnt/sysimage directory.
    当你开始救援模式时键盘和语言设置将被询问.然后将告诉你系统已经装载在/mnt/sysimage下了.
    For Red Hat 7.0 ONLY, you need to create the device files for any partitions you want to mount as they are no longer supplied on the rescue disk virtual file system. Use the mknod command along with each device name. You have to issue a separate command for each to create all the device filenames you might need. For instance:
    仅对redhat7.0,需要创建设备文件对任何你想挂载到救援虚拟文件系统内的分区.使用命令mknod,可能你需要为每个分区都创建文件,例如:
    # mknod  /dev/hda; mknod  /dev/hda5; mknod  /dev/hda7   
    # would create 3 device files for the first IDE disk.  
    Note: Remember, for RH 7.0 you need the unnumbered device file, /dev/hda, with fdisk. Within this bash shell, you can mount any partitions onto any directories that exist, or you can create the directories as needed before performing the mount to access any files on them. If the file system is corrupt on any partition, you can run the File System Check program, e2fsck, to repair the disk. You can edit files that need to be changed (such as fstab, lilo.conf, or any other configuration files), rebuild the LILO boot block, or do whatever you need to fix the system in this mode and then reboot.
    注意:记住,对于RH7.0你需要数不清的设备文件,/dev/hda,和fdisk.使用bash shell,你可以挂载任何分区任何目录,或者你可以创建你需要的目录和文件.如果文件系统损坏,你可使用e2fsck(注:RH8.0使用命令fsck /dev/hdxx)来修复错误.
    可以修改文件(如fstab, lilo.conf,等其他的配置文件),重建lilo启动文件等任何你需要修复的系统问题然后重起.
    The following is an illustration of how to boot into rescue mode:
    以下是如何进入救援模式:
    Lilo:  linux rescue <ENTER>
    ? (installation of kernel and processes proceed)
    Be aware that rescue mode will appear to be doing a complete installation, as indicated by some of the prompts you'll see. However, you'll soon be presented with the familiar bash shell command line prompt after being prompted for language and keyboard and informed that your local file systems have already been mounted on /mnt/sysimage for you, if they were not corrupt (RH 7.1).

    注:以下所教的是7.x版本以前的安装过程,实在是老生常谈的问题了,继续翻译将是完全重复性的工作,这是一个不明智的做法.所以,我依次放上了:
    1.原英文资料
    2.原本站的RH7.2的安装教程
    3.RH8.0的官方安装教程
  •  楼主| 发表于 2003-1-12 09:56:47 | 显示全部楼层

    1.原英文资料

    Creating Diskette Images
    These boot diskette image files are supplied on the first CD-ROM of RH6x/RH 7.x and can be created in two ways:
    * From any DOS-based system by using the supplied RAWRITE.COM utility (in \DOSUTILS on the first binary installation CD-ROM). (This does NOT work from within a DOS prompt of any Windows 9x system, nor from the CMD.EXE prompt on NT.)
    *Assuming your CD-ROM was drive E: on your DOS machine, you could simply enter: E:> \dosutils\rawrite
    The RAWRITE program will next ask you for the name of the file to write to the diskette, then prompt you for the target (Enter A: at the second prompt).  
    You should supply the full path to the filename as shown next.  
    *E:\images\boot.img?69(All versions of Red Hat)
    *E:\images\bootnet.img?69(All versions of Red Hat)
    *E:\images\pcmcia.img?69(All versions of Red Hat)
    *E:\images\pcmciadd.img?69(Red Hat 7.x)
    *E:\images\drivers.img?69(Red Hat 7.x)
    You can view the files on this boot.img diskette as they are all DOS-oriented. You also must repeat this entire RAWRITE process for each image file you wish to create, as illustrated in Figure 3-10:
    Figure 3-10:
    Usage of the RAWRITE utility
    The contents of the BOOT.IMG file (after transferring to the diskette) are in DOS format (depicted in Figure 3-11).
    Figure 3-11:
    The RAWRITE directory listing
    Creating Diskette Images with Any UNIX/Linux System  
    You can also create diskette images by using the dd command from any running UNIX or Linux computer, along with the image files on the CD-ROM.
    The supplied IMG (image) files on the diskette can be used from any UNIX/Linux system as well. The dd command to use would be for a typical Linux system:
    # mount /mnt/CD-ROM
    # assuming the CD-ROM device was already in fstab
    # cp /mnt/CD-ROM/images/*.img  /tmp   
    # copy them all over, or use them directly
    # dd  if=/tmp/boot.img  of=/dev/fd0
    # replace diskette for each file
    You would need to repeat this for each image file you need, as previously stated. A list of these image names is presented in Figure 3-12.
    Figure 3-12:
    List of IMG (image) files available with RH7.x
    Almost Ready to Install
    With your system configured to either boot from the CD-ROM directly or from one of the boot image disks (BOOT.IMG, BOOTNET.IMG, or pcmcia.img in the floppy drive and your Red Hat Linux 7.1 CD-ROM (marked with the number 1) in the CD-ROM drive, reboot or power cycle your machine.  
    Laptop Reboot
    If you have a laptop that doesn't really power down, you will need to use the Shut Down and Restart option of that operating system.
    This inability to really shut down is a huge frustration for laptop users. You might want to set the hardware to power down by using the Power button (if this is configurable, that is-check the laptop manual). If the laptop does not do this and power management doesn't work, you may have trouble turning off the computer (especially if you have removed Windows entirely from the laptop.)
    The author has had many laptops, most of which had a tiny reset button hidden somewhere that you could use to force a reboot. You need to find out if your laptop has one just in case. Most newer laptop models also have the "hold the power button down for 6 seconds or more" option to force a power down. Check your user manual for details on the Power button. Also, be aware that some power saving modes won't operate without special disk partitions-partitions which Linux cannot create. It may be necessary to download software from the computer manufacturer to provide relatively complete power management capabilities.
    Win9x/NT Reboot Procedure
    For Windows 9x/NT, select Start, then click the first option above Start: Shut Down. An option box should appear. Select the Restart option if it is not already selected, then click OK. You may have to wait a few moments before the screen goes blank and the system BIOS starts rebooting.
    Bootable CD-ROM
    Most newer systems can be booted from the CD-ROM, which is probably the easiest way to accomplish an installation. Alternatively, you could boot your system from the Linux boot floppies, described earlier. Most systems have a BIOS setting that controls the boot search order, so you should consult your computer manufacturer's documentation for details.  
    Booting from DOS and Win9x, Not NT
    If you already have MS-DOS 6.22, simply boot the machine until you get to a command prompt. If you have Win9x on your machine, reboot the machine into command mode. You cannot do this from NT as it only works from a purely DOS-like command prompt, not from within the DOS PROMPT window of any MS Windows operating system.
    Once in command mode, assuming you have access to your CD-ROM drive via an installed driver in the config.sys setup, you can run the file E:\DOSUTILS\AUTOBOOT.BAT ((assuming your CD-ROM drive is E. This will get you to the Installation program.
    CD-ROM or Boot Diskette Starts Installation
    After the hardware tests, the PC should boot from the CD-ROM or the floppy, whichever you have selected. After a few files are opened and decompressed, a Welcome To Red Hat Linux screen should appear.
    You are finally at the first stage of the installation. This is a good time to point out a few things you'll need to know before moving on.
    Necessary Information
    The installation program uses either a full X-Window Graphical Interface (if it can load X), or it will default to an "almost graphical" text interface. Example figures from both the GUI and text-based interfaces are included in this section. Although the mouse does not work in the text interface specifically, you can move the cursor around using the up- and down-arrow keys, the tab key, and special function keys, as described next. It's not like a real GUI interface, but it's better than just a text command line. If you choose to attempt the graphical install and encounter problems, particularly display-oriented problems, restart the boot process and try the text interface.
    Screen Cursor Movement, Selection, and Text Entry
    The screens or windows that appear during the installation will have a standardized look and feel. The first screen offers an option to display help. Press the enter key to continue to the next screen. Some keys allow you to move through these screens the way a cursor would. In fact, in this situation, the "cursor" appears as a blinking underline or as a reverse-colored box over an item.
    Figure 3-13 is just one of the many screens that appear during installation. Not all screens require cursor movement or force you to select multiple options. This screen shows all these features and is used to illustrate how to move around and select or deselect an option.
    Figure 3-13:
    An Install screen example
    By pressing the arrow keys, you can move up or down through the option selections at the top; in this case, the various mouse types. To get to the next field, press tab to go forward to the next selection (in this case, Emulate 3 Buttons), then choose OK, followed by Cancel, and finally Help. If you tab again, you will find yourself back in the list of mouse devices. When not in a field of multiple selections, you can use the up- and down-arrow keys to jump from one field to the next.
    The keys shown in Table 3-2 can be used for navigation.
    Key
    Function
    tab
    Go to next element
    up- and down-arrow keys
    Move up/down through selections or menu items
    spacebar
    Toggle a selection ON or OFF
    f12, enter
    Accept entries on current screen
    Table 2: Navigation Keys
    Assuming you are at the screen depicted in Figure 3-13, and your cursor is on the same option, if you press tab, the cursor will move to the line "[  ] Emulate 3 Buttons?". You could toggle this selection on with the spacebar, and off if pressed again. If you press tab again, the cursor will move to the OK box.
    At this point, you could use the arrow keys to move from OK to CANCEL to HELP to the <mouse option>. Once at the <mouse option>, the cursor keys select another <mouse option> line. Using alt-tab reverses the direction of the cursor movement. If you press enter or f12 at any time, it defaults to the OK option (unless you click Cancel), along with all currently selected options.  
    Quick Overview of Installation
    The installation starts after the initial bootup screen.
    Part 1: Basic Workstation Installation Steps
    For ease of installation, let the install program create the disk partitions as needed, select Continue. HOWEVER, if you do select Manually Partition, the screen in Figure 3-14 appears.  
    Figure 3-14:
    Partitioning with the Disk Druid utility during installation
    The Disk Druid utility is the best choice for beginners. (The fdisk tool will be explained later in this section.) The next screen shows the Disk Druid interface. Essentially, you can add if there is free space. This graphic only shows 2000MB free, which could be assigned to a partition. You can edit any partition and change the mount point if all other parameters are already set. If you wanted to change the partition layout, you need to delete unwanted partitions. Simply select the partition with your mouse, then click Delete. You are prompted to confirm; select OK. Assuming there is available space, as illustrated in Figure 3-14, you could add new partitions by selecting Add (shown in Figure 3-15).
    Figure 3-15:
    Disk Druid: Adding a new partition
    Once completed, as depicted in Figure 3-16, you can continue by clicking the Next button at the bottom of the screen.
    Figure 3-16:
    Finished adding partitions with Disk Druid
    At this point, you have only guessed at the sizes of each partition, and if you have been generous and made them big enough, your installation will work fine. If you were tight for space and guessed wrong for any partition size (for example the /usr partition needs lots of space, 512 is not enough for any of these installations), then your installation will fail and you will NOT be able to go back to redo the partitions. As a result, you will be forced to start your installation over and delete the old partitions,  changing their sizes as needed. So, plan your partitions carefully and then add more space just in case!
    Next, you should select all newly created partitions but skip any data partitions you have saved from a previous Linux installation, such as /home. Figure 3-17 shows all the Linux-oriented partitions you created and that already existed, assuming that you want to format them all. If you were saving the contents of a previous installations' /home directory, you would deselect that partition here so it would not get reformatted during this installation.
    Figure 3-17:
    Formatting Linux Native partitions
    You are next presented with the LILO Configuration screen of options shown in Figure 3-18. If you were doing a text-based installation instead of a GUI interface, there are three separate screens provided for the information presented here.
    Figure 3-18:
    The LILO options screen includes Bootdisk, Kernel, and MBR setup options
    It is always a good idea to create a boot diskette. This boot diskette will contain an MBR and all the files required to boot your system should you install your primary MBR onto the main disk (C and it fails for any reason. Additionally, if there were any options needed to be passed to the kernel at bootup, you can include them here. The final section within Figure 3-18 contains the setup of where to put the boot record. If you already have a Windows installation, as depicted in Figure 3-18, then the installer defaults to the Linux partition and will boot the Windows partition via the label name "dos." You could make the dos bootup option the default by selecting it and then choosing the Default Boot Image option, if desired. By default, the system will boot Linux after five seconds or you can select the dos option to boot the previous Windows OS.
    At this point, unless you really want to boot dos/Windows/NT as the default, you would simply select the OK button and your system will be configured to boot Linux by default after five seconds (the timeout is not configurable at this point; once Linux is booted, you could change the timeout value by updating the text file /etc/lilo.conf and running LILO)
    The next step is the assignment of the network information (as depicted in Figure 3-19). You can either use DHCP, if DHCP is available on your network, or provide the unique IP address and associated network mask values as a minimum to get started, along with the host name. Optional information includes the DNS server IP address and the Gateway IP address, also shown in Figure 3-19.
    Figure 3-19:
    Network configuration and host name setup
    After network and host name configuration information, the Firewall Configuration option appears as depicted in Figure 3-20. It defaults to medium security but if you are paranoid like most superusers should be, select the High option and then click Next to continue.
    Figure 3-20:
    Firewall configuration during installation
    If you select the Customize option, assuming you already understand the network services listed, you can then select which services to allow in and which to block (as shown in Figure 3-21).
    Figure 3-21:
    Customized firewall configuration
    Both Telnet and FTP are considered insecure and should NOT be allowed through a firewall defense. Figure 3-21 shows them as not selected, while all the others are. You should configure the SSH (Secure Shell) service instead of FTP and Telnet. (This will be covered in a later chapter.)
    The next screen provides the mouse selection, as shown in Figure 3-22.  
    Figure 3-22:
    Mouse configuration
    Most PC mice are two-button, but Linux/UNIX assumes you have a three-button device, so you must change the selection to the two-button option and verify that the box marked Emulate 3 Buttons (at the bottom) is selected. Normally, it will automatically select the Emulate 3 Buttons for you, which you should accept.
    Technically, you can support multiple languages, if so desired. The default is simply USA English. Figure 3-23 shows you the many options available. Be aware that each additional language requires a significant amount of disk space.
    Figure 3-23:
    Language support selection
    The time configuration (shown in Figure 3-24) has plenty of bizarre locations you may never have heard of, so check it out, especially the GUI interface. It is quite an amazing application for just one little screen.
    Figure 3-24:
    Time zone configuration
    You must put in a valid password for the root account. Figure 3-25 shows the Account Configuration screen. The password itself is not echoed back to the screen. Instead, the asterisk character appears for each character typed in. A combination of letters, numbers, and shifted non-alphanumeric characters is the best choice. You must use at least eight characters as well.
    Figure 3-25:
    Account configuration
    The lower half of Figure 3-25 allows you how to add additional user accounts. All workstations should have one user account that is unprivileged. The root account should be left for administrative duties only.
    This first screen requires that you add at least one user. You can add more than one user, as depicted with the next screen.  
    The next screen provides Authentication Configuration and encryption standards. All these services are explained in other sections and not discussed here. Simply accept the defaults for now.
    The next screen lets you choose package groups to be installed. All of these groups are displayed at the beginning of the chapter, in Figures 3-6, 3-7, 3-8, and 3-9. A few package groups have been already picked for you by default. You can unselect them if desired. Notice the system keeps track of the size of the packages you have picked; add 50 percent to this size after decompression for what you probably need in real disk space. Unfortunately, the size shown does not indicate which directory structures (and hence, which file systems) require free space. This is makes for a lot of trial and error when you are tight on space.
    The final option on the package screen (depicted in Figure 3-9) is an option to select Individual Packages. This allows you to select specific packages out of any group, for a much finer customization level. This should not be done by beginners and is typically used when space is very limited and package selection is critical.
    With this finely-tuned package selection option afforded by Individual Package selection comes the requirement that you know exactly what packages require what other packages. If you don't, you may get an error indicating you missed a needed package (like that displayed in Figure 3-26).
    Figure 3-26:
    Unresolved dependencies in package groups
    If a package group you have selected has a dependency that cannot be resolved with already selected packages, an error occurs (as shown in Figure 3-26). Simply go back and select the necessary package and continue until no further complaints appear. You have now completed the software package selection requirements of the installation. The next few screens depict the installation of the X-Window system.  
    At this point, you are informed that a log file of your installation will be kept in /tmp/install.log. Note also that this is the last point in which you can abort without actually changing your disks in any way. Up to this point, everything is memory resident. When you click Next (as depicted in Figure 3-27), you will have committed the disk partition changes and you will see the formatting of the new partitions and then the installation of the packages.
    Figure 3-27:
    Ready to install
    All selections and question are being recorded to an installation log that is put into the /tmp directory for your perusal after the installation. A few quick screens go by, formatting, copying the image to the disk, and then the actual package installation starts.
    Ignore the estimated time required until at least a dozen or more packages have been installed as the estimated time will not be very accurate.
    If you're installing from a CD-ROM, the required files are spread over two CD-ROM disks. You will be prompted when it's necessary to change disks.  
    When all packages are installed, a post-install procedure is completed that includes any package post-install procedures.
    The final step is to create a boot diskette (as shown in Figure 3-28).
    Figure 3-28:
    Create a boot disk
    Creating a custom boot disk will allow you to boot the system, even if the traditional Linux boot loader, LILO, becomes corrupt or misconfigured. This is highly recommended! After this is complete, you're ready to reboot, because you're done!
    Caveat Emptor on Installation
    Do not worry if you make a mistake the first time on a test machine. Just redo the installation, it will be significantly faster and easier than trying to correct a problem. There are so many options and possibilities in the overview just presented, it is not possible to name them all or take them all into account. In most cases, the default is sufficient if you do not understand the question posed. Move on and get it installed, then read the FAQs, HOWTOs, and other related docs once you are up and running. You can always reinstall; the second and third installs are actually a very good thing considering you need to know this very well for the RHCE Exam.
    Although you have finished the installation and have worked the concepts of partitioning (and possibly multiple operating system boots), there are still a few more details to note, such as LILO errors, BIOS issues, and others, all described in the following sections.
    CERTIFICATION OBJECTIVE 3.04
    The LILO Boot Process and Intel Hardware/BIOS Issues
    The original Intel motherboard design provided a mechanism to start any operating system. It would load a bootup program, located in the first sector of the first disk starting with A: and followed by C:. This bootup program is located in an area most often called the master boot record, or MBR. This is the first program loaded by the BIOS. This program then loads the real operating system boot control program(s), which, in turn, starts the operating system.
    The main issue with this bootup is that the MBR has to be found in the first 1024 cylinders of any disk. This is because the BIOS programs stored on the motherboard would not be able to "see" any value over 1024, a limitation of the original BIOS design. With newer motherboards, they use a mechanism called Logical Block Addressing, or LBA mode, on disks to alleviate this problem. The disk LBA mode reports back "logical" values for the cylinder, head, and sector so that the BIOS can then "see" a larger disk drive. Internally, the drive uses the LBA values to find the real cylinder, head, and sector. One way or another, you must ensure that the boot block for Linux is not past this magical boundary, or the boot will fail.
    Usually, Linux opts for the /boot partition if it does not rewrite the MBR. You can put it on any partition available. The MBR is just the most convenient; the system can cascade to any previous OS. My laptop has LILO cascade to NT, which cascades to Win95. I can choose Linux first, or NT second, if I want, or just let it cascade to Win95.
    Boot Control of Your System
    Linux uses a set of files to boot your system, referred to collectively as LILO, which is short for Linux Loader. During or after installation, you have two options:
    *Create a boot disk
    *Update a local disk partition with the LILO MBR
    The boot disk is an excellent way to hide the Linux system for other users. For development or help desk systems with multiple operating systems, you can create a boot disk that specifically boots just Linux when inserted into the floppy drive.
    One major danger with a floppy is the chance of damaging that boot disk. You may want to make multiple copies to minimize possible problems. You can use the dd command to make multiple copies of the disk. Here is an example of the commands needed to create a copy of the original diskette to a local file, and how to create duplicates from this local file:
    $ dd  if=/dev/fd0    of=diskettebootup.img # stores a copy of diskette
    $ dd  if=/diskettebootup.img   of=/dev/fd0  # makes the copy
    There is a utility supplied with Linux that will create a bootup diskette from your running system with the required root and /boot partitions called mkbootdisk. You need to know the name of the running kernel, but you can have the system generate that for you and substitute it onto the command line as follows:
    $ # to create a boot disk for the `current kernel number`
    $ mkbootdisk  /dev/fd0  `uname -r`
    Updating /dev/hda MBR
    The old MBR, if there was a previous operating system, is moved to a new location and Linux installs its own MBR. This is only the first part of the loading operation required to get Linux started. The second part of the bootup process is contained within the /boot directory structure.  
    /etc/lilo.conf  
    You can update or change your bootup options with the lilo configuration file, /etc/lilo.conf, and with the boot loader install utility, /sbin/lilo.  
    The first part of the loading operation provides a prompt allowing you to enter any valid listed boot option along with any command options for that boot option. All LILO control is maintained by the system file, /etc/lilo.conf. The following listing shows the details of deciphering /etc/lilo.conf.
    =======================================================
    [root@linux6 /root]# cat /etc/lilo.conf
    boot=/dev/hda
    map=/boot/map
    install=/boot/boot.b
    prompt
    timeout=50
    default=Win95
    image=/boot/vmlinuz-2.2.5-15
            label=linux
             root=/dev/hda8
             initrd=/boot/initrd-2.2.5-15.img
             read-only
    other=/dev/hda1
             label=Win95
             table=/dev/hda
    [root@linux6 /root]#
    =======================================================
    boot=/dev/hda
    map=/boot/map
    This is where the system is to look for the bootup and map info: the first hard disk.
    install=/boot/boot.b
    This is the location for the second part of the LILO program startup routine.
    prompt
    This forces the lilo: prompt to appear on the console.
    timeout=50
    This is the default five seconds before the boot process continues automatically.
    default=Win95
    Normally, the first boot listing (next section) is default. This line supercedes the default action and selects any boot choice via the identifying label.
    image=/boot/vmlinuz-2.2.5-15
    This is the actual virtual memory compressed kernel (version 2.2.5, with the -15 representing the Red Hat revision number) of Linux.
    label=linux
    This identifies the "boot option" label that appears if you press tab at the LILO prompt.
    root=/dev/hda8
    This shows the location of the root, /, directory file system partition.
    initrd=/boot/initrd-2.2.5-15.img
    This reveals the location of the second stage (RAM disk) load.
    read-only
    During installation, the RAM disk file system is started in read-only mode. After the second stage is finished with a few tests, the RAM disk is unloaded from memory and the real root partition is mounted from the file system in read/write mode.
    The next section is another boot option-in this case, to boot Windows 95 on the first partition, known as C: to users of DOS/Windows 9x (known as /dev/hda1 to Linux).
    other=/dev/hda1
            label=Win95
             table=/dev/hda
    The table is the location of the partition table to be used-in this case, the first physical IDE type disk on the system.
    What to Do When You See LILO
    When you restart the system, after the internal POST (Power On Self Test), the LILO boot block, MBR, is loaded.
    You then see a big picture of the Red Hat logo on the left and all your boot options appear in the column on the right.
    By default, you have five seconds to enter something; otherwise, the system will automatically continue with the first labeled boot (default) option.
    By simply pressing enter, the default entry is selected-in this case, the one known as Linux. If you wanted to select the Win95 option, you would enter the specific label name (case should not matter).
    lilo: win95<ENTER>
    LILO Parameters  
    To pass a parameter to LILO, type the parameter after the label name. For example, if you wanted to start your system in rescue mode, you would type rescue at the prompt when booting with the BOOT.IMG or BOOTNET.IMG diskette. If you wanted to start your system in single-user mode, either of the two following commands would provide the same result:
    lilo: linux  single<ENTER>
    lilo: linux  1<ENTER>
    Single-user Mode
    A common kernel option is the word "single," or alternatively, the number 1. Both of these options change the default behavior of the startup such that the system boots into runlevel 1, also known as single-user mode.
    Many more parameters can be added, including how much memory to use, and what device to load as the root device in the case of a broken mirror set. All of these are documented on the CD-ROM in the /usr/doc/LILO subdirectory.
    Single-user mode is the most commonly used option. This is the system maintenance mode for experienced Linux administrators. In single-user mode, no file systems other than the root file system are loaded. You are then able to do clean backups and restores to any partitions in this mode. You also have the ability to run administration commands, recover or repair passwd and shadow password files, run file system checks, and so forth.
    In some cases, to get out of single-user mode you just have to type exit and your system will go into multi-user mode. Alternately, if you have made changes or repairs to any partitions, you should reboot the machine. Press ctrl-alt-del to reboot from within single-user mode.
    LILO Errors  
    The LILO first stage will also indicate some common and not so common problems:
    (nothing)    did not get to lilo at all
    L        first stage loaded and started
    LI        second stage loaded from /boot
    LILO        all of lilo is loaded correctly
    Occasionally, there may be an error due to partition table changes, bad blocks, and so forth. On these rare occurrences, you will only get partial LILO prompts:
    LIL             second stage boot loader is started
    LIL?           Second stage loaded at an incorrect address
    LIL-            the descriptor table is corrupt
    What to Do If /etc/lilo.conf Changes
    If /etc/lilo.conf changes, you will first need to log in as root. If you want to add additional kernel options, use a text editor such as vi, pico, or joe to modify the /etc/lilo.conf file. Once modified, the changes must be added to the LILO boot process. This is done by running the /sbin/lilo utility at the prompt. This forces the update of the boot record to include the changed options.
    If you have a dual boot system, you may want to change the default to another operating system for a short period of time. You update the /etc/lilo.conf file and then must run /sbin/lilo to force the changes at bootup. This may also need to be done in some rescue situations, in which you will need to rebuild the boot record. In the case of a rescue, you should be aware that this boot record uses a relative offset to point to the files to be loaded. Make sure you mount any extra file systems, after the root file system, in similar locations to normal.
    CERTIFICATION OBJECTIVE 3.05
    Using Syslinux and loadlin  
    Although Red Hat Linux uses the LILO boot loader program to manage the initial bootup process, there are alternates that other distributions of Linux use.
    During installation, you will see another loader called Syslinux.n.m-x. This is an MS-DOS-based loader and is used on all the installation images because it is small enough to fit on a floppy and boot a basic Linux kernel. You can get more information about Syslinux from http://metalab.unc.edu/pub/Linux/system/boot/loaders/.
    Another popular option is called loadlin. The loadlin program is also MS-DOS-based and requires a copy of the Linux kernel, and possibly an initial RAM disk if your drives are SCSI types, to be MS-DOS available. You can read the HOWTO and FAQs on loadlin if you want to use it instead of LILO. You can find out more about loadlin at http://metalab.unc.edu/pub/Linux/system/boot/dualboot/.
    Essentially, the loadlin program relies on MS-DOS instead of your system BIOS to load Linux. The advantage is that loadlin can load a kernel beyond the 1024 cylinder boundary, from any file system that is accessible to MS-DOS. Note that loadlin cannot be used from any Win9x or NT DOS PROMPT environment; you must boot into MS-DOS mode.
    There are also some commercial boot loaders available, like System Commander, that can create a table of optional boots for almost any other operating system you can install on an Intel-based PC. Some of these commercial products can update the NT boot loader system and provide a direct boot option to Linux from the NT boot prompt. More information on System Commander can be found at http://www.systemcommander.com/products/products.html.
    There is a mini-HOWTO document for loadlin being used with Win95 on the documentation CD-ROM at HOWTOS/mini/Loadlin+Win95-98-ME, if further details are needed.
    CERTIFICATION OBJECTIVE 3.06
    Additional Installation Details
    Now that the basic screens from the install have been explained, we can delve into greater detail regarding the more important aspects of Linux you should know before attempting an installation.
    Partition Concepts
    With either fdisk or Disk Druid utility, you must understand basic partitioning concepts. In Figure 3-29, 16 partitions are displayed. Though 16 partitions are possible, unless you needed them, you would probably not break a disk into this many sections. It is totally up to you, however. Keep in mind, though, that you can only use 15 of the partitions to actually hold any type of file system.
    Production- Please pickup Figure 3-35 from ISBN 0-07-212155-6.
    Figure 29: A maximum of 16 devices are possible for any one IDE disk, 15 of which are usable
    On a SCSI disk, there is no extended disk option, but you can still create 15 usable partitions. In this case, the naming scheme would be sca instead of hda for the first drive, then scb, scc, and so on.
    Preparation Details Before fdisk or Disk Druid
    You will be introduced to the use of fdisk in full detail in the next section. There have been a few references during the installation about using fdisk and Disk Druid to create partitions, but you still need to know what all these partitions are actually for as there is no one particular answer.
    You must decide what to do with your disk space before you begin partitioning it. This is the first, and probably most important, preinstall detail to know. So, what partitions will you need to create? If you have a new machine, you can let the Workstation or Server Installation options do it for you. If you plan to use the Custom option, you must first have a clear idea of your partition scheme.
    Getting Started: The Sample Partition Table
    As a preliminary step to getting started, you need to have a clear idea of how to separate your file system onto various disks. Table 3-2 can be used as a starting guide to decide how to create your partition scheme.  
    Improved Performance: Spreading the Load
    Performance improvements can be obtained for any system in two simple ways:  
    *With increased memory
    *By spreading the load of read and write operations across multiple disks, or, even better, across multiple controllers
    Keep this performance enhancement in mind when deciding what directory structure to put on which partition on each disk. You should try to keep the system files separate from the data files, and preferably on separate disks and controllers.  
    Another way to "spread the load" is to use software or hardware solutions that use various forms of RAID. On a big server, RAID can be an excellent way to provide better performance and better reliability. Hardware solutions are more expensive and provide better service than software-based RAID solutions should disasters occur. How to set up RAID is discussed in Chapter 5, or you can check the HOWTO documents for more information.
    Table 3-3 lists some of the commonly separated file system directories in the left column, and in the right column, contains comments regarding size and why to separate it. You can then fill in the second, third, and fourth columns with the actual information for your system and post it on the machine for easy reference.
    Use
    Disk
    Partition
    Size (MB)
    Comments
    Swap  
    hda / hdb / hdc / ?  
    (required) Have to have at least one; two to three times memory is typical  
    (can split swap space across multiple disks and controllers for better performance)  
    64MB def.
    /boot
    Must be within first 1024 "seeable" cylinders on any disk
    16MB default
    /   (root)
    Contains system; typically provides access to all other partitions (required)
    No default; 600+ workstations; 256MB server
    Note: recommended 1000+MB if no other partitions
    (unusable as a file system)  
    hda  / hdb /hdc / hdd
    4
    IDE-Extended container partition for the logical drives (max 12)
    /var
    Variable area for system logs, spooling, e-mail, and so on.
    256MB default server
    /usr
    Usually for "user" stuff: binaries, data, games, and so on.
    512+MB default server
    /home
    Home directories, good idea to separate for backup and quota management  
    512+MB default server
    /var/ftp (RH7.x)
    Separate if large FTP site
    /yourdata
    Your specific needs
    /opt
    Many third party and commercial software packages install to here
    Table 3: Getting Started: The Installation Worksheet
    CERTIFICATION OBJECTIVE 3.07
    Creating Partitions: Details
    Now that you have the partition layout for your system, you need to actually create them. For this, you will probably use the fdisk utility, either from a boot diskette or from the running system. The next section details exactly how to use fdisk to create your system partitions.
    Why Separate File Systems?
    The UNIX, and hence Linux, file system has been historically split up into smaller, more manageable pieces for various reasons: everything started on small disks, small partitions are easier to dump and restore, partition limits can be used to restrict or control disk usage, and so on.
    The Linux file system can also be broken up into smaller pieces or left as one large unit, if so desired. When would you use one big partition? When you have a large RAID5 disk farm providing your file system, or when you are creating a small test system.
    Linux File Systems: /tmp /boot /usr/local /var /home  
    The historical separations have been blurred over time, but the following are the Red Hat Linux recommended file system breakouts for the base system of any server:
    /tmp
    Used by everyone; no need to back up; gets very fragmented; usually has a crontab entry for "cleanup"
    /boot
    Represents second-stage extras for LILO; must be within first 1024 "seeable" cylinders
    /var
    The variable area gets written to by memory; often used for mail and spooling;  system memory data becomes very fragmented
    /home
    Home directories of all users; good idea to keep them separate from system files if using quotas; restricts quota management "area"
    /usr/local
    Specific binaries, data, and setup files for this particular machine
    Additional file systems can be created to meet additional or specific needs of related groups of users (for example, /development, /dbms, /financials, /inventory, and so forth).

    Possible Target File Systems for Separate File System Placement  
    Your Linux host may also be supporting a very specific set of applications (such as Web and FTP hosting), any one of the many file and print sharing services (like NFS, Samba, NetWare, and Macintosh), or a third-party application (database management system, financials, Geographical Information System, video, software development, and so forth).
    In many cases, you probably want to break up these files into separate, manageable units, perhaps spread over many partitions if they are very large. This disperses the load across the file system, provides better disk management, backup, and recovery options, and allows for a more flexible overall system design.
    Swap Space Partition Sizing and Placement  
    The total memory available to any and all programs is the sum of all RAM and swap space. Linux uses a linear memory model.
    Although there is no hard-and-fast format, a good rule of thumb is to create your swap partition so it's two to three times that of small memory systems. This was typical in the early days of UNIX when RAM was very expensive and disk space was cheap. Current systems can easily have large amounts of memory. Is there an upper limit? Not really, especially when you consider it is 64GB for the Enterprise kernel alone. Still, you could have a smaller swap space if you had a huge amount of RAM.
    One recommendation is to use two to three times the memory for any system with less than 512MB of RAM. After this point, it might seem wasteful to create a 1GB swapfile that is almost never used on a system with 512MB of RAM. You might opt for a 512MB or, even as low as, 256MB swap partition.  
    The swapfile is used sparingly for some system information, but is used heavily to page out user processes when more memory is needed. In essence, you never want to swap user processes. Keep in mind, RAM is in nanoseconds of speed, whereas disk is in milliseconds of speed-a million-fold difference. The swap is just there in case you have a sporadic need for lots more virtual memory. If your machine constantly uses swap space, this action will slow it down significantly. In such cases, You should get more RAM for your system, or reduce the workload.
    Technically speaking, you can have up to eight swap partitions, totaling a maximum of 4GB. Any single swap partition can be up to 2GB maximum. Swap partitions are only used for virtual memory, acting like additional RAM to your system, and use a different file system than the other partitions. Some high-end RDMS database systems have their own format and file system for partitions, like Oracle, to contain their data, as opposed to an ext2fs.
    Supported File System Types
    Linux natively supports many other file systems, such as DOS, HPFS, FAT, VFAT, and NTFS . So if you have OS/2, Windows 9x, or a DOS operating system using other partitions on the same machine Linux is installed on, you can access them. The system will be able to "see" the native files.  
    The most popular Linux file system is called Second Extended File System, denoted by ext2fs or just ext2. Most associated utilities will start with or contain e2, like e2fsck, dumpe2fs, mke2fs, and so on.
    In the following code, the first command, df, displays the total, used, and available free space on all currently mounted file systems. The second command, mount, shows the type of file system. In this case, the device /dev/hda1 is mounted using VFAT as /DosC and represents direct access to what would be the C: drive of the Windows operating system on this first partition. Linux can directly access many other native file systems.
    ==================================================================
    [root@linux6 /root]# df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/hda8               932833    502478    382162  57% /
    /dev/hda7                23300      2588     19509  12% /boot
    /dev/hda1              1052064    914784    137280  87% /dosC
    /dev/hda6              1052064    111648    940416  11% /dosE
    /dev/hdb                556054    556054         0 100% /mnt/cdrom
    [root@linux6 /root]# mount
    /dev/hda8 on /          type ext2 (rw)
    none      on /proc      type proc (rw)
    /dev/hda7 on /boot      type ext2 (rw)
    /dev/hda1 on /dosC      type vfat (rw)
    /dev/hda6 on /dosE      type vfat (rw)
    none      on /dev/pts   type devpts (rw,mode=0622)
    /dev/hdb  on /mnt/cdrom type iso9660 (ro)
    [root@linux6 /root]# ls /dosC
    CDsetup.bat      boot.ini      detlog.old    io.sys        sbide.sys
    Exchange         bootlog.prv   detlog.txt    mscdex.exe    scandisk.log
    My Documents     bootlog.txt   digipix       msdos.---     setuplog.old
    Program Files    bootsect.dos  drvspace.bin  msdos.bak     setuplog.txt
    RescuedDoc1.txt  ca_appsw      dswin         msdos.dos     suhdlog.---
    RescuedDoc.txt   command.com   ffastun.ffa   msdos.sys     suhdlog.dat
    acess            command.dos   ffastun.ffl   mskids        system.1st
    autoexec.bat     config.dos    ffastun.ffo   netlog.txt    temp
    autoexec.dos     config.sys    ffastun0.ffx  ntdetect.com  w95undo.dat
    autoexec.old     config.win    himem.sys     ntldr         w95undo.ini
    boot.---         dblspace.bin  io.dos        recycled      win95
    [root@linux6 /root]#  
    ==================================================================
    This listing shows a typical Workstation installation with two additional mount points for the C: and E: drives used by the Win9x and NT operating systems also resident on this machine. Why would you bother to do this: Test machine, help desk machine, development, only have one machine and need to practice, in a classroom, and many more possible scenarios. You would not do this for a typical single-user production machine.
    One of the benefits is that you can move and copy files between the Linux partitions and the DOS partitions using standard Linux commands. You cannot, however, run any Windows applications within Linux unless you run a DOS or Windows Emulation package.
    The fdisk Utility   
    The fdisk utility is universally available and should be one of the first tools you get acquainted with. There are many commands, even an expert mode, but you only need to know a few as discussed here.
    Though you can modify the physical disk partition layout using many programs, we will be discussing the Linux implementation of fdisk. FDISK.EXE from DOS has the same name, and is also used for creating partitions, but doesn't incorporate any Linux-compatible features. A simple rule to follow is to use whichever fdisk is supplied with an operating system when creating partitions for that operating system.  
    Using fdisk: Starting, Getting Help, and Quitting
    The following screen output shows how to start the fdisk program, how to get help, and how to quit the program.
    ===================================================
    #  fdisk /dev/hda


    Command (m for help): m
    Command action
        a   toggle a bootable flag
        b   edit bsd disklabel
        c   toggle the dos compatibility flag
        d   delete a partition
        l   list known partition types
        m   print this menu
        n   add a new partition
        o   create a new empty DOS partition table
        p   print the partition table
        q   quit without saving changes
        s   create a new empty Sun disklabel
        t   change a partition's system id
        u   change display/entry units
        v   verify the partition table
        w   write table to disk and exit
        x   extra functionality (experts only)

    Command (m for help): q

    ===================================================
    The fdisk utility is all text-based, and as such, displays hard drive parameters at startup.
    Using fdisk: In a Nutshell
    You should print to screen (p) the current partition table entries. You then create a new (n) partition, either primary (p) or logical (l), partition number (1-4 for primary, 5-16 for logical), starting one number after whatever is the current last-used cylinder number. The size of the partition will depend on disk geometry; do not worry about exact size here. Normally, fdisk defaults to creating a Linux Native type (82) partition. For the swap partition, the partition type has to be toggled (t) to type 82, swap. Repeat these general steps for each required partition. Note that all other partitions should be type 83, Linux Native. Please note that fdisk is memory resident and makes all these changes in memory. You need to write (w) these changes to the disk as the last step, otherwise no changes will be made.
    Using fdisk: Deleting and Creating Partitions
    In the following screen output sample, you will remove the only partition. The sample output screen first starts fdisk. Then you print (p) the current partition table, delete (d) the partition by number (1 in this case), write (w) the changes to the disk, and quit (q) from the program.  
    Warning: Last chance to change your mind before deleting the current partition.
    ===================================================
    #fdisk /dev/hdb


    Command (m for help): p
    Disk /dev/hdb: 255 heads, 63 sectors, 525 cylinders
    Units = cylinders of 16065 * 512 bytes

    Device    Boot    Start       End    Blocks   Id  System
    /dev/hdb1   *         1       525   4217031    6  FAT16
    Command (m for help): d
    Partition number (1-1): 1

    Command (m for help): w

    ===================================================
    You did it! Now you can create the partitions you need.
    Using fdisk: A New PC with No Partitions
    After installing Linux on a new PC, you'll want to use fdisk to configure additional physical disks attached to the system. Create a new partition, type Primary for the first three, and then Extended for the rest of the disk as partition 4 before creating logical drives 5-16 within the extended partition. There is no need to create an extended partition unless you require more than four partitions on the new disk.
    Using fdisk: Creating Partitions
    The following screen output sample shows the steps used to create (n) the first (/boot) partition, make it bootable (a), and then finally write (w) the partition information to the disk. (Note: Although you may ask for a 16MB partition, the geometry of the disk may not allow that size, as in the example.)
    ===================================================
    # fdisk /dev hdb


    Command (m for help): n
    Command action
        l   logical (5 or over)
        p   primary partition (1-4)
    p
    First cylinder (1-256, default 1): 1
    Last cylinder or +size or +sizeM or +sizeK (2-256,def 256): 2

    Command (m for help): p
    Disk /dev/hdb: 255 heads, 63 sectors, 256 cylinders
    Units = cylinders of 16065 * 512 bytes
        Device Boot    Start       End    Blocks   Id  System
    /dev/hdb1            1         2     16044   83  Linux

    ==============================================================
    Repeat the commands to create the rest of the partitions. After all are created, you should end up with the final design as illustrated in the following output screen sample:
    ===================================================
    Command (m for help): p

    Disk /dev/hdb: 255 heads, 63 sectors, 256 cylinders
    Units = cylinders of 16065 * 512 bytes
       Device Boot    Start       End    Blocks   Id  System
    /dev/hdb1            1         2     16044   83  Linux
    /dev/hdb2             3        18     64176   82  swap
    /dev/hdb3            19       169   1203300   83  Linux
    /dev/hdb4           170       250    649782    5  Extended
    /dev/hdb5           170       201    248682   83  Linux  
    /dev/hdb6           202       257    449232   83  Linux  

    Command (m for help): w

    ==================================================
    The fdisk Write Option
    The last option used in the preceding listing, the w option, is actually the most important! Up to this point, you have been changing things in program memory, and have not actually made any changes to the physical disk table at all. The write option, w, actually updates the disk's internal partition table information. This always requires a reboot, as significant changes were just made. The alternate to this option is q, which quits without saving these changes.
    Disk Druid
    One of the excellent additional programs supplied with the Red Hat Linux installation is the graphical Disk Druid program that provides a more intuitive interface. The actions are similar, but the interface hides the need to know about the partition ID (it just uses a text name ID) and has an option called Growable. This option allows the system to determine how much disk space a partition will take based on available free space. However, Disk Druid is available only at initial installation time.
    This Growable option is very beneficial in the kickstart scripts (automated installation scripts) where the target hardware may have varying sized disks. All partition space can be allocated by allowing it to "Grow" to fill the disk during installation. This is something fdisk cannot do.
    Hardware Installation Scenarios
    You may be given machines which already have operating systems that use all the available disk space, or machines with operating systems that can be completely replaced.
    One Operating System Only
    If you do not want to save the old OS, you can delete all earlier partitions and start with no partitions on the disk. If the machine will only be used for one operating system, Linux, this is the best option. You then only need to decide whether the workstation or server options will meet your needs. If they do not meet your needs, you can use the Custom Installation option to modify either the workstation or server design to better suit your needs.
    Already Have Windows x.xx
    If you purchased a basic PC, chances are it was preconfigured with an MS Windows-based operating system. Most likely, the entire disk has been formatted as one big partition, known as the C: drive. This is an unfortunate design for you at this point. If you want to keep the current operating system as is, you can find some software that will shrink the partition down for you. There are commercial versions, such as Partition Magic from PowerQuest Inc. (http://www.powerquest.com), and free versions, such as the FIPS utility supplied on the installation images.  
    Note: Due to the variance of hardware and software available, neither of these products are guaranteed by Red Hat or the author to be without peril. You need to read the documentation and back up everything twice to be sure, then try this with the assumption that something may go wrong, and if so, you can always rebuild (assuming you know how to do this). Many before you have successfully used these utilities, including the author, but things can still go wrong, so be prepared for the worst.
    If you use FIPS, it will create a second partition out of the available space you retrieved from any other partition. You should delete this new empty partition before starting the Linux installation. This will allow the installation script to create the workstation, or server, required partitions from the available space, or allow you to create the partition scheme yourself in the Custom installation.
    Real-world Applications-Using Partition Magic
    A preconfigured laptop came with 1.5GB of disk space on one IDE disk drive, which was allocated as one Primary partition, and had Windows 95 as the operating system. The first step was to make sure the current set of files on the disk drive was reduced to less than the 1GB boundary. Unnecessary software and files were archived and removed so there was only 800MB of used space on this primary disk. Using Partition Magic Software, the files were shifted to ensure they were within the first 800MB of the disk, then the first primary partition end cylinder value was changed so it ended at 1.0GB. This freed up 500MB for the second OS to be loaded. All of this was done through the Partition Magic Software, as well as with FIPS on a second equivalent PC. Both finished without loss of the original Windows 95 OS.
    Changing a Partition Size
    You can magically move the partition table boundary without loss of data by using the supplied FIPS program or a commercial product, such as Partition Magic.
    You start with a disk that has only one partition, as shown next.
    0  Cylinder       to               cylinder  n
    All cylinders are used by the single partition table entry. Assuming the actual files on this partition do not use all the disk space, or you can remove some to make unused space available, then you can shrink back the end cylinder for this first partition without affecting the files already contained on the disk.
    The following listing shows what the disk might look like after you have changed the end wall of the first partition.
    0            a                    (cyl) n
    Using the FIPS program, you can shrink the first partition and make the extra space available for one or more partitions. You can then use fdisk to add additional partitions, as illustrated in the following:
    0                      a  a+1   b  b+1    c  c+1      (cyl) n
    hda1                   hda2     hda3       hda5
    Primary and Extended Partitions
    A partition on a disk is a logical set of cylinders that represent all or part of the entire disk. Each disk can be one big partition or separated into many portions. Due to a design in the early stages of the PC and the DOS operating system, you are restricted to a maximum of four primary partitions, one of which can be a special type of primary partition called an extended partition. Each of the other three primary partitions can represent one logical drive. The extended partition, though, is a special case that allows you to break it up into a maximum of 12 more "logical" partitions. This gives a total of 16 partitions, of which only 15 are usable on an IDE computer.  
    A SCSI type disk is also capable of 15 partitions total as there is no such thing as an extended partition.
    Partition Filenames
    All device files are located in the /dev directory. Linux has a standard naming convention for the different hard drive types (IDE or SCSI), the drive ID, and for each partition.  
    The IDE Partition Filename Convention
    With IDE, a PC can have a maximum of four devices, two on both the first and second controllers. The first controller would be denoted as hda, hard disk - "a" or first controller ID. Then the partition number follows as in hda1 for the first partition on the first drive on the first controller. The listing that follows shows a sample of a disk partition table with three partitions on a single disk.  
    hda1          hda2                    hda3
    The second drive, first partition would be hdb1, where the full path name is /dev/hdb1.
    The third drive, first partition would be hdc1, where the full path name is /dev/hdc1.
    SCSI Devices
    SCSI is another type of interface for disk drives. It has more devices per controller: seven additional for early SCSI, and 15 for new SCSI implementations. SCSI is generally somewhat more expensive, but may provide a higher data throughput.
    For SCSI devices, filenames begin with the letters sda, for SCSI disk on first controller. The partitions on this first drive are sda1, sda2, sda3, and so forth. The second drive partitions are sdb1, sdb2, and so on. And partitions on the sixth drive are sdf1, sdf2, sdf3, and so on. The listing that follows shows the names of the partitions for the third SCSI drive:
    sdc1          sdc2                         sdc3
    Hard Disk Installation  
    Rather than install from a CD-ROM, you can chose to copy the CD-ROM image to a hard drive, then install from the hard drive. To accomplish this, you must obtain the ISO (CD-ROM) images for the distribution CDs. Rather than burn those images onto CDs, you'd simply place the ISO files into a directory of your choice, then provide that directory name when prompted.
    Source Files on the CD-ROM
    By far the easiest, this installation assumes a standard ATAPI-type CD-ROM is locally attached. The CD-ROM installation can be selected from a standard BOOT.IMG installation startup disk.
    Source Files from Network Installations
    Before you can get to any network source files, you need to configure your network card to be a part of the network. You will need to input a valid, unused IP address, the local network mask, the default gateway IP address (if network resource is on another network segment), and optionally, the primary DNS IP, the Domain Name, and the host name to use for this machine.
    You are presented with three options during installation for setting up your machine on the network:
    Static IP Address
    You fill it in; you know the numbers
    BOOTP
    Dynamically sent to you from a BOOTP server
    DHCP
    Dynamically sent to you from a DHCP server
    The last two options are the easiest. Your machine sends out a BOOTP or DHCP request and these network type services send back all the IP information your machine needs to get on the network. However, they require an existing server on the network, already configured to reply to these requests.
    The first option allows you to enter the information directly. If you are on a local network, an IP address and the associated Network Mask is enough information to get you on to your local network with access to a local server. If your network was 206.195.1.0, and your host was number 222, you could use the following information:
    IP Address
    206.195.1.222
    Network Mask
    255.255.255.0
    You may also need or want to use advanced host name resolution so you don't have to remember the IP address of the servers. DNS can provide this service if it is already configured on your network. DNS is what the Internet uses for host name resolution. If DNS is not configured, you have to use the IP address of any network hosts you wish to get access to. DNS is just a convenience when there are many hosts, considering their names are usually easier to remember than their IP address.
    IP Address
    206.195.1.222
    Network Mask
    255.255.255.0
    Default Gateway
    206.195.1.254
    Primary Name Server
    192.168.15.1
    Domain Name
    vaddac.com
    Host name
    linux56.vaddac.com
    The Default Gateway IP is the portal to the rest of the network. In the preceding scenario, the DNS server is on another network somewhere and you will need the Gateway IP address to access it.
    Source Files from FTP and HTTP  
    An FTP or HTTP server can be a convenient source of installation files.
    To use either an FTP or HTTP server, you need to know the IP address and the name of the directory structure that contains the /RedHat directory tree.  
    IP Address  
    206.195.1.1
    or use the full domain name
    Directory
    /pub/I386
    directory containing RedHat/
    Source Files from NFS  
    This installation option allows an NFS server on the network configured as an export server to provide the Red Hat subtree files via a network connection.  
    This assumes you have NFS running on another host accessible via a network connection on the target machine, and that you have the installation files exported from that host. You will be asked for the NFS server IP address and the name of the exported directory.
    NFS Address  
    206.195.1.1
    or use the full domain name
    NFS export
    /exports/I386
    directory containing /RedHat/
    Creating an NFS Export Service
    To create an NFS install server, you should copy the installation tree from the CD-ROM to a hard drive on the NFS server.
    Copying Files and Exporting Local File Systems
    The following output sample shows how to make a directory to hold the Red Hat file tree.
    =============================================================
    # mkdir -p /nfs/exports
    #         
    # mkdir /mnt/cdrom  
    #         # copy to a local file system
    # cp -a /mnt/cdrom/RedHat   /nfs/exports
    #         # add the export request
    # echo '/nfs/exports  (ro)' >> /etc/exports
    #         # stop and start the nfs service
    # /etc/init.d/rc.d/nfs  stop
    # /etc/init.d/rc.d/nfs  start
    =============================================================
    At the Client
    You need to know the IP address of your NFS server as well as the name of the NFS export service, and enter these when prompted. At an NT server, you can use the IPCONFIG /ALL command at a command prompt to see the IP information. At the UNIX or Linux NFS server, to display the IP information for your host, use the ifconfig command as root user (illustrated in the following screen output sample).
    =============================================================
    [root@linux6 /root]# ifconfig
    eth0 Link encap:Ethernet  HWaddr 00:00:C0:A8:16:BA
          inet addr:206.195.1.222  Bcast:206.195.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    ...
    [root@linux6 /root]#
    =============================================================
    Source Files from Samba
    Red Hat 6.0 is not able to use Samba services for installation. Red Hat 7.x can, however. Samba services represent the native Windows 9x and NT file-sharing protocol, SMB (Server Message Block). In previous incarnations and the latest versions, you can share the /RedHat directory from any Win9x or NT host as a local SMB share and access it through the network by knowing the name of the server and the share name.  
    An example share from the server identified as NT4PDCNYC having a share named REDHAT (representing the CD-ROM /RedHat directory) would use the following reference to connect to this resource:
    \\NT4PDCNYC\REDHAT
    The Installation Log File
    During every installation, a copy of the installation options and the related files are written to an installation log file called /tmp/install.log. This information is duplicated to the various console displays during the installation. Be sure to copy this file to a backup before you, or the system, inadvertently deletes the file. You can view most of the information about your installation on one of the other virtual terminals maintained during the installation.
    CERTIFICATION OBJECTIVE 3.08
    Viewing Boot Time Information
    There are actually many processes running and many parts to the installation. The system logs everything to an installation log file and separates related information between four of the five virtual console screens supported during the installation.
    The Console Installation Output Screens
    When you start the installation, you are on the first virtual console, which can be accessed using alt-f1. A bash shell is on the second, the installation message log is on the third, kernel messages are on the fourth, and the output of mke2fs on each file system is displayed. If you want to see the other screens, you can press the following key sequences in any order at any time:
    alt-f1
    Installation display (this is what you normally see, all others are FYI)
    alt-f2
    Bash shell gives you access to limited system information
    alt-f3
    The Installation message log is displayed
    alt-f4
    Displays all kernel messages
    alt-f5
    Installation displays partition formatting
    Note: The partition formatting display includes the alternate superblocks. In an emergency situation where a file system disk is corrupt and cannot be repaired by /sbin/fsck, the check program may want to try an alternate superblock. These are usually a multiple of some block size, like 8K. Block 8192 ends the first 8K, so 8193 is the next block and is a duplicate copy of the primary superblock. This alt-f5 virtual terminal will provide the list of alternate superblock numbers. Superblocks contain the inode information and used bit block map, amongst other things. You can also get a listing of the internal file system information using the dumpefs program, as illustrated in the following sample screen output. The first command line lists the file system characteristics of the hda5 partition:
    ===========================================================
    [root@rh6laptop /root]# dumpe2fs /dev/hda5 | head -5
    dumpe2fs 1.14, 9-Jan-1999 for EXT2 FS 0.5b, 95/08/09
    Filesystem volume name:   <none>
    Last mounted on:          <not available>
    Filesystem UUID:          57a1b50a-6f62-11d3-9656-c2da53691d05
    Filesystem magic number:  0xEF53
    [root@rh6laptop /root]#
    ==============================================================
    Using page up/page down at the Virtual Consoles
    Another nice feature of Linux virtual terminals is that you can go back and forth through previous pages that have scrolled off the screen by using shift-pgup and shift-pgdn. Although only a few more lines are available, the added feature is still very useful and is available at any time during system operation.
    CERTIFICATION OBJECTIVE 3.09
    The Bootup Messages in dmesg
    The file /var/log/dmesg contains boot messages duplicated from the console output as seen during each bootup. These messages contain hardware information, process initialization, and sequencing information to name a few:
    =============================================================
    [root@linux6 /root]# head -7 /var/log/dmesg
    Linux version 2.2.5-15(root@porky.devel.redhat.com)(gcc version egcs-2.91.66 1
    9990314/Linux (egcs-1.1.2 release)) #1 Mon Apr 19 22:21:09 EDT 1999
    Detected 199964089 Hz processor.
    Console: colour VGA+ 80x25
    Calibrating delay loop... 398.95 BogoMIPS
    Memory:62836k/65536kavailable(996k kernel code,412k reserved,928k data,60k init)
    VFS: Diskquotas version dquot_6.4.0 initialized
    CPU: Intel Pentium MMX stepping 03
    ?
    autorun ...
    ... autorun DONE.
    VFS: Mounted root (ext2 filesystem) readonly.
    change_root: old root has d_count=1
    Trying to unmount old root ... okay
    Freeing unused kernel memory: 60k freed
    Adding Swap: 72256k swap-space (priority -1)
    [root@linux6 /root]#
    =============================================================
    CERTIFICATION OBJECTIVE 3.10
    Validating the Installation
    After the installation is done, the installation script shuts down and reboots the machine. At this point, if a Workstation, Laptop, or Custom installation with X-Window was performed, the system defaults to start in runlevel 5, which is the X-Window login screen. A server installation, meanwhile, defaults to runlevel 3, which does not start X by default.
    If your X-Window server is not configured properly, you can press ctrl-alt-f1 to go back to a text-based login screen.
    You must log in to the system as root. Then you can force the system to reinitialize back to runlevel 3, the text-based login level, where you can fix the X configuration and then go back to runlevel 5. All three steps are shown in the following screen output sample:
    =============================================================
    [root@linux6 /root]# init 3    # goes back to multi-user mode, no X

    [root@linux6 /root]# Xconfigurator          # 'wizard' to set up X,  
    # NOTE: need video card type, memory and display type

    [root@linux6 /root]# init 5              # multi-user mode with X on screen

    [root@linux6 /root]#
    =============================================================
    Your runlevel 5 initial screen will show the Red Hat logo and a login screen. Once you have validated your login with a password, the GNOME system will initialize the desktop environment and display a screen something like Figure 3-30.
    Figure 3-30:
    The X-Window system GNOME desktop
    Alternatively, you might have selected the KDE Desktop, which would give you a display similar to Figure 3-31.
    Figure 3-31:
    The Kool desktop environment for Red Hat Linux
    CERTIFICATION OBJECTIVE 3.11
    Logging In as root
    In any runlevel, you can log in using the default superuser account known as root. This is the only privileged account on the system after installation and has full privileges to do anything to the system. This account should only be used for system administration, and you should create alternate accounts for users to log in with. Some installations require one alternate account be created.  
    Part of the installation script includes the setting of the root password. The root user is the normal system administrator or superuser account within Linux and most UNIX systems. There is nothing special about this name; you can change it to anything. Changing it, in fact, is a good security idea. A more devious security idea is to assign the root account a useless UID and GID, like 65535/65535, which has access to nothing. This provides hackers with hours of fun trying to break into a useless login account. Having a backdoor account is also a good idea. This is an alternate root type account with a hard to guess name and password combination.
    Caution: Changing the root account name or the root home directory location may break some applications, administration scripts, or future installation scripts. This is part of the price of security: more work on your part to maintain a higher level of security. You must decide which is more important: security or ease of management.
    During installation, you can see a copy of the messages going into the dmesg file on the third console. Press alt-f3 to access this terminal session. You can only look at the output. Use shift-pgup and shift-pgdn to page up and down through the text (note: this has a limited number of retained lines, so you may not be able to see everything).
    CERTIFICATION OBJECTIVE 3.12
    How Do You Know Whether Your Hardware Is Supported?
    Chances are, your hardware is supported, somewhere, somehow. Assume it is, and if in doubt, try some of the generic options for the device. A generic option might be a US Robotics or Hayes compatible modem, generic VGA or SVGA video card, a general multisync monitor, and so forth.
    When your hardware is not supported directly from the Red Hat CD-ROM, you have a couple of options. You can search the Internet for information, or get different hardware. Rarely does general hardware fail to work since Linux runs on almost every known CPU and on almost all hardware six months older than the release date of the software. Brand new technology is unlikely to be supported, and non-name brand laptops are usually a nightmare.
    This should not be a surprise. Most major brand name machines are directly supported, and most of their models from the last year or two should work. The operative word is should. Nothing is guaranteed. However, the many laptops that have Red Hat Linux installed attest to the high probability of it working with your hardware. If you want to see if it has already been tested, check the Red Hat Web site for the latest list of tested hardware.
    http://www.RedHat.com/hardware
    Keeps an up-to-date compatibility list
    Laptops are notoriously full of proprietary hardware. There is a special Web site that keeps track of X-Window setups for all kinds of laptops, both new and old, including top brands, and some not so well-known name brands as well.
    http://www.XFree86.org/cardlist.html
    Has more complete X information
    With all that said, there are a few other locations on the Internet where you can dig up installation and distribution information for funny, new, rare, and noncommercial hardware. There is even a special version of Linux for a Palm Pilot. You just have to do a little hunting on the Internet to find what you need.
    Installation Complete
    The information in this chapter is all you really need to know to get started. There's not much to know really, unless you have some bizarre equipment, want to customize the installation in funky ways, or have never partitioned a disk before. But if you get through all that, congratulations, you are well on your way to being a guru!  
    CERTIFICATION OBJECTIVE 3.13
    Sample Installation Exercises
    The following exercises are meant to provide you with a step-by-step set of progressively more complex installation exercises that cover everything from basic workstations to very specific and advanced server installations.
    Warning: You should do these exercises on test machines only.
    Introduction to Installation Exercises
    All these exercises assume you have a basic PC available at your disposal to work with as a learning station. You do not need a network connection, nor do you need to know how to configure X for these exercises-you can simply select the default answers in most cases.
    These exercises are designed to provide progressive development to help further your knowledge about installing Linux. A Workstation and Server installation will do all the disk partitioning for you. In these exercises, you will be asked to configure the installation for a specific usage, and customize the disk partition table to meet the needs of the intended usage. This will require that you do a Custom installation in all but one of the exercises.
    These exercises also assume your machine boots from the floppy during a normal reboot, that there is no pertinent information on these test machines, and that you realize all data will be overwritten on these machines.
     楼主| 发表于 2003-1-12 09:59:12 | 显示全部楼层

    2 linux sir

    2.1Linux系统安装前的准备工作

    在您开始安装Linux之前,您必须做以下的准备工作:
    1. 备份您硬盘上的所有重要数据! 首先建议您将您硬盘上的重要数据备份到软盘/光盘/磁带上,以免发生意外时,给您造成不必要的损失.
    2.如果采用硬盘,网络安装,或者bios不支持光盘启动,则要准备一,两张安装软盘。
    所需的img文件可在redhat安装光盘的/images/目录下找到,所需的img文件(/images/boot.img,bootnet.img)
    制作方法一,在dos下:
    把光碟上的/dosutils/rawrite.exe 拷贝到dos系统下,准备一张刚dos格式化的软盘。
    "C:
    awrite ***.img"
    制作方法二,在unix(linux)下:
    准备一张刚dos格式化的软盘,不要mount上系统。
    "dd if=***.img of=/dev/fd0"
    3. 准备Linux分区  
    Linux拥有自己的文件系统 (Linuxext2),所以,你在安装linux时它应该拥有自己特别的分区类型。这意味着你不能将Linux安装到一个已经存在的 DOS或Windows98分区上。所以您必须将硬盘上的分区进行调整,同时要在硬盘上留有足够的而且未被分配的磁盘空间来安装Linux,要达到这样的目的您可以通过下面的途径来做:  
    A,备份硬盘上的数据,通过dos下的fdisk对硬盘进行分区(这个办法一般不推荐使用,除非你使用的事一个崭新的硬盘。或者对硬盘上的所有数据进行北方,不然所有的数据都将会丢失)
    B,先在widows下将最后的一个分区的数据往前几个分区移动使其空出来(对于重要的数据请备份,以防不测)。如果你对linux下的分区软件Disk Druid了解的话,你就可以直接进行安装。要你是一个新手的话,我建议你去找dos版的Patition magic,这是一个非常专业而且功能强大 的分区编辑软件,您可以使用该工具对您的硬盘分区进行重新划分。不过现在你只要在dos下将刚才整理出来的空间的格式转换为linux et2的格式,那样你在等下安装linux的时候在分区的那项的时候你就可以按照默认进行。
    4.收集你的机器的所有硬件的信息,这些硬件大概包括如下几种 主板(主板上的芯片主型号) 声卡 显卡 鼠标 键盘 网卡等,这些信息一般你都可以在windows中找到。当然还有你的机器的说明书,这个可不要忘了。

    2.2Linux安装的几点经验  
    有关于Linux操作系统的好处许多文章都已经有介绍过了,想必大家一定都知道一些,前不久,我在我的电脑上安装了一套Linux操作系统(版本是Red Hat Linux 7.3),安装过程中有一些收获和体会,在此想通过这篇文章与各位交流一下,也算是体现一下Linux所倡导的共享精神。
    1. 安装前一定要对硬盘规划好,即确定好Linux安装在哪个分区。因为Linux支持的分区格式:Linux Native(根分区)和Linux Swap(数据交换区),与Win 9x支持的分区格式FAT、Windows NT支持的分区格式NTFS,他们之间互不兼容。也就是说,如果你还要继续使用Win 9x、NT的话(相信大多数人会是这么做的),Linux就必须安装在单独的分区下。另外,Linux应安装在硬盘分区的最后一个扩展分区。例如:原来分区为C、D、E、F,一定要将Linux安装在F盘。如果你将Linux安装在了D盘,那么进入Win 9x后,原来的E盘成了D盘,F盘成了E盘。虽然各盘的软件都还能运行,但是桌面、开始菜单的快捷键却都已无效。更麻烦的是注册表内还是原先E、F盘的信息。
    2. Linux的Swap分区swap的大小作的跟内存一样大就是了,最大128M。Native 分区的大小由你要安装的Linux组件多少决定,但最少要保证240MB。由于现在Linux的应用软件比较少,Native分区也不必留的太大。我建议Native分区不要超过2.5G。
    3. 由于安装过程中会询问一些有关硬件的信息,因此要提前搜集好PC硬件方面的信息。硬件信息主要有显示器、显卡、鼠标、键盘等。特别是显示器的信息,将直接决定你安装Linux后,使用图形界面程序fvwm95的效果。
    4. 如果Linux的安装事用Text方式的话那可比Windows的安装麻烦得多。首先,安装时它不支持鼠标,你必须频繁使用Tab、箭头、空格、回车等键做出选择。另外,如果你对满屏的英文没有十分把握,你手边最好放本字典。不过我们安装以默认的就可以,一路都事图形界面,它的安装和以前有了很大的改观。与windows的安装的区别在逐渐的缩小。
    5. 由于Linux系统区分大小写,所以在安装、使用linux的过程中输入命令时,请注意大小写。
    6. 下面谈谈Linux、Win 9x、NT多重启动方法。首先,在安装Linux的过程中,最好按照最后的要求制作好一张启动盘(Bootdisk)。还有安装过程中,系统会要你选择Linux的启动方法(我们一般选择默认grub)。这里有两种方法选择:Master Boot Record和First Sector of Boot Partition。第一种方法是直接从C盘,通过Linux系统的grub多重引导系统,选择某种操作系统启动;第二种方法是通过启动盘启动。这是因为毕竟现在大多数情况我们还是要使用Win 9x(或NT)系统。这样,平时启动时要进入到Windows系统(同时装有Win 9x、NT、MS-DOS时,还可通过NT的多重引导程序,做出进一步的选择,进入其中其他的一个系统),如果只安装一种linux我强烈建议使用第一种方法启动,在开机的时候可以通过选择菜单选择你所要进入的操作系统。如果选择第二中方法一般是安装两个以上的linux等特殊情况。然后再通过配grub(有时事lilo,不过他功能不如grub)多重引导。
    Linux安装完成后,等待你的是深入学习它,了解它的好处。祝你在这个"新星"中,实现自己的梦想。

    2.3我们一起在风雨中前行
    linux完全安装手册
    Linux的版本有很多,这里我们仅以Redhat 7.2为例来介绍Linux的安装。  
    Red Hat图形安装界面(Graphical mode) 使用光盘或是boot.img启动盘启动之后,您会看到Red Hat启动选单,上面的信息告诉您只要是Red Hat 3.03以后的版本,都可以直接升级成Red Hat 7.2版,另外Red Hat提供一些功能键F1一F5,可以观看不同安装模式的on-line HELP,最下面会出现LILO boot:提示符号,您可以在此输入某些关键字选择安装模式或加入设置Kemel参数,例如:内定安装模式就是graphical mode,采用图形操作界面安装Red Hat,直接按"ENTER"即可进入;text mode(boot:text)就是传统的文字选单安装模式:另外有exprt mode(boot:expert,专家模式)等三种. 至于rescue mode(boot:linux rescue)使系统修复模式,此种模式是用来为维护安装好的linux系统,我们初次安装Linux系统自然不能选择这种模式。最后一项DriverDisk(boot:linux dd)则是专为拥有特殊硬件的电脑设计的安装模式,若boot.img制作的磁盘没有办法正确搜索到所有的硬件,则可以改采用此种安装法,因为driver disk含有特殊硬件的驱动程序。但是Driver Disk安装法必须另外制作driver disk磁盘,该磁盘的image file放置在CD1的images/drivers.img,也就是说您必须同时制作boot.img和drivers.img这两张盘,才可以选择linux dd这种安装模式。一般若没什么特别需要,请采用fraphicalmode图形安装模式,按"ENTER"启动Linux吧!不过在此必须要注意的是,若您的显卡XFree86 X Server不支持,则无法启动图形安装模式,此时Red Hat会自动切换到text mode,不过安装方法是完全一模一样的,请不用担心。还有若您内存大于128MB,而Linux没有完全正确搜索的话,可指定内存大小给Kernel.例如:boot:linux mem=128M expert。一切准备就绪后,接着请参考下列步骤,一步步做下去,您会发现安装RedHat是如此简单快速。进入比Red Hat安装画面后,若PC有安装SCSI卡,则会自动驱动这块SCSI卡;若没有,则会直接启动X Window System进行安装。启动安装程序后,您可利用功能键切换各终端机,查看各种安装信息,例如:Ctrl+Alt+F7就是最主要的安装画面,您可以切换到Console 1看RedHat安装信息。  
    Console 1:Ctrl+Alt+F1 installation dialog  
    Console 2:Ctrl+Alt+F2 shell prompt  
    Console 3:Ctrl+Alt+F3 install log (messages from installation program)  
    Console 4:Ctrl+Alt+F4 system-related messages(messages from the kernel,etc.)  
    Console 5:Ctrl+Alt+F5 other messages  
    Console 7:Ctrl+Alt+F7 X graphical display  
    Stepl.选择语系  
      Red Hat有提供多国语言的安装界面,但是都是英语系或欧洲语系国家,并没有提供中文的安装界面,所以请选择English。如图是选择Red Hat语系画面,画面左边是网上辅助说明,若不想看可以单击Hide Help将此Online Help隐藏;右半部则是语系选单,单击确定之后,单击Next继续进行安装。而这个GUI按装界面除了可以用鼠标操作外,也可使用键盘的Tab切换选项,用"Enter键确定。
    Step 2.选择键盘  
      键盘一般都兼容于U.S.Englishl01键的键盘,所以就选内定值PC即可,如图。若是此时选择了错误的键盘模式,可以立即单击设,或者在完成Red Hat Unux安装之后,以rodt身份登录,执行/u或是setup重新设置。  
    Step 3.选择鼠标  
       鼠标一般都是两键/三键的PS/2、Bus Mouse或是Serial鼠标,如图2-5选择鼠标种类与连接端口。若您使用PS/2或Bus Mouse,则不必选择连接端口;使用Serial鼠标则必须设置正确的连接端口,例如:CoM1 port在Linux系统看来就是ttyS0这个装置名称,COM2 port就是ttyS1,请选择正确连接端口才能运行正常。最下面有个Emulate 3 Buttons可以让两键的鼠标左右键一起按时,模拟三键鼠标的中键。同样,若设置鼠标错误;可在安装之后,执行/usr/sbin/mouseconfig重新设置。假若您是左撇子或惯用左手鼠标,可以在安装好Red Hat之后,执行gpm-b 321,设置鼠标为左手鼠标。  
    Step4.Red Hat安装欢迎画面  
    看到可爱的小红帽欢迎画面了吧!这里简介安装方法详细记录在Red Hat Linux Installation Guide, 有HTML和PostScript两种文件格式, 并可从http://www.redhat.com网站取得,其实一般Red Hat光盘的doc/目录都有安装手册。另外看到画面下面有System Installer的字眼吧!Linux又这么漂亮的安装画面都是归功于RedHat公司编写loader安装程序的功劳(该程序在/sbin/loader)。红的帽子Linux(PC机用的免费UNIX操作系统)。请在左产品上的信息读完帮助正文。在屏幕的底部的左角有一个隐藏的帮助的按钮。帮助屏幕在没有特别指定的情况下是开着。如果你不想看帮助信息,可以单击隐藏帮助。继续单击下一步。  
    Step 5.选择Red Hat安装模式(请特别小心,以免数据全毁)  
       Red Hat的安装模式分四种:Workstation Server laptop Custom.这里你必须千万小心,因为选择Workstation 或Server的话, Red Hat会自动的帮您分割并格式化硬盘,若数据全毁的话,后悔就来不及了。但是若您预备使用完整的一个硬盘来安装 Red Hat,并不怕任何格式化的话,则安装和设置会异常顺利。
    下面是 Red Hat将安装模式分乘此三者的目的:  
       Workstation  
       选择GNOME(GNU Network Object Model Environment)Workstation或是KDE(KDesktop  
    Envirnment)Workstation的用户,打算将安装好的Linux当workstation使用,X 图形桌面集成环境有GNOME和KDE两种可供选择,但因为该PC只是相当单纯的工作站,所以不会安装任何的网络服务器(例如:web、FTP、News server等等),并且Workstation模式会把硬盘上的所有Linux partition全部移除,并重新划分成三个partition:64MB SWAP partition、/boot(16MB)与/(所有剩余硬盘空间,需要大于900MB。请注意:使用Workstation模式硬盘空间建议至少有1GB)。而后续的安装步骤:硬盘分割、格式化硬盘、选择安装软件套件、设置LILO多重启动系统,全由Red Hat安装程序包办。不过您也不要太担心,不用怕误选Workstation之后,马上就格式化硬盘了,因为后续画面是Automatic Partitioning,有Remove data与Manually Partition with DiskDruid/fdisk格式化硬盘的选项,如图所示。只要不选择Remove data, Red Hat就不会自动帮您分割硬盘,但是确定Linux partition硬盘数据不要的情况下,选择Remove data安装会更顺利。另外可让您更放心的一点是,选择Workstation安装模式,绝对不会删除任何的DOS/Windows 9x/windows2000 partition,因此若您的系统已经预先安装Windows98/2000,您只要选择Workstation自动安装模  
    式,在Linux安装完成之后,还会自动帮您设置LILO成为Windows/Linux多重启动模式,让您可以选择使用Windows或是Linux启动,所以强烈建议初次安装者,选择此种模式安装Linux。  
       Server  
       选择Server安装模式的话,请确定您预计安装Red Hat Linux的此个硬盘数据是完全不要的,因为此模式会将硬盘上的所有Partition全部移除!不会橡Workstation模式那么客气只移除Linux partition了,无论是DOS、Windows 9x/NT partition、OS/2全部都删除。然后将硬盘划分为64MB SWAP partition/256MB、/usr至少512MB、/home至少512MB、/var 256MB五个partition。一般情况下,若您硬盘很大,多余的硬盘空间都由/usr与/home两个partition平分,而且您要注意的是,至少拥有1.7GB的硬盘空间才可以采用Server模式安装,而除了硬盘分割方式不同外,Workstation与Server的后续安装步骤都是一样的。而另外一点Workstation与Server安装模式不同的地方为,Server模式不会安装任何的图形界面程序, 目的是为了让各类网络服务器发挥最大的性能,而不要将系统资源消耗在无谓的 X Window System上。至于server模式划分这么多Partition将数据个别分开放置的目的是:除了可以有效提升server的网络服务器运行性能外,还可以降低数据毁损风险与降低系统重建的复杂度。若读者您不知道这些partition名称为什么是/usr、/home之类的目录名称的话,请阅读第3章与第4章,或暂时先不要了解也没关系。  
       Custom  
       Custom安装模式就是凡事自己来,分割硬盘、配置各partition空间大小、格式化硬盘、选择软件套件、多重启动程序LILO的设置全由自己设置。接下来的安装模式教学,是采用Custom选项安装 Red Hat,因为这样才能完整讲解到Red Hat的所有安装设置,让您成为Red Hat Linux的主人。另外若您是第一次安装Red Hat,还是建议您可以先使用workstation自动安装模式,待成功安装过一次后,再自己尝试使用Custom安装模式,如此在学习Linux安装上,可能会较为顺畅。  
       Upgrade  
       若您先前已经安装过Red Hat 3.03至6.2的旧版本,都可以选用这个选项升级,Red Hat安装程序会完全保留系统的旧有配置文件,并把文件名附加上.rpmsave的副文件名,例如:/etc/profile就被改成/etc/profile.rpmsave,并且完整的Red Hat升级信息会被记录在/tmp/upgrade.log以供您参考。   
    Step 6.分割硬盘  
      选择Custom之后,可以马上看到所有硬盘的Partition情况,如图所示。所谓的mount Point就是Linux会将这个partition,mount在您指定的系统目录,要存取这个partition其实就是对这个目录做存取,例如/dev/hdal挂接在/win98,表示安装好Linux之后,IDE I Master硬盘的第一个partition,会mount在/win98这个目录。这点观念与DOS/Windows的C盘、D盘观念是完全不同的,另一个重要观念是Linux将所有电脑硬件都视为一个装置文体,如hda代表第一条IDE排线上的Master硬盘。
    自动分割机械分割  
    分割硬盘非常简单,只要单击Add就可以新增Partition,选Edit可以编辑己存在Partition的Mount point,Delete当然就是删除Partition了。
    Reset则可以让您划分错误时,回复到原始状态,因为真正的Partition Table要等到软件安装步骤后才会真正储存起来。最后有一个选项Make RAID Device因为是要做partition或磁盘的备份,所以必须有两个硬盘以上才可以制作,除非是重要的Server架设,否则读者一般安装不需要使用Software RAID功能。图2-10是选择Add partition之后的对话框,Mount Point可以是斜线(/)加任意名称,其实斜线(/)是root partition的意思,一个Linux系统有/与SWAP partition两个Partition就可以运行了。但建议您采用Server安装模式的分割方法:/boot(16MB)、/(256MB)、/usr(建议2GB,视安装软件数目多少决定)、/home(依用户人数多少决定,0~无穷大)、/var(256MB)、SWAP partition建议128MB以上,最大不要超过256MB,否则浪费。总共必须分割六个partition,决定好mount之后,再在Size(Megs)输入该Partition的空间大小,以MegaBytes为单位,下面Grow fill todisk是用掉所有硬盘空间的意思,通常在您分割到最后一个Partition时,就可以随便输入Size(Megs)的值,然后选择Grow fill to disk,便会自动用掉剩余的硬盘空间。最后有一个重要的选项  
    是Partition Type,所有的Partition都是Linux Native的Ext2文件系统,只有SWAP那个Partition必须选择为Linux SWAP,而且SWAP是不需要mount point的,因为它是虚拟内存。
    全部Partition规划好之后,下一个画面会让您选择哪几个Partition需要格式化,请将刚刚前面所规划的Partition全部格式化。  
    Step 7.安装LILO(Linux Loader)  
      LILO除了用来载入Linux Kernel启动系统之外,还有一个重要功能就是可以当作多重启动程序,DOS、Windows9x/2000/NT、OS2、FreeBSD、Solaris等等常见的操作系统都可以使用LILo启动。
    此选单最上面有个Creator boot disk选项指定要制作启动盘,还有一个Do notinstall LILO,请不要选择。因为若您不安装LILo就无法直接从硬盘开启Linux,所以建议一定要安装。接着的选项是指定LILO安装位置  
      MBR:MBR位于Master硬盘、第0磁柱(cylinder)、第0磁头内的第一个扇区(sector),电脑启动电源后,BIOS会读取这区域去启动操作系统,所以将LILO安装这里可以作为多重启动系统,例如选择用Linux、Windows 9x/NT、DOS或其他OS启动。boot:所谓的boot partition(superblock),就是硬盘每个Partition的第一个sector。把LILO装在Linux的/(root)boot partition,可以使用其他的多重启动系统如: System Commander、OSBS、Spfdisk或其他partition上的LILO来启动。而画面的最下面是显示可以启动的Partition有哪些,您可以自己指定启动系统选项(boot label)以及预设的启动系统(排在第一个的OS)。  
    Step 8引导装入程序口令构造  
    Step 9.TCP/IP  
      Red Hat会自动检测您的网卡并进入TCP/IP网络设置。您必须输入下列网络设置值(以笔者的机器当范例):最后面的第二台与第三台name server两项,若您不知道或没有,则可以不用填。若您根本没有固定IP而是使用Intranet,例如:modem用户,则IP Address请使用Intermet保留区段192.168.xxx.xxx,hostname可以随便您填,Gateway与DNS则填写所使用ISP提供的服务器。
    Step 10.Internet 防火墙构造  
    Red Hat Linux(PC机用的免费UNIX操作系统)向改良的系统安全提供Internet 防火墙保护。在你的计算机和网络之间,网络上的用户能在你的计算机上接近Internet 防火墙。  
    Step 11.选择语言支持  
      Red Hat Linux能在你的系统上安装语言,你可以选择全部安装或只选择china,如果你选择安装其他的语言,你能在安装后面改变你的语言设置。
    Step 12.设置系统时间  
      首先您会看到一张漂亮的世界地图,只要点选上面的地名就可以设置当地的系统时间,如图。若是嫌世界地图太小了,可以点选world下拉列表,然后选挥Asia,再将鼠标移到中华人民共和国地图上,就可以正确地设置北京时间。不过下面有一个选项"System clock uses UTC"这一项,千万不要选择,不然您的系统时钟就会被设置成格林威治标准时间,这跟我们目前在北京的时间不符合。若是不小心将系统时间设置错了,待完成安装之后,执行/usr/sbin/timeconfig即可重新设置。  
    Stepl3.新增Linux系统用户  
      直接在安装过程中新增系统用户是Red Hat的独特创举,不像以往的任何UNIX系统,安装后系统唯一用户是Super User(root),没有任何一般用户,现在您直接可以在安装系统中设置自己的账号,第一次启动系统不一定非用root登录不可,大幅增加系统安全性。在图账号设置对话框中,最上面的Root Password与Confirm要求您输入一次root密码并再确认一次,所以总共需输入两次root的密码。
    Accountname是用户的登录账号,同样地用户密码必须连输两次,最后的Full name可以是任何字符串,通常是输入用户的姓名或数据。
    对于初次使用Linux或UNIX系统的读者,笔者在此有个建议,root密码的设置千万不要太简单,最忌讳的就是用自己的英文名字、字典常用字、生日、电话号码等当密码,否则很容易被破解。一个好的密码应该同时包含大小写英文字母(不要是自己的名字或字典的字)、数字以及特殊符号,且不要太长而超过8个字符,以方便记忆。例如Yu&%Ko4i就不是一个好拆解的密码,同时包含有大小写、数字与特殊符号,虽然没有秩序可言,但短短8个字符常输就会记得,例如:ABCl23、youngman、123456、root就是非常不好的密码。  
    Step14.密码加密与网络安全认证  
       以往所有用户的数据与密码(加密后)都放在/etc/passwd,但是人人可以读取,所以即便密码稍微加密过,安全性还是非常堪忧,为了增加系统安全性,现在大部分系统都采用Shadow Password,将假密码放在/etc/passwd,真实的用户密码会放在/etc/shadow这个文件,.且只有唯一的super User-root可以观看或编辑这个文件。但是有人觉得这样还是不够安全,所以再采用MD5密码加密技术,将任何长度的密码,编码成256字符长度后,再存放到/etc/shadow中。所以为了增加系统安全性,请务必将Enable MD5 passwords与Enable shadow passwords两个选项选取起来(内定值)。另外还有一个Enable NIS,这就和密码加密不太有关系,NIS是Network Information System的缩写,而NISServer也就是常听的SUN Microsystems公司发明的YP Server,该网络Server主要功能是可以将分散的工作站集中到一台主要的NIs server管理,例如有cc1~ccl0共10台机器,若要让用户使用这10台机器,就必须在每台机器新增这些用户。但是使用了NIS后,假设cc1是NIS server,其他cc2~ccl0都是NIS client,则只需在cc1此台server建立账号或做其他用户设置,则这些用户的基本数据,如username,user grouP,homedirectory,disk quota在这10台都一样,因为所有的数据都记录在NIS server,其他NISclient需要时会自动向server索取,大幅增加账号管理的方便性。但是若您是单机,则不须要启动NIS,所以忽略此选项。另外下面还有两个选项Enable LDAP与Kerberos。LDAP(Lightweight Directory Access Protocol)是一种数据组织汇整系统,可以将您所管理的整个网络系统上的所有用户数据汇整在一起,例如:在一个公司行号内,有20个人在做同一个名为x的project,每一个人做不同的事情,但是information必须互相共享,若Mail Server有通过LDAP机制,则可设置任何一个人收到关于x project的信件,必须自动转信给其他20个人,而这种具备组织结构转信的功能,就是LDAP提供的功能之一。另外LDAP也可以汇整所有用户的姓名、住址、电话、E-mail address等等,使所有网络用户数据统一管理。至于Kerberos是一种网络加密认证系统,它可以将Kerberos client/server之间传送的密码加密,而不至于被监听或截取密码。在此为了简化系统安装步骤,而且一般用户也不需要此两项功能,所以LDAP与Kerberos的设置就不加以介绍,若读者有兴趣,可以参考LDAP Linux HOW-To以及Kerberos 5 Installation Guide,此两份文件可在RedHat安装成功后,在/usr/doc/HOW-TO以及/usr/share/doc目录中找到。  
    Stepl5.选择软件套件  
       Red Hat将其所提供的所有软件分类规划,如图所示。例如您想使用打印机,自然必须选取Printer Support这个套件;想使用X Window System与GNOME,就将两者都选择起来。不过事实上,Red Hat都有预设的内定值,请您不要把内定值的套件移除掉,只要再选取您想要安装的套件即可。例如:KDE不是内定选项,您想要将来的系统可以同时有GNOME与KDE桌面集成环境可供切换,就将KDE也安装起来。若想完整安装Red Hat,只要选择Everything即可,但是完整安装大约需要3.5GB硬盘空间。
    除了选择大项目的分类套件以外,若您想知道这个大项目里面预设安装了哪些软件可以点选Select individual packages,再单击Next就会看到详细的软件列表,如图所示。您可以再自行选择想安装的软件,若是不知道该软件的功用,下面都有网上说明仔细看一下应该可以很容易了解该软件的功用。但是您自己选择软件套件时,可能会发生的就是软件相依性问题,且通常是欠缺安装某些函数库的问题,例如:图所显示的就是选择安装kdetoys这个软件,但是这个软件执行时需要KDE support软件、KDE Library与Qt Library才能正确执  
    行,所以Red Hat的RPM套件管理程序会自动检测出软件间相依性,并要求您必须安装kdesupport、kdelib、qtlx才能安装kdetoys。还有一个您关心的问题可能是,假若有某个套件在安装时没有选到,该怎么办?别担心,待安装好Red Hat之后,执行rpm或  
    是X Windows下的gnorpm,将目录切换到 Red Hat/RPMS就可以再安装这些软件。
    Stepl6.GNOME简短介绍  
       GNOME是强大的制图法-的开动的桌面环境。GNOME包括展示板(开始应用,展览状态),桌面(数据和应用能被放),窗教练复数的(控制你的桌面的外观和感觉)和桌面工具和应用的标准的一套在内。  
       http://www.8bb8.com/photo/setup72/setup20.gif  
     (以下由于害怕文档过大没有在加图片,只要在安装的过程小心或者以默认一般是没问题的)
    Stepl7.KDE的简短介绍  
       KDE是也是个强大的桌面系统,很精美!窗口化的操作方式,操作起来非常容易!  
    Stepl8.软件包依靠  
      为了正确地运行Unresolved Dependencies Many软件包依靠必须被安装在你的系统上的其他的软件包。例如,用图表示的红的帽子系统管理工具的很多需要 python and pythonlib packages。你安装,或者除掉软件包每次弄清你的系统有全部它为了是充分地功能,Red Hat Linux需要依赖检查这些包。  
    Stepl9.X设置工具  
    接着安装程序会进入x Windows System的设置,首先是屏幕规格的选择,如图所示。您可依照自己使用的屏幕品牌,从选项中选出适当的屏幕。若是无法找到您所使用的屏幕,可以选择Generic Monitor自己指定屏幕,并在下方的水平频率以及垂直频率中输入符合屏幕规格的显示频率范围。选定屏幕之后,接着选择您使用的显卡,如图所示。  
    Step20.准备安装  
      注意: 先前分割硬盘的Partition table将在这个画面单击Next之后真正写入硬盘,所以若安装至此您想反悔还来得及。直接重新启动,即可终止安装Red Hat Linux,硬盘的原数据依然还在。  
    Step21.进行软件安装  
      到达这个步骤,安装程序将开始将您先前选择的软件套件复制到硬盘,依照您选择的软件多少,等待时间从10min~30min不等,静心等候吧!如图所示,Total栏中显示总共安装441个软件,约需1018MB的硬盘空间,约要11.49分钟完成安装。而这里要请您特别注意的是,如果您选择Workstation或者是Server安装模式,事实上只需要Red Hat 7.2的第一张光盘即可安装完成。只有在您选择Evrything,要求安装全部的套件时,才会使用到第二张光盘。而另一种使用到第二张光盘的情况为,当您选择升级模式(upgrade)时,通常也会要求您放入第二张光盘,因为Red Hat将一些套件改放到第二张光盘了。所以若您安装成功时,发现系统没有要求放入第二张光盘,请不要惊讶,那是绝对正确的。  
    Step22.制作启动盘  
      先前在设置LILO的地方虽然有选择要制作启动盘,但真正的操作是等所有软件安装完成之后才会进行。现在将3.5寸1.44MB磁盘插入,单击Next就开始制作启动盘.若是突然不想要启动盘了,也可以选择Skip boot disk creation跳过去,将来安成安装之后,也可以执行mkbootdisk制作启动盘。  
    Step23.X设置工具  
      同样地,从选项中挑选出您所使用的显卡厂牌与型号,若是无法从中找到您所使用的显卡,请选择Unlisted Card,并选择该块显卡的内存容量。而该画面下面的几个选项:单击Test this Configuration这个Buttom按钮之后,会测试您选定的屏幕与显卡是否正确,若正确则可显示x画面,不正确则可以单击Back回去重设.  
    Customize X Configuration可让用户指定X Window System的显示分辨率,若不指定则一般内定采用16位高彩@1280xl024当设置值,如果有24位的或更高的,在这个画面上你也可以看到!您可以选择该选项然后单击Next,就会进入分辨率设置画面。Use Graphical  
    Login是指定将来系统安装好之后,登录系统的画面,采用X图形界面,若X环境设置没有问题,请将Use Graphical Login选起来,这样启动以后,看到的就是漂亮的X视窗Red Hat登录画面。最后的skip X Configuration是忽略X Window system设置,右边的GNOME图标代表将来X Window system内定采用的视窗集成环境为GNOME,若您有加装KDE套件,也可以选择KDE当内定的视窗集成环境。一切选定后,您可以再次执行Test this configuration测试将来系统执行X Window system,若觉得没问题,就进行下一安装步骤。若是不满意设置值,也可以在安装好Red Hat后,在Terminal中执行Xconfigurator,或是在X Window System中执行XF86Setup重新设置。若是不幸XFree86不支持您使用的显卡,您仅能使用Text mode安装,则请您在安装完成之后,再尝试执行Xconfigurator设置看看,或是参考第X Window system,里面将会教您如何使用Xf86config设置XWindows或是升级XFree86以支持您的显卡。  
    Step24.大功告成  
       最后一个画面告诉您已经完成Red Hat安装,将重新启动系统,请将软盘与光盘拿出来重启动后,您应该会看到漂亮LILO开启画面。  
    www.linuxsir.cn
     楼主| 发表于 2003-1-12 10:06:39 | 显示全部楼层

    3 RED HAT LINUX8.0官方安装指南

    Red Hat Linux 8.0: 正式版 Red Hat Linux x86 安装指南
    欢迎使用 正式版 Red Hat Linux x86 安装指南。本书所含信息对你安装 Red Hat Linux 会大有帮助。 从安装准备之类的基本概念,到步骤分明的安装过程,本书将会成为你安装 Red Hat Linux的极具价值的参考资料。
    本书将会向你详细介绍一种典型的,使用Red Hat Linux 光盘 的安装方法。安装完毕后,你将会拥有一个功能完全的 Red Hat Linux 桌面系统。
    文档约定
    在你阅读这本手册的时候,你会注意到某些字词使用了 不同的字体、大小和粗细。这种突出显示是有矩可循的; 用同一风格来代表不同字词以表明它们属于同一类型。 用这种方式来代表的各种字词类型包括:  
    command
    Linux 命令(以及其它操作系统的命令,若使用的话) 用这种方式代表。它向你表明你可以在命令行中键入词 或词组然后按 [Enter] 键来启用命令。有时, 命令中会包括应用另一种方式显示的词(例如文件名),在 这种情况下,它们被视为命令的一部分,因而整个词组都会 被显示为命令。例如:  
    使用 cat testfile 命令来查看当前工作 目录中一个叫做 testfile 的文件。  
    filename
    文件名、目录名、路径、以及 RPM 软件包名用这种 方式代表。它表明在你的 Red Hat Linux 系统上存在着一个叫这个 名称的文件或目录。例如:  
    你的主目录中的 .bashrc 文件包括 你自用的 bash shell 定义和别名。  
    /etc/fstab 文件包括关于不同系统设备和文件 系统的信息。  
    如果你想使用一个万维网服务器日志文件分析程序的话,安装 webalizer RPM。  
    application
    这种方式向你表明该程序是一个终端用户的应用程序(与系统软件相对)。例如:  
    使用 Mozilla 来浏览万维网。  
    [key]
    键盘上的键用这种方式代表。例如:  
    要使用 [Tab] 键补全,键入一个字符然后按 [Tab] 键。你的终端机上就会显示目录中起首为 那个字符的文件列表。  
    [key]-[combination]
    一个击键的组合用这种方式代表。例如:  
    [Ctrl]-[Alt]-[Backspace] 击键组合会退出 你的图形会话,把你返回到图形登录屏幕或控制台。  
    「GUI 界面上的文本」
    在 GUI 界面屏幕或窗口中发现的标题、词汇、或 词组会用这种方式显示。它用来标明某个 GUI 屏幕或 GUI 屏幕上的某个元素(譬如与复选箱或字段相关的文本)。例如:  
    如果你想要在你的屏幕保护程序停止前要求口令的话, 选择 「需要口令」 复选箱。  
    「GUI 屏幕或窗口上的最上级菜单」
    用这种方式表示的词汇表明它位于一个下拉菜单 的最上级。如果你在 GUI 屏幕上点击了这个词,应出现 菜单的其它部分。例如:  
    在 GNOME 终端的「文件」下,你会看到 「新标签」选项,它允许你在同一窗口中打开多个 shell 提示。  
    如果你需要在 GUI 菜单上点击一系列命令的话,它们 会如下面的例子中所示:  
    点击「主菜单按钮」(在面板上)=> 「编程」 => 「Emacs」 来启动 Emacs 文本编辑器。  
    「GUI 屏幕或窗口中的按钮」
    这种方式表明它是 GUI 屏幕上可点击的按钮。例如:  
    点击 「后退」 按钮来返回到你刚才查看的网页。  
    computer output
    这类方式的文本表明它是计算机在命令行 中显示的输出。你键入命令的反应、 错误讯息、以及程序或脚本中向你要求输入的互 动式提示,都是用这种格式来代表的。例如:  
    使用 ls 命令来显示某目录的内容:  
    $ ls
    Desktop                axhome           logs          paulwesterberg.png
    Mail                   backupfiles      mail          reports
    命令返回的输出(在上面的例子中,是目录的内容) 用这种方式来显示。  
    prompt
    提示是计算机在向你表明它在等待你的输入。它会 用这种方式来显示。例如:  
    $  
    #  
    [stephen@maturin stephen]$  
    leopard login:  
    user input
    用户键入的文本。无论是在命令行中还是在 GUI 屏幕上的文本箱内的输入都会用这种方式来显示。在下面 的例子中,text 用这种方式显示:  
    要把你的系统引导入基于文本的安装程序,你需要在 boot: 提示下键入 text 命令。  
    除此之外,我们还使用几种不同的方式来强调某些信息。 按照信息对你的系统的重要程度,它们被标为注记、窍门、 重要、小心、或警告。例如:  
    注记
    请记住,Linux 区分大小写。换一句话说,rose 不是 ROSE 或 rOsE。  
    窍门
    目录 /usr/share/doc 包括了关于你的系统上安装 的软件包的附加信息。  
    重要
    如果你修改了 DHCP 配置文件,这些改变在你重启 DHCP 守护进程之后才会生效。  
    小心
    不要以根用户身份来执行日常任务 - 使用一个常规的用户 帐号,除非你需要使用根帐号来做系统管理任务。  
    警告
    如果你选择要不进行手工分区,服务器安装会删除所有安装了的 硬盘驱动器上的现存分区。除非你确信你没有需要保留的数据, 请不要选择这种安装类型。  
    如何使用本书
    本书是寻求简便快捷安装方法的新老用户们的理想选择。 它将会帮助你做好安装前的系统准备,并引导你通过 Red Hat Linux 的整个安装过程。
    注记
    如果你目前使用的是 Red Hat Linux 6.2 版本(或更新),你可以执行升级安装。 大致浏览 第1章 来重温基本知识,然后仔细阅读 第3章 。读时遵循指点。一旦你已决定要在安装中升级, 请参阅 附录 A。  
    如果你是一位想要执行 Red Hat Linux 光盘安装的有经验的用户, 并且你不需要温习基本知识,你可以跳到 第3章 来开始安装进程。
    窍门
    关于安装前、安装中、以及安装后可能遇到的常见问题和解答, 请参考 「Red Hat Frequently Asked Questions」。 你可以从以下网页中查到:
    http://www.redhat.com/support/docs/faqs/rhl_general_faq/
    我们需要用户的反馈!
    如果你在 《正式版 Red Hat Linux x86 安装指南》 中 发现错别字,或者有改进本书的建议,我们极想收到你的来函! 请向以下网址提交有关 《rhl-ig-x86》 的报告。Bugzilla 的网址是:
    http://bugzilla.redhat.com/bugzilla/
    当你提交错误报告时,请明确指定本书的标记:
    rhl-ig-x86(ZH-CN)-8.0-HTML-RHI (2002-07-24T12:04-0400)
    如果你有改进本书的建议,请尽可能详细地阐明。如果你发现了错别字, 请包括所在章节及段落,所有我们可以轻易地查找到。
    如果你有支持方面的疑问(譬如:如果你需要有关配置 X 的帮助, 或者你不能肯定应如何给硬盘分区),请在下面的网页中注册你的产品以获得在线支持:
    http://www.redhat.com/apps/activate/


    1. 安装前的准备工作



    注记


      

    虽然这本指南尽可能地反映了当前最新信息, 你应该阅读 Red Hat Linux 发行注记来获得在我们的文档定版之前还来不及包括的信息。 发行注记可以在 Red Hat Linux 的第一张光盘上找到, 也可以从以下网址中阅读:


    http://www.redhat.com/docs/manuals/linux



    你有正确的组件吗?


    如果你已购买了 正式版 Red Hat Linux 盒装产品,你便可以开始准备安装。可是,错误有时会难免发生,所以现在是个再次检查你的产品内容的好机会。


    你的产品中包括了黑色、白色和红色的注册信息卡。在黑色的卡片上是你的盒装版本的内容列表。 请把列表阅读一遍以确定所有的光盘和说明手册都包括在你购买的 Red Hat Linux 版本中。


    如果你已从Red Hat, Inc. (或其它发行商)处购买了正式版 Red Hat Linux 盒装产品 ,但是你缺少列表中的一个或几个项目,请通知我们。 联系信息位于 注册信息卡上。


    如何识别我们的正式版盒装产品:我们产品包装盒底部, 在条形码旁边有一个 ISBN 号码。这个 ISBN 号码的格式应该是:


    1-58569-x-y


    (x 和 y 是不重复的数字。)


    Red Hat 与其它公司(国际的和国内的)合作,因此我们能够用最方便的方式向你提供 Red Hat Linux 。 由于这种合作关系,你可能会注意到你的 Red Hat Linux 产品可能不是由 Red Hat 直接生产的。


    如果你的产品有一个不同的 ISBN 号码(或根本没有), 你应该联系生产它的公司。通常,第三方生产厂家会把他们的徽标和(或)联系信息包括在他们的包装盒外部; 正式版 Red Hat Linux 盒装产品只列出了我们的名称和联系信息。


    找到其它指南手册的地方


    如果你的产品没有包括全部印刷的 Red Hat Linux 指南手册,你可以在网上找到它们, 或者在包括在你的正式版Red Hat Linux 产品中的 Red Hat Linux 文档光盘里找到。


    要在网上找到 HTML 和 PDF 格式的指南手册,请到:


    http://www.redhat.com/docs


    注册你的产品


    如果你购买了正式版 Red Hat Linux 盒装产品,你应该注册你的产品。注册提供了许多有用的服务,例如安装支持、到 Red Hat 网络的访问权等等。 要注册你的产品,请到:


    http://www.redhat.com/apps/activate/


    你将会在你的正式版 Red Hat Linux 盒装产品内的注册信息卡上发现产品 ID 。 一旦注册了,你就会有权访问所有 Red Hat 为注册的用户提供的附加服务。


    关于注册的详情以及 Red Hat 提供的技术支持范围,请参阅 附录 C。


    没有盒装产品?没问题!


    当然,并不是每个人都购买了 Red Hat Linux 盒装产品。使用另一个公司制作的光盘, 或通过 FTP 来安装 Red Hat Linux 是完全可能的。在这些情况下,你可能需要创建一个或多个磁盘才能开始。


    关于下载和安装 Red Hat Linux 的详情,请参阅:


    http://www.redhat.com/download/howto_download.html


    对于那些从非 Red Hat 光盘中安装 Red Hat Linux 的用户来说, 你可能需要一张引导磁盘(也称引导盘), 或者 PCMCIA 引导盘,如果你安装中使用 PCMCIA 设备(如便携电脑)的话。你还能够直接从光盘中安装。 在我们概述各类安装方法时会对此详加讨论。要获得制作磁盘的信息, 请参阅 制作安装磁盘。

    你的硬件兼容吗?


    如果你有一个老式的系统,或者你的系统是自装的,硬件兼容性在这些情况下就显得特别重要。 Red Hat Linux 8.0 应该与在最近两年内厂家制作的系统内的多数硬件兼容。然而, 硬件的技术规范几乎每天都在改变,因此我们很难保证你的硬件会百分之百地兼容。


    最新的硬件支持列表可在以下网址中查到:


    http://hardware.redhat.com/hcl/

    你有足够的磁盘空间吗?


    几乎每一个现代操作系统 (OS) 都使用 磁盘分区(disk partitions), Red Hat Linux 也不例外。当你安装 Red Hat Linux 时,你可能也得使用磁盘分区。 如果你从前没有接触过磁盘分区(或者需要温习一下基本概念),在继续前请阅读 附录 E 。


    如果 Red Hat Linux 将会与另一个 OS 共享你的系统,你将会需要确定在这次安装中,你的硬盘驱动器上有足够的可的磁盘空间。 关于创建双引导系统的说明,请参阅 附录 G。


    被 Red Hat Linux使用的磁盘空间必须与被在你的系统上可能安装的其它 OS 所用的磁盘空间分离,如 Windows、OS/2、甚至于不同版本的 Linux。 至少两个分区(/ 和 交换区)必须要划分给 Red Hat Linux。  


    在你开始安装进程之前,必须要满足以下条件之一:



    你的计算机必须有足够的 未分区[1] 的磁盘空间来安装 Red Hat Linux。


    你必须有一个或多个可以删除的分区,因此能够空出足够的空间来安装 Red Hat Linux。


    安装对磁盘空间的需求



    注记


      

    这些推荐是基于只安装一种语言(如英语)的假定上的。 如果你计划安装多种语言以在系统中使用,你应该增加磁盘空间需求。



    个人桌面

    个人桌面安装,包括图形化桌面环境,至少需要 1.5 GB 空闲空间。 若兼选 GNOME 和 KDE 桌面环境,则至少需要 1.8 GB 的空闲空间。  

    工作站

    工作站安装,包括图形化桌面环境和软件开发工具,至少需要 2.0 GB 空闲空间。兼选 GNOME 和 KDE 桌面环境至少需要 2.3 GB 空闲空间。  

    服务器

    最基本的没有 X(图形化环境)的服务器安装需要 1.3 GB 空闲空间; 若要安装除 X 以外的所有软件包组,需要 1.4 GB 空闲空间; 若要安装包括 GNOME 和 KDE 桌面环境的所有软件包,至少需要 2.1 GB 空闲空间。  

    定制

    基本的定制安装需要 400 MB , 如果选择了每一个软件包,则至少需要 4.5 GB 空闲空间。


    如果不能肯定你是否满足了这些条件,或者想了解该如何为你的 Red Hat Linux 安装创建空闲空间,请参阅 附录 E。





    [1]

    未分区的磁盘空间意味着在你要安装的硬盘驱动器上 的可用磁盘空间还没有为数据而划分成块。当你为一个磁盘分区时,每个分区都如同一个独立的磁盘驱动器。

    你能用光盘安装吗?


    可以用来安装 Red Hat Linux 的方法有好几种。


    从光盘中安装要求你已购买了 Red Hat Linux 8.0 盒装产品,或者你拥有 Red Hat Linux 光盘, 以及光盘驱动器。多数新计算机会允许你从光盘引导。 如果你的系统支持从光盘引导,这种启动本地光盘安装方法将非常简便。


    你可能需要改变你的 BIOS 来允许从光盘驱动器引导。 关于编辑 BIOS 的详情,请参阅 引导安装程序 在 第3章 。


    其它引导方法


    如果你无法从光盘驱动器中引导, 也可以使用 下列其它的引导方法:


    本地引导盘

    如果你需要一个本地引导盘(local boot diskette)[1],你必须制作它。本地引导盘 的映像文件,boot.img,位于你的 Red Hat Linux 光盘中 images 目录下。关于制作引导盘的信息,请参阅 制作安装磁盘。

    PCMCIA 引导盘

    如果你安装 Red Hat Linux 使用的是一个 PCMCIA 设备,你可能会 需要 PCMCIA 引导盘(PCMCIA boot diskettes)。 如果你需要 PCMCIA 引导盘,你必须制作它们。关于这方面的说明,请参阅 制作安装磁盘。  


    下列检查表能够帮助你决定你是否需要制作 PCMCIA 引导盘:  



    你将从一个光盘中安装 Red Hat Linux ,而且你的光盘驱动器是通过 一张 PCMCIA 卡与你的计算机相连的。


    你在安装中将会使用一个 PCMCIA 网络适配器。


    PCMCIA 引导盘映像文件, pcmcia.img 和 pcmciadd.img,位于你的 Red Hat Linux/x86光盘 中的 images 目录下。关于制作引导盘的信息,请参阅 制作安装磁盘 。  



    注记


      

    「USB 磁盘驱动器」 - 你还可以 使用 USB 磁盘驱动器中的引导盘来引导 Red Hat Linux 安装程序(如果你的系统支持从 USB 磁盘驱动器中引导的话)。




    注记


      

    虽然它并不是引导安装所必需的,偶尔,你可能会发现要继续安装可能需要一张驱动程序盘。 附录 F 解释了为什么驱动程序盘可能会是安装必须的,以及如果需要该如何获取。  



    制作安装磁盘


    如果你需要从 映像文件(image file) 中制作一张磁盘, 你可能需要使用从下列 Red Hat Linux 勘误网页中获取的更新了的磁盘映像:


    http://www.redhat.com/apps/support/errata/


    映像文件含有对磁盘内容的精确复制(或映像)。由于磁盘包括了文件数据之外的文件系统信息, 映像文件的内容在写入磁盘之前不能被使用。


    要开始制作,你需要一个空白的、格式化的、高密度(1.44MB)的 3.5 英寸磁盘。 你还需要访问带有一个 3.5 英寸磁盘驱动器的计算机。 这个计算机必须能够运行 MS-DOS 程序或者在多数与 Linux 相仿的操作系统中可以找到的 dd 工具。


    你的 Red Hat Linux 光盘里的 images 目录中含有 Red Hat Linux/x86 的引导映像。当你选定了恰当的映像(如 boot.img 用于基于光盘的安装,或 bootnet.img 用于网络安装),用以下的方法之一把映像文件传输到一张磁盘上。  


    使用 rawrite 工具


    要在 MS-DOS 里制作磁盘,使用包括在 Red Hat Linux 光盘里 dosutils 目录中的 rawrite 工具。首先,给一个空白的、格式化的、 3.5 英寸的磁盘注以恰当的标签(如"引导盘"或"更新盘");将它插入到磁盘驱动器中;然后,使用下列命令 (假定你的光盘驱动器的盘符是 d:):  


    C:\> d:
    D:\> cd \dosutils
    D:\dosutils> rawrite
    Enter disk image source file name: ..\images\boot.img
    Enter target diskette drive: a:
    Please insert a formatted diskette into drive A: and
    press --ENTER-- : [Enter]
    D:\dosutils>


    首先, rawrite 会向你询问磁盘映像的文件名; 输入你要写入的映像目录和名称(例如,..\images\boot.img)。 然后,rawrite 会向你询问要写入映像的磁盘驱动器的盘符, 输入 a:。最后, rawrite 会请你确认在你选定的驱动器内已插入格式化的磁盘。 在按 [Enter] 键确认后, rawrite 就会把映像文件复制到磁盘中去。 如果你要制作另一个磁盘,给磁盘标签,然后运行 rawrite ,指定恰当的映像文件。



    注记


      

    rawrite 工具只接受 8.3 类型的文件名,如 filename.img[2]。如果你从 http://www.redhat.com 下载的映像文件,其名称类似于 update-anaconda-03292002.img,你必须在运行 rawrite 之前把它更名为 updates.img。



    使用 dd 命令


    要在 Linux(或任何其它与 Linux 相仿的操作系统)下制作磁盘, 你必须有到 3.5 英寸磁盘驱动器设备 (在 Linux 中是 /dev/fd0 )的写权限。


    首先,给一张空白的、格式化的、3.5 英寸的磁盘恰当地注以标签(如"引导盘"或"更新盘")。 把它插入到磁盘驱动器中(但是不要使用 mount [3]命令)。 在挂载 Red Hat Linux 光盘之后,转到含有所需映像文件的目录,然后使用下列 命令(请适当地改变映像文件和磁盘设备的名称):


    # dd if=boot.img of=/dev/fd0 bs=1440k


    要制作另一张磁盘,给那个磁盘注以标签,然后再运行 dd , 指定恰当的映像文件。





    [1]

    引导盘是你创建的用来引导(或启动)安装程序的磁盘, 它还可以是你在安装过程中创建的可用在今后引导操作系统的磁盘。 你的计算机通常从硬盘中引导,但是如果硬盘被损坏,你可以从一个 可引导的磁盘中引导计算机。



    [2]

    8.3 格式文件名 的命名约定是:八个字符,加一点,再加三个字符的文件扩展名。 这种命名约定支持一到八个字符长的文件名,其中不能包括空格,文件名不能 以 「?」 或 「_」 字符开头。



    [3]

    当你挂载一个软盘或光盘时, 这些设备上的内容就可被你利用。详情参阅 《正式版 Red Hat Linux 入门指南》 。

    哪种安装类型最适合于你?


    通常,Red Hat Linux 安装在它自己的磁盘分区或者另一个 Linux 安装之上。



    警告


      

    在另一个 Linux(包括 Red Hat Linux)安装之上安装 Red Hat Linux 不会 保留任何前次安装中的信息(文件或数据)。请确定把重要的文件存盘!要保留现存系统上的当前数据, 你应该备份数据 并(或)考虑执行升级。



    我们提供了下列安装类型:  


    个人桌面

    如果你是 Linux 世界的新手,并想尝试使用这个系统, 个人桌面安装是你最恰当的选择。该类安装会为你的家用、 便携电脑,或桌面使用创建一种带有图形化环境的系统。  

    工作站

    如果除了图形化桌面环境外,你还需要软件开发工具, 工作站安装类型是你最恰当的选择。  

    服务器

    如果你希望你的系统具有基于 Linux 服务器的功能,并且不想对系统配置做过多的定制工作, 服务器安装是最恰当的选择。

    定制

    定制安装在安装中给予你最大的灵活性。你可以选择你的引导装载程序,想要的软件包等等。 对于那些熟悉 Red Hat Linux 安装的用户以及那些恐怕失去完全灵活性的用户而言,定制安装是最恰当的选择。

    升级

    如果你的系统上已经在运行 Red Hat Linux 版本 (6.2 或更高) , 并且你想快速地更新到最新的软件包和内核版本,那么升级安装是你最恰当的选择。  


    这些安装类型使你可以选择简化的安装进程(可能会失去配置灵活性), 或者选择保留灵活性的稍微复杂些的安装进程。 接下来,让我们来详细看一看每一种类型,从而帮助你判定哪一种类型最适用于你。


    个人桌面安装


    个人桌面安装最适用于新用户。它会安装一种图形化 桌面环境(X 窗口系统),并为家庭和桌面使用创建一种理想的系统。  


    下面是为只安装一种语言(如英语)的个人桌面安装所推荐的磁盘空间需求的最小值。  



    个人桌面:1.5 GB  


    兼选 GNOME 和 KDE 的个人桌面:1.8 GB


    如果你计划选择所有软件包组(例如,办公/生产率应用程序是一个软件包组), 并且还选择了额外的单个软件包,你可能至少需要 4 GB 磁盘空间。  


    个人桌面安装将会做什么


    如果你选择了自动分区,个人桌面安装会创建下列分区:  



    交换分区的大小取决于你的系统内存和硬盘驱动器上的可用空间的数量。 例如,如果你有 128 MB 内存,那么创建的交换区可以是 128 MB - 256 MB(你的内存的两倍),依据你的可用磁盘空间数量而定。


    大小为 100 MB,挂载为 /boot 的分区,其中驻留着 Linux 内核和相关的文件。  


    挂载为 / 的根分区,其中贮存着所有其它文件(分区的确切大小要依你的可用磁盘空间而定)。


    工作站安装


    工作站安装会安装一个图形化桌面环境和 X 窗口系统,以及软件开发工具。  


    下面是为只安装一种语言(如英语)的工作站安装所推荐的磁盘空间需求的最小值。



    工作站:2.0 GB  


    兼选 GNOME 和 KDE 的工作站:2.3 GB


    如果你计划选择所有软件包组(例如,办公/生产率应用程序是一个软件包组), 并且还选择了额外的单个软件包,你可能至少需要 4 GB 磁盘空间。如果你 提供了多余的空间,你就可以在需要的时候安装额外的数据了。  


    工作站安装将会做什么


    如果你选择自动分区,工作站安装会创建下列分区:



    交换分区的大小取决于你的系统内存和硬盘驱动器上的可用空间的数量。 例如,如果你有 128 MB 内存,那么创建的交换区可以是 128 MB - 256 MB(你的内存的两倍),依据你的可用磁盘空间数量而定。


    大小为 100 MB,挂载为 /boot 的分区,其中驻留着 Linux 内核和相关的文件。  


    挂载为 / 的根分区, 其中贮存着所有其它文件(分区的确切大小要依你的可用磁盘空间而定)。


    服务器安装


    如果你希望你的系统具有基于 Linux 的服务器功能,并且不想对系统配置做过多的定制工作, 服务器安装是最恰当的选择。


    下面是为只安装一种语言(如英语)的服务器安装所推荐的磁盘空间需求的最小值。



    服务器(至少,无图形化界面):1.3 GB


    服务器(全部选择,无图形化界面):1.4 GB


    服务器(全部选择,包括图形化界面):2.1 GB


    如果你计划选择所有软件包组,并且还选择了额外的单个软件包,你可能至少需要 2.3 GB 磁盘空间。


    在服务器安装中,除非你在软件包选择过程中安装适当的软件包,当系统引导时, X 窗口系统不会被配置,因而不会载入 GUI。


    服务器安装将会做什么



    交换分区的大小取决于你的系统内存和硬盘驱动器上的可用空间的数量。 例如,如果你有 128 MB 内存,那么创建的交换区可以是 128 MB - 256 MB(你的内存的两倍), 依据你的可用磁盘空间数量而定。


    一个大小为 384 MB,挂载为 / 的根分区。


    一个挂载为 /usr 的分区(该分区的确切大小要依你的可用磁盘空间而定)。


    一个挂载为 /home 的分区(该分区的确切大小要依你的可用磁盘空间而定)。


    一个大小为 256 MB,挂载为 /var 的分区。


    大小为 100 MB,挂载为 /boot 的分区,其中驻留着 Linux 内核和相关的文件。


    这种磁盘分区方案为多数服务器的工作造就了比较合理灵活的系统配置。


    定制安装


    定制安装在安装中给予你最大的灵活性。 工作站和服务器安装自动为你完成安装进程,省略了某些步骤。 在定制安装中,你会对将要在你的系统上安装的软件包有完全的控制。


    为定制安装推荐的磁盘空间需求如下所示:



    定制(至少):400 MB  


    定制(全部选择):4.5 GB  


    定制安装将会做什么


    你可能会从名称中猜想到,定制安装的重点在于灵活性。你对于要在你的系统上安装的软件包有完全的控制。


    如果你选择了自动分区,一个定制的安装会创建下列分区:



    交换分区的大小取决于你的系统内存和硬盘驱动器上的可用空间的数量。 例如,如果你有 128 MB 内存,那么创建的交换区可以是 128 MB - 256 MB(你的内存的两倍),依据你的可用磁盘空间数量而定。


    大小为 100 MB,挂载为 /boot 的分区,其中驻留着 Linux 内核和相关的文件。  


    挂载为 / 的根分区, 其中贮存着所有其它文件(分区的确切大小要依你的可用磁盘空间而定)。


    给你的系统升级


    升级 Red Hat Linux 6.2 (或更高) 将不会删除任何现存数据。 安装程序会更新内核模块以及所有目前已安装的软件包。关于这方面的指示, 请参阅 第3章 和 附录 A 。  

    2. 系统需求表中的硬件信息


    本章向你提供一些如何了解你的硬件的具体指导,以及一个 可以帮助你保存当前系统设置与需求记录的系统需求表。  


    用 Windows 来帮助你了解你的硬件


    如果你的计算机已经在运行 Windows 9x 操作系统,你可以用以下步骤来获取额外的配置信息:




    图 2-1. Windows 9x 系统属性



    在 Windows 中,用第二个(通常是右边的)鼠标按钮 点击「我的电脑」图标,一个菜单就 会弹出。  


    选择「属性」, 「系统 属性」窗口就会出现。请注意在 「电脑」下列出的信息 - 特别是列出的内存数量。  


    点击「设备管理器」 标签。你就会看到一个 你的电脑的硬件配置的图形化表示。 请确定被选的是「按类型查看设备」 单选按钮。  


    到了这一地步,你既可以双击图标,也可以单击加号 「+」 来详细查看每一项目。详情请在以下图标下查找:




    图 2-2. Windows 9x 系统属性



    「磁盘驱动器」 - 在这里可以找到硬盘驱动器的类型(IDE 或 SCSI)。(IDE 驱动器通常会包括"IDE"这个词,而 SCSI 驱动器则没有。)  


    「硬盘控制器」 - 有关你的硬盘控制器的信息。  


    「CDROM」 - 关于连接在 你的电脑上的光盘驱动器的信息。  



    注记


      

    在某些情况下,可能会没有光盘图标, 而你的电脑仍有一个有功能的光盘驱动器。这属于正常, 这要依 Windows 最初是如何被安装的而定。在这种情况下, 你可能会通过查看在你的电脑中载入的config.sys 文件 来获得更多信息。  



    「鼠标」 - 在你的电脑中使用的 鼠标类型。  


    「显示适配器」 - 如果你 对运行 X 窗口系统有兴趣,你应该把在这里找到的 信息笔录下来。  


    「声音、视频和游戏控制器」 - 如果你的电脑有声音功能,你可以在这里了解 有关它的详情。  


    「网络适配器」 - 关于你的 电脑网卡的信息(如果你有的话)。  


    「SCSI 控制器」 - 如果你的 电脑使用 SCSI 外设,你将会在这里发现有关 SCSI 控制器的确切信息。  


    这种办法并不能完全替代你打开电脑外壳来亲身 检察每一组件。然而,在很多情况下,它可以为你提供 足够的信息以便继续安装。  



    注记


      

    这一信息还可以通过点击 「打印」按钮而打印出来。第二个窗口 会出现,允许你选择一部打印机,以及报告类型。 「全部设备与系统摘要」 报告类型最为完整。  



    如果你的计算机运行的是 Windows 2000,你可以使用以下步骤来 获得额外的配置信息:




    图 2-3. Windows 2000 系统特性



    在 Windows 中,用第二个(通常是右边的)鼠标按钮 点击 "我的电脑" 图标,一个菜单就 会弹出。  


    选择 「特性」, 「系统 特性」 窗口就会出现。请注意在 「电脑」下列出的信息 - 特别是列出的内存数量。  


    点击 「硬件」 标签。你就会 看到你的计算机的硬件配置选项。  




    图 2-4. Windows 2000 系统特性 - 硬件


    点击 「设备管理器」按钮。你就会看到一个 你的电脑的硬件配置的图形化表示。 请确定被选的是 「按类型查看设备」 单选按钮。  


    到了这一地步,你既可以双击图标,也可以单击加号 「+」 来详细查看每一项目。详情请在下图查找:




    图 2-5. Windows 2000 设备管理器



    「磁盘驱动器」 - 在这里可以找到硬盘驱动器的类型(IDE 或 SCSI)。(IDE 驱动器通常会包括"IDE"这个词,而 SCSI 驱动器则没有。)  


    「IDE ATA/ATAPI 控制器」 - 有关你的硬盘控制器的信息。  


    「DVD/CD-ROM」 - 关于连接在 你的电脑上的光盘驱动器的信息。  


    「鼠标和其它指针设备」 - 在你的电脑中使用的 鼠标类型。  


    「显示卡」 - 如果你 对运行 X 窗口系统有兴趣,你应该把在这里找到的 信息笔录下来。  


    「声音、视频和游戏控制器」 - 如果你的电脑有声音功能,你可以在这里了解 有关它的详情。  


    「网卡」 - 关于你的 电脑网卡的信息(如果你有的话)。  


    「SCSI 和 RAID 控制器」 - 如果你的 电脑使用 SCSI 外设,你将会在这里发现有关 SCSI 控制器的确切信息。  


    这个办法并不能完全替代你打开电脑外壳来亲身检察每一组件。 然而,在很多情况下,它可以为你提供足够的信息以便继续安装

    记录你的系统硬件


    在所提供的表格中输入有关你的系统的信息,这可以给你一个方便的参照,并帮助你更顺利地通过 Red Hat Linux 安装进程。


    表格 2-1. 系统需求表


    硬盘驱动器:类型、标签、大小;如: IDE hda=1.2 GB  
      


    分区:分区图及挂载点;如: /dev/hda1=/home, /dev/hda2=/ (一旦你知道它们驻留的地方, 填充此项)  
      


    内存:在你系统上安装的内存数量;如: 64 MB, 128 MB  
      


    光盘:接口类型;如:SCSI、IDE (ATAPI)  
      


    SCSI 适配器:若有,制造商及 型号;如:BusLogic SCSI Adapter,Adaptec 2940UW  
      


    网卡:若有,制造商及 型号;如:Tulip,3COM 3C590  
      


    鼠标:类型、协议、及键数; 如:通用 3 键 PS/2 鼠标,MouseMan 2 键串口鼠标  
      


    显示器:制造商、型号、及厂商特有值; 如:Optiquest Q53,ViewSonic G773  
      


    视频卡:商标、型号及 VRAM 的大小;如:Creative Labs Graphics Blaster 3D,8MB  
      


    声卡:商标、芯片集和型号; 如:S3 SonicVibes,Sound Blaster 32/64 AWE  
      


    IP、DHCP、和 BOOTP 地址:四个数字, 用点分隔开;如: 10.0.2.15  
      


    子网掩码:四个数字,用点分隔开; 如:255.255.248.0  
      


    网关 IP 地址:四个数字, 用点分隔开;如:10.0.2.245  
      


    一个或多个服务器 IP 地址 (DNS):一组或多组用点隔开的数字;如: 10.0.2.1  
      


    域名:定给你的机构的名称; 如:Red Hat 的域名将会是 redhat.com  
      


    主机名:你的计算机的名称; 你的个人选择;如: cookie, southpark  
      


    如果你对这些网络需求或术语不熟悉,请向你的网络管理员寻求帮助。

    3. 安装 Red Hat Linux


    本章解释了如何从光盘中安装 Red Hat Linux 。 所讨论的课题如下:



    逐渐熟悉安装程序的用户界面


    启动安装程序


    选择安装方法


    安装中的配置步骤(语言、键盘、鼠标、等等)


    结束安装



    注记


      

    如果你已安装了其它操作系统,并想创建一个双引导系统以便兼用 Red Hat Linux 和另外的操作系统,请阅读 附录 G 以获详情。  



    图形化安装程序用户界面


    如果你从前使用过 图形化用户界面(graphical user interface) (GUI), 你对这一进程会比较熟悉;你只需使用鼠标在屏幕间翻阅, "点击"按钮,或者输入文字字段。 你还可以使用 [Tab] 和 [Enter] 键在安装中浏览各屏幕。



    注记


      

    如果不想使用 GUI 安装程序,你可以使用文本模式的安装程序。 要开始文本模式安装程序,使用下列引导命令:


    boot: text


    关于文本模式安装步骤的简单描述,请参阅 文本模式安装程序用户界面。



    关于虚拟控制台的注记


    Red Hat Linux 安装程序不仅仅提供了安装进程的对话框。 除了提供从 shell 提示下输入命令的方法外,它还包括好几种不同类型的诊断迅息,安装程序在五个 虚拟控制台(virtual console) 中显示这些迅息,你可以用一个组合键在其间切换。


    这些虚拟控制台在你安装 Red Hat Linux 中遇到问题时会对你很有帮助。 安装中在系统控制台上显示的迅息可以帮助你准确地找到问题的症结所在。 关于虚拟控制台的列表,所用的切换击键组合,以及它们显示的内容,请参阅 表格 3-1 。


    一般来说,除非你试图诊断安装问题,你没有理由离开默认的控制台(第七号虚拟控制台)。


       


    表格 3-1. 控制台,击键,和内容


    控制台
    击键
    内容


    1
    [Ctrl]-[Alt]-[F1]
    安装对话框


    2
    [Ctrl]-[Alt]-[F2]
    shell 提示


    3
    [Ctrl]-[Alt]-[F3]
    安装日志(安装程序的讯息)


    4
    [Ctrl]-[Alt]-[F4]
    与系统相关的讯息


    5
    [Ctrl]-[Alt]-[F5]
    其它讯息


    7
    [Ctrl]-[Alt]-[F7]
    X 图形化显示

    文本模式安装程序用户界面


    Red Hat Linux 文本模式安装程序使用一个基于屏幕的界面,它包括多数通常在图形化用户界面中能够看到的屏幕"构件"。图 3-1 和 图 3-2 显示了你将会看到的屏幕。




    图 3-1. 在「引导装载程序配置 」中所见的安装程序构件




    图 3-2. 在 Disk Druid 中所见的安装程序构件


    下面是一列在图 3-1 和 图 3-2 中显示的最重要的构件:



    窗口 - 窗口(在本指南中它通常被称为 对话框 (dialogs))会在整个安装进程中 出现在你的屏幕上。有时,一个窗口会重复堆积在另一个窗口之上; 在这种情况下,你只能与最上面的窗口交流。当该窗口使用完毕, 它就会消失,允许你继续使用下面的窗口。


    复选箱 - 复选箱允许你选择或取消选择某项功能。箱内或者显示一个星号(已选)或者是一个空格(未选)。 当光标位于复选箱内,按 [Space] 键来选择一个未选的功能或取消一个已选的功能。


    文本输入行 - 文本输入行是你可以输入安装程序所要求信息的区域。 当光标停在文本输入行时,你可以在那一行中输入并(或)编辑信息。


    文本构件 - 文本构件是屏幕上用于显示文本的区域。 有时,文本构件可能还会含有其它构件,如复选箱。如果文本构件所含的信息超出为它保留的空间所能显示的, 一个滚动条就会出现;如果你将光标定位于文本构件之内,你可以使用 [Up] 和 [Down] 箭头键来在所有信息中上下滚动。 你在滚动条上的当前位置被显示为一个 # 字符,它会在你拖拉滚动条时移上移下。


    滚动条 - 滚动条出现在窗口的侧面或底部,它用来控制窗框内显示的文档或列表部分。 滚动条使查看文件的任意部分变得简单易行。


    按钮构件 - 按钮构件是与安装程序交流的主要方法。 通过 [Tab] 键和 [Enter] 键使用这些按钮,你可在安装程序的屏幕中逐步推进。 当按钮被突出显示时,它们可以被选择。


    光标 - 光标虽然不是一个构件,但它被用来选择(并联络)某个构件。 当光标从一个构件移至另一个构件后,它可能会导致构件改变颜色, 或者你可能只会看到光标本身定位在构件内或构件旁。 在 图 3-1 中,光标定位在 「确定」 按钮上。图 3-2 显示了光标定位在 「编辑」 按钮上。


    使用键盘来翻阅


    在安装对话框之间的切换是通过一组简单的击键来达到的。 要移动光标,使用
    、[Up]、 和 [Down] 箭头键。使用 [Tab]、和 [Alt]-[Tab] 键来在屏幕上的每个构件间向前或向后循环。 在底部,多数屏幕显示了一个可用光标定位键的摘要。


    要"按"一个按钮,将光标定位在按钮之上(例如,使用 [Tab] 键),然后按 [Space] 或 [Enter] 键。 要从一列项目中选择一项,将光标移至你要选择的项目然后按 [Enter] 键。要选择一个带复选箱的项目,将光标移至复选箱内然后按 [Space] 键来选择这个项目。 要取消选择,再按一次 [Space] 键。


    按 [F12] 来接受当前值,并继续到下一个 对话框;这相当于按「确定」 按钮。
    小心


    除非一个对话框在等待你的输入,在安装进程中不要随意按键(这么做可能会导致无法预料的行为)。



    显示在线帮助


    当安装程序被载入内存,你可以通过按 [F1] 到 [F6] 键来获取关于安装进程和选项的信息。 例如,按 [F2] 可看到关于在线帮助的常规信息的屏幕。

    启动安装程序


    要开始安装,你必须首先引导安装程序。请确定你已具备安装中将会用到的所有资料。 如果你已经通读了一遍 第1章 ,而且遵循了其中的指点,你应该已经一切就绪。  



    注记


      

    偶尔,某些硬件在安装中需要一个 驱动程序盘(driver disk) 。驱动程序盘为安装程序不支持的硬件添加支持。 详情请参阅 附录 F。  



    引导安装程序


    你可以使用下列任何介质来引导 Red Hat Linux 安装程序(这要根据你的系统所能支持的而定):



    可引导的光盘 - 你的机器支持可引导的光盘驱动器,并且你想执行本地光盘安装。


    本地引导盘 - 你的机器不支持可引导的光盘驱动器,并且你想从一个本地光盘或硬盘驱动器上安装。  


    网络引导盘 - 使用网络引导盘通过 NFS、FTP、和 HTTP 来安装。  


    PCMCIA 引导盘 - 当你需要 PCMCIA 支持,但是你的机器不支持从光盘驱动器引导或者 你需要 PCMCIA 支持以便使用你的系统上的光盘驱动器时,使用 PCMCIA 引导。PCMCIA 引导盘可用于所有安装方法(光盘、硬盘驱动器、 NFS、FTP、和 HTTP)。  


    要创建引导盘,请参阅 制作安装磁盘 在 第1章 。  


    将引导盘插入到你的计算机的第一个软盘驱动器内,然后重新引导(或使用光盘来引导,如果你的计算机支持的话)。 你可能需要改变你的 BIOS 设置来允许你从软盘或光盘中引导。  



    窍门


      

    要改变你的 BIOS 设置, 请阅读计算机初次引导时所显示的说明。你会看到一行文字,告诉你按 [Del] 或 [F1] 键来输入 BIOS 设置。


    当你进入了 BIOS 设置程序之后,查找能够改变你的引导顺序的部分。 默认值通常是 C、A 或 A、 C(根据你是从硬盘 [C] 还是软盘驱动器 [A] 中引导而定)。请改变该顺序,使光盘位于该引导顺序的最前面,接下来是 C 或 A(你的典型默认引导的那一个)。 这会指示计算机首先在光盘驱动器内寻找可引导的介质;如果它在光盘驱动器中没有发现可引导的介质, 它才会在你的硬盘或软盘驱动器中查找。


    退出 BIOS 前把你做的改变存盘。要了解详细情况, 请阅读你的系统附带的文档。



    片刻之后,一个包含 boot: 提示的屏幕就会出现。 这个屏幕包括了许多不同的引导选项。每个引导选项还有一个或多个与之关联的帮助屏幕。 要访问帮助屏幕,按在屏幕底部列出的恰当的功能键。


    在你引导安装程序的时候,请留意两个问题:



    当你看到了 boot: 提示后, 如果在一分钟内不采取任何行动,安装程序会自动开始。要禁用这项功能,按帮助屏幕上的功能键之一。


    如果你按了帮助屏幕上的功能键,在帮助屏幕从引导介质中被读取时会出现稍微的延迟。


    正常情况下,你只需按 [Enter] 键来引导。 请留意引导讯息以便查看 Linux 内核是否检测到了你的硬件。 如果你的硬件被正确地检测到,请继续到下一个部分。如果它没有正确地检测到你的硬件, 你可能会需要在专家模式下重新开始安装。


    其它引导选项


    对用户来说,从光盘中引导并执行图形化安装更容易些, 但是有些时候,在不同情况下,你可能需要用一种不同的方法来引导。本章节讨论其它可用的 Red Hat Linux 引导选项。



    注记


      

    请参阅 附录 H 来了解本章没有涉及的其它引导选项。




    如果你不想执行图形化安装,你可以使用下面的引导命令来启动文本模式安装:


    boot: linux text


    ISO 映像现在嵌入了 md5sum。要测试 ISO 映像校验和的完整性,在安装引导提示下键入:


    boot: linux mediacheck


    安装程序将会提示你插入一个光盘或选择一个要测试的 ISO 映像,然后选择「确定」 来执行校验和的操作。这种校验和的操作可以在任何 Red Hat Linux 光盘上执行,而且不必按指定顺序执行(例如:第一张光盘 不必是第一个需要校验的)。我们强烈建议你在所有你从下载的 ISO 映像中创建的 Red Hat Linux 光盘上执行这一操作。 该步骤在使用 ISO 映像的基于光盘的安装、硬盘驱动器安装、 和 NFS 安装中都可运行。


    如果安装程序没有正确地检测到你的硬件,你可能需要在 专家(expert) 模式中重新启动安装程序。 使用下列引导命令来进入专家模式:


    boot: linux noprobe


    文本模式安装,使用:


    boot: linux text noprobe


    专家模式禁用了多数硬件探测,并给你一个为安装中载入的驱动程序输入选项的机会。 初始引导迅息中将不会包含任何对 SCSI 或网卡的引用。 这种情况是正常的;这些设备会被安装进程中载入的模块支持。


    如果你需要在 串行方式(serial mode) 中执行安装,键入下列命令:


    boot: linux  
    console=<device>


    文本模式安装,使用:


    boot: linux text  
    console=<device>


    在上面的命令中,<device> 应该是你正在使用的设备(如 ttyS0 或 ttyS1)。例如: linux text console=ttyS0,115200n8。  


    内核选项


    选项还可以被传递给内核。例如:要指示内核在一个有 128 MB 内存的系统上使用全部内存,输入:


    boot: linux mem=128M


    文本模式安装,使用:


    boot: linux text mem=128M


    在输入了选项之后,按 [Enter] 键来使用这些选项引导。


    如果你需要指定引导选项来识别你的硬件,请将它们笔录下来。 安装中配置引导装载程序部分中将需要这些引导选项(详情请参阅 引导装载程序配置 )。


    不用软盘引导


    Red Hat Linux 光盘能够被支持可引导光盘的计算机引导。 不是所有的计算机都支持这一功能,因此如果你的系统无法从光盘中引导, 你可以使用另一种不用引导盘来启动安装的方法。下面的方法仅针对基于 x86 的计算机。  


    如果你的系统上装有 MS-DOS,你可以不用引导盘直接从光盘驱动器内引导。 要达到这一目的(假定你的光盘驱动器是 d:),使用下列命令:  


    C:\> d:
    D:\> cd \dosutils
    D:\dosutils> autoboot.bat


    这种方法如果运行在 DOS 窗口下则行不通 - autoboot.bat 文件必须在 DOS 作为唯一操作系统的情况下执行。换一句话说,你运行该文件时不能运行 Windows。


    如果你的计算机无法从光盘中直接引导(并且你无法使用基于 DOS 的autoboot.bat), 那么你就非得使用引导盘不可了。

    选择一种安装方法


    你想使用何种安装方法?可用的安装方法如下所列:


    光盘

    如果你有一个光盘驱动器和 Red Hat Linux 光盘, 你可以使用这种方法。你将需要一个引导盘或一个可引导的光盘。 PCMCIA 引导盘和驱动程序盘也可以使用。有关光盘安装的说明,请参阅从光盘中安装。  

    硬盘驱动器

    如果你已将 Red Hat Linux ISO 映像复制到本地硬盘驱动器中,你可以使用这种方法。你将需要一个引导盘。 PCMCIA 引导盘和驱动程序盘也可以使用。有关硬盘驱动器安装的说明, 请参阅 从硬盘 安装。  

    NFS 映像

    如果是从一个 NFS 服务器中使用 ISO 映像或 Red Hat Linux 的镜像映像来安装,你可以使用这种方法。你将需要一个网络引导盘。 PCMCIA 引导盘和驱动程序盘也可以使用。 有关网络安装的说明,请参阅 通过 NFS 安装。 还请注意,NFS 安装也可以在 GUI 模式中执行。  

    FTP

    如果你是从一个 FTP 服务器中直接安装,使用这种方法。 你将需要一个网络引导盘。 PCMCIA 引导盘和驱动程序盘也可以使用。 有关 FTP 安装的说明,请参阅 通过 FTP 安装。  

    HTTP

    如果你是从一个 HTTP(万维网)服务器中直接安装,使用这种办法。 你将需要一个网络引导盘。 PCMCIA 引导盘和驱动程序盘也可以使用。 有关 HTTP 安装的说明,请参阅 通过 HTTP 安装。  

    从光盘中安装



    注记


      

    如果你已安装了另一个操作系统,并想创建一个双引导系统以便能够兼用 Red Hat Linux 和另外的操作系统, 请阅读 附录 G 来获得详情。  



    要从光盘中安装 Red Hat Linux ,在引导装载程序屏幕中选择 「光盘」 选项,然后选择 「确定」。当提示时,在光盘驱动器中插入 Red Hat Linux 光盘 (如果你没有从光盘中引导的话)。一旦光盘已在驱动器中,选择 「确定」,然后按 [Enter]键。


    安装程序将会探测你的系统,并试图识别你的光盘驱动器。 它会开始寻找一个 IDE(又称 ATAPI)光盘驱动器。 如果找到了,它会继续到安装进程的下一阶段(参阅语言选择)。  



    注记


      

    这时若要中止安装进程,请重新引导你的系统,然后弹出引导磁盘或光盘。 在「即将安装」屏幕之前的任何时候, 你都可以安全地中止安装。详情请参阅 准备安装。  



    如果你的光盘驱动器没有被检测到,并且它是 SCSI 光盘驱动器, 请在提示时手工选择「SCSI」光盘类型。  


    如果你的光盘连接在一个被支持的 SCSI 适配器上,选择这一项。 然后,安装程序将会请你选择一个 SCSI 驱动程序。选择与你的适配器最接近的驱动程序。 如果必要,你可以为驱动程序指定选项,然而,多数驱动程序会被你的 SCSI 适配器自动检测到。  



    窍门


      

    可选的光盘驱动器参数的部分列表可以在《正式版 Red Hat Linux 参考指南》 内"常规参数和模块" 这一附录中找到。



    如果没有发现 IDE 光盘怎么办?


    如果你有一个 IDE (ATAPI) 光盘,但是安装程序没有成功地找到它, 反而向你询问你的光盘驱动器的类型,请尝试下列引导命令。 重新开始安装,然后在 boot: 提示后输入 linux hdX=cdrom。 根据光盘连接的接口以及它是被配置为主还是次而定,把 X 替换成以下字母之一:  



    a - 第一个 IDE 控制器,主


    b - 第一个 IDE 控制器,次


    c - 第二个 IDE 控制器,主


    d - 第二个 IDE 控制器,次


    如果你有第三个及(或)第四个控制器,请按字母顺序,从主到次为控制器分派字母。

    从硬盘 安装



    注记


      

    硬盘安装只适用于 ext2、ext3、或 FAT 文件系统。如果你有其它的文件系统,如 reiserfs,你将无法执行硬盘安装。



    硬盘安装需要使用 ISO(或光盘)映像。 ISO 映像是光盘映像的精确复制文件。由于 Red Hat Linux 的发行版本中包括了大量软件包, 可用的 ISO 映像也有好几个。把所需的 ISO 映像(二进制的 Red Hat Linux 光盘) 存放到某目录中后,选择从硬盘安装。这样,你就会把安装程序指向要执行安装的目录。  


    在试图安装前,请校验 ISO 映像的完整性。这会帮助你避免硬盘安装过程中经常会遇到的问题。 要在执行安装前校验 ISO 映像的完整性,请使用 md5sum 程序 (该程序有适用于各类操作系统的版本)。 md5sum 程序应该可以在提供 ISO 映像的同一服务器上找到。



    注记


      

    ISO 映像现已嵌入 md5sum。要测试 ISO 映像校验和的正确性, 在安装引导提示下键入:


    boot: linux mediacheck





    图 3-3. 硬盘驱动器安装的选择分区对话框


    「选择分区」 屏幕(图 3-3) 只在你从磁盘分区中安装时才会出现(这就是说,如果你在「安装方法」 中选择了 「硬盘驱动器」的话)。 该对话框允许你指定你从中安装 Red Hat Linux 的磁盘分区和目录。  


    输入包含 Red Hat ISO 映像的分区设备名。 其中还有一个字段标为 「包含映像的目录」。 如果 ISO 映像不在该分区的根目录中,请输入到达该映像的路径 (譬如,如果 ISO 映像在 /test/new/RedHat 中, 你应该输入 /test/new)。  


    当你确认了磁盘分区后,接下来,你就会看到「欢迎」对话框。  

    网络安装的筹备工作


    如果你要执行的是网络安装,并且已经使用 bootnet.img 映像引导了系统,「配置 TCP/IP」 对话框就会出现;要阅读关于该对话框的说明,请跳到 网络配置,然后再返回此处。  


    设置服务器


    由于 Red Hat Linux 8.0 安装程序具有从多个光盘安装 Red Hat Linux 的能力,如果你打算支持 NFS、 FTP、或 HTTP 安装,你可以把 Red Hat Linux 8.0 的每一张光盘中的 RedHat 目录复制到一个磁盘驱动器上(换一句话说, 你必须创建一个安装树):  



    窍门


      

    安装树是运行和安装 Red Hat Linux 操作系统所需的所有文件的位置。


    ISO 映像是光盘映像的精确复制文件。由于 Red Hat Linux 的发行版本中包括了大量软件包, 可用的 ISO 映像也有好几个。


    安装树与 ISO 映像的不同之处在于: 每个 ISO 映像都被分成安装程序将会调用的小型文件子集合; 而安装树在一个完整的文件结构中包含了所有必要的文件。 单个 ISO 映像可以被组合起来构成一个安装树。




    对每个二进制光盘,执行下列命令:



    mount /mnt/cdrom  


    cp -var /mnt/cdrom/RedHat /location/of/disk/space  


    这里的 /location/of/disk/space 是你创建的目录,如: /export/8.0/。


    umount /mnt/cdrom  


    请注意,发行注记没有包括在 RedHat 目录中。除非它们被特意复制了, 你在安装 Red Hat Linux 时将不会看到发行注记。


    发行注记可从以下网址中看到: http://www.redhat.com/docs


    下一步,使 /location/of/disk/space 能够被安装程序存取(譬如,为 NFS 安装导出该目录),你可以通过编辑 /etc/exports 文件来添加下面一行而达到这个目的:


    /location/of/disk/space *(ro)


    最后,运行下面的命令来使 /location/of/disk/space 能够被每个系统只读地挂载:


    /sbin/service nfs reload


    如果你不能肯定该怎么办,请参阅 《正式版 Red Hat Linux 定制指南》 和 《正式版 Red Hat Linux 参考指南》。  


    使用 ISO 映像进行 NFS 安装


    NFS 安装可以使用 ISO(或光盘)映像,而不必使用整个安装树。 把所需要的 ISO 映像(二进制 Red Hat Linux 光盘)存放到某目录中后, 选择通过 NFS 来安装。这样,你就会把安装程序指向要执行安装的目录。  


    在试图安装前,请校验 ISO 映像的完整性。这会帮助你避免 NFS 安装过程中经常会遇到的问题。 要在执行安装前校验 ISO 映像的完整性,请使用 md5sum 程序 (该程序有适用于各类操作系统的版本)。 md5sum 程序应该可以在提供 ISO 映像的同一服务器上找到。



    注记


      

    ISO 映像现已嵌入 md5sum。要测试 ISO 映像校验和的正确性, 在安装引导提示下键入:


    boot: linux mediacheck



    除此之外,如果你从中安装的目录中还有一个叫 updates.img 的文件,你可以用它来更新安装程序。请参考 anaconda RPM 软件包中的 install-methods.txt 文件来获取关于各类安装 Red Hat Linux 的途径,以及应用安装程序更新的详情。



    注记


      

    你在该目录中只能有一个 RHL; 发行版本的 ISO 映像。

    通过 NFS 安装


    NFS 对话框(图 3-4)只在你从 NFS 服务器中安装时才会出现(如果你从网络或 PCMCIA 引导盘引导,并且在「安装方法」中选择了 「NFS 映像」的话)。  


    输入你的 NFS 服务器的全限定域名或 IP 地址。譬如, 如果你是从 redhat.com 域的 eastcoast 主机上安装的话,在 「NFS 服务器」 字段中输入 eastcoast.redhat.com。  


    接下来,输入导出目录的名称。如果你遵循了 网络安装的筹备工作 中描述的设置步骤,你将应输入目录 /location/of/disk/space/, 其中包含了 RedHat 目录。


    如果 NFS 服务器导出的是 Red Hat Linux 安装树的镜像,输入包含 RedHat 目录的目录。(如果你不知道该目录的路径, 请向你的系统管理员咨询。)譬如,如果你的 NFS 服务器包含目录 /mirrors/redhat/i386/RedHat,输入 /mirrors/redhat/i386。  




    图 3-4. NFS 设置对话框


    如果 NFS 服务器从 Red Hat Linux 光盘导出 ISO 映像的话, 输入包含该 ISO 映像的目录。


    接下来,你会看到「欢迎」对话框。  

    通过 FTP 安装


    FTP 对话框(图 3-5) 只有在你从 FTP 服务器中安装时才会出现 ( 如果你在「安装方法」中选择了 「FTP」的话)。 该对话框允许你指定你从中安装 Red Hat Linux 的 FTP 服务器。  




    图 3-5. FTP 设置对话框


    输入你从中安装的 FTP 站点的名称或 IP 地址, 以及包含用于你的体系的 RedHat 安装文件的目录。譬如,如果 FTP 站点包含目录 /mirrors/redhat/i386/RedHat,输入 /mirrors/redhat/i386。  


    如果一切都被正确地指定了,一个通知你 base/hdlist 已被检索到的消息箱就会出现。  


    接下来,你会看到「欢迎」对话框。  



    窍门


      

    你还可以不必把 ISO 映像复制成单个安装树以便使用这些映像来安装 Red Hat Linux, 方法是把它们环回地挂载成:


    disc1/,disc2/,disc3/

    通过 HTTP 安装


    HTTP 对话框(图 3-6) 只有在你从 HTTP 服务器中安装时才会出现( 如果你在 「安装方法」中选择了 「HTTP」的话)。 该对话框提示你输入你从中安装 Red Hat Linux 的 HTTP 服务器的信息。  


    输入你从中安装的 HTTP 站点的名称或 IP 地址, 以及包含用于你的体系的 RedHat 安装文件的目录。譬如,如果 HTTP 站点包含目录 /mirrors/redhat/i386/RedHat,输入 /mirrors/redhat/i386。  




    图 3-6. HTTP 设置对话框


    如果一切都被正确地指定了,一个通知你 base/hdlist 已被检索到的消息箱就会出现。  


    接下来,你会看到「欢迎」对话框。  



    窍门


      

    你还可以不必把 ISO 映像复制成单个安装树以便使用这些映像来安装 Red Hat Linux, 方法是把它们环回地挂载成:


    disc1/,disc2/,disc3/

    欢迎使用 Red Hat Linux


    「欢迎」 屏幕不提示你做任何输入。 请阅读左侧面板内的帮助文字来获得附加说明,以及关于如何注册你的正式版 Red Hat Linux 产品的信息。


    请注意屏幕左下角的 「隐藏帮助」 按钮。 帮助屏幕是默认打开的。如果你不想查看帮助信息,点击 「隐藏帮助」把屏幕上的帮助部分最小化。


    点击「下一步」按钮来继续。

    语言选择


    使用鼠标来选择你想在安装中使用的语言(参见 图 3-7)。  


    选择恰当的语言会在稍后的安装中帮助你定位时区配置。安装程序将会试图根据你在这个屏幕上所指定的信息来定义恰当的时区。




    图 3-7. 语言选择


    当你选定了恰当的语言后,点击 「下一步」 来继续。

    键盘配置


    使用鼠标来选择你要在本次安装中和今后用作系统默认的键盘布局类型 (例如,U.S. English),参见 图 3-7。  


    选定后,点击「下一步」来继续。




    图 3-8. 键盘配置



    窍门


      

    要在你安装结束后改变键盘类型,使用 键盘配置工具。


    在 shell 提示下键入 redhat-config-keyboard 命令来启动 键盘配置工具。如果你不是根用户,它会提示你输入根口令再继续。

    鼠标配置


    为你的系统选择正确的鼠标类型。如果你找不到确切的匹配,选择你确定会与你的系统兼容的鼠标类型。 (参见图 3-9)。


    要判定你的鼠标接口,沿着鼠标线缆追踪到与你的系统相接的地方,然后参考以下图表。 如果你在便携电脑上安装 Red Hat Linux ,多数情况下指示设备会是 PS/2 兼容。


    如果你的鼠标是一个串口鼠标,它的端口看起来象是: 。


    如果你的鼠标是一个 PS/2 鼠标,它的端口看起来象是: 。


    如果你的鼠标是一个 USB 鼠标,它的端口看起来象是: 。


    如果你的鼠标是一个 AT(高级技术)鼠标,它的端口看起来象是: 。


    如果你找不到一个你能确定与你的系统兼容的鼠标,根据你的鼠标的键数和它的接口,选择「通用」 项目中的一个。



    窍门


      

    如果你有一个带滚动轮的鼠标,选择 「MS Intellimouse」 项目(带有正确鼠标端口的) 作为兼容的鼠标类型。





    图 3-9. 鼠标配置


    如果你有一个 PS/2、USB、 或总线鼠标,你不必挑选端口或设备。 如果你有一个串口鼠标,你应该选择该鼠标所在的正确端口和设备。  


    模拟 3 键鼠标 复选箱允许你象使用三键鼠标 一样使用双键鼠标。一般来说,用三键鼠标在图形化界面(X 窗口系统)中使用起来比较容易。 如果你选择了这个复选箱,你可以同时按鼠标的两键来模拟第三个"中间"键。  



    窍门


      

    要在安装结束后改变鼠标配置,使用 鼠标配置工具。


    在 shell 提示下键入 redhat-config-mouse 命令来启动 鼠标配置工具。如果你不是根用户,它会提示你输入根口令再继续。


    要把鼠标配置成左手用鼠标,重设鼠标按钮的顺序。方法是: 重新引导系统后,在 shell 提示下键入 gpm -B 321。

    安装类型


    选择你要执行的安装类型(参见 图 3-10)。 Red Hat Linux 允许你选择最符合你需要的安装类型。你的选项有 「个人桌面」、「工作站」、 「服务器」、「定制」、和 「升级」。  




    图 3-10. 选择安装还是升级


    要执行升级,请参阅 附录 A。


    关于不同安装类型的详情,请参阅 哪种安装类型最适合于你? 在 第1章  

    磁盘分区设置


    分区允许你将硬盘驱动器分隔成独立的区域,每个区域都如同是一个单独的硬盘驱动器。 如果你运行不止一个操作系统,分区将特别有用。如果你不能肯定想要如何给系统分区, 请阅读 附录 E 部分。


    在这个屏幕上,你可以选择自动分区,或者使用Disk Druid 或 fdisk 来手工分区(参见图 3-11)。


    自动分区允许你不必亲自为驱动器分区而执行安装。如果你对在系统上分区信心不足, 建议你 不要 选择手工分区,而是让安装程序自动为你分区。


    要手工分区,选择 Disk Druid 或 fdisk (只限专家)分区工具。




    图 3-11. 磁盘分区设置



    警告


      

    Red Hat 更新代理 会默认把更新的软件包下载到 /var/spool/up2date。如果你手工地给系统分区了, 并创建了一个单独的 /var 分区,请确定该分区有足够的空间来容纳下载的软件包更新。



    如果你选择使用 Disk Druid 来手工分区,请参阅 为你的系统分区。


    如果你选择使用 fdisk 来手工分区,请参阅 用 fdisk 分区。

    自动分区


    自动分区在有关哪些数据要从系统中删除(若适用)这一 方面允许你有控制权。可供你选择的选项有:



    「删除系统内所有的 Linux 分区」 - 选择该选项来只删除 Linux 分区(在从前安装 Linux 时创建的分区)。 这将不会影响你的硬盘驱动器上可能会有的其它分区 (例如:VFAT 或 FAT32 分区)。


    「删除系统内的所有分区」 - 选择这一选项来删除你的硬盘驱动器上的所有分区 ( 这包括由其它操作系统如 Windows 95/98/NT/2000 所创建的分区或 NTFS 分区)。  



    小心


      

    如果你选择了这个选项, 在选定的硬盘驱动器上的所有数据将会被安装程序删除。如果在你打算安装 Red Hat Linux的硬盘驱动器上有你想保留的信息,请不要选此项。



    「保存所有的分区,使用现有的空闲空间」 - 选择这一选项来保留你当前的数据和分区,假设你的硬盘驱动器上有足够的可用空闲空间的话。




    图 3-12. 自动分区


    使用你的鼠标来选择你想安装 Red Hat Linux 的硬盘驱动器。 如果你有两个或两个以上硬盘驱动器,你应该选择包含本次安装的硬盘驱动器。 没有被选择的硬盘驱动器,及其中的数据,将不会受影响。


    要评审并对自动分区创建的分区做一些必要的改变, 选择「评审」选项。 选择 「评审」后,点击「下一步」来向前移动,你将会看到在 Disk Druid 中为你创建的分区。 如果它们没有满足你的需要,你还能够对这些分区进行修改。


    当你选好之后,点击「下一步」来继续。

    为你的系统分区


    如果你选择了自动分区,但没有选择「评审」,请向前跳到 网络配置部分。


    如果你选择了自动分区并选择了「评审」,你可以接受目前的分区设置 (点击 「下一步」),或使用手工分区工具 Disk Druid来修改设置。


    如果你选择了「用 fdisk 程序手工分区 」,请向前跳到 用 fdisk 分区 部分。


    到了这一步,你必须告诉安装程序要在哪里安装 Red Hat Linux。这是通过在将要安装 Red Hat Linux 的一个或多个磁盘分区上定义挂载点来做到的。这时,你可能还需要创建或(并)删除分区(请参见 图 3-13)。  



    注记


      

    如果你还没有计划好要如何设立分区,请参阅 附录 E。你最起码需要一个大小合适的根分区,和一个大小相当于你系统上内存数量两倍的交换分区。





    图 3-13. 用 Disk Druid 来分区
     楼主| 发表于 2003-1-12 10:09:14 | 显示全部楼层

    安装程序使用的分区工具是 Disk Druid

    。除了某些较隐晦的情况外, Disk Druid 能够为典型的安装处理其分区要求。


    硬盘的图形化表示


    Disk Druid 提供了对你的硬盘的图形化表示。


    单击鼠标来突出显示图形化表示中的某一字段。 双击来编辑某个现存的分区 或从现存空闲空间中创建分区。


    在显示上面,你会看到「Drive」名称 (例如 /dev/hda ), 「Geom」(显示了硬盘的几何属性,包括了三个 数字分别代表硬盘汇报的柱面、磁头和扇区数量),以及 被安装程序检测到的硬盘「Model」。  


    Disk Druid 的按钮


    这些按钮控制着 Disk Druid 的行为。 它们用来改变一个分区的属性(例如文件系统类型和挂载点),还可用来创建 RAID 设备。 这个屏幕上的按钮可用来接受你所做的改变, 或退出 Disk Druid。为更进一步解释,让我们依次来看一看这些按钮:



    「新建」:用来请求一个新分区。当选择后, 一个对话框就会出现,其中包括的字段(如挂载点和大小)都必须被填充。


    「编辑」:用来修改目前在「分区」 部分中选定分区的属性。选择「编辑」打开一个对话框。部分或全部字段可被编辑, 这要依据分区信息是否已被写入磁盘而定。


    你还可以编辑图形化显示所表示的空闲空间,从而在那个空间内创建一个新分区。 你既可以突出显示空闲空间,然后选择 「编辑」按钮,也可以双击空闲空间来编辑它。


    「删除」:用来删除 目前在「当前磁盘分区」部分中突出显示的分区。 你需要确认对任何分区的删除。  


    「重设」:用来把 Disk Druid 恢复到它最初的状态。如果你「重设」分区,你所做的所有改变将会丢失。


    「RAID」:用来给部分或全部磁盘分区提供冗余性。 它只有在你有使用 RAID 的经验时才应使用。 关于 RAID 的详情,请参阅《正式版 Red Hat Linux 定制指南》。  


    要制作一个 RAID 设备,你必须首先创建软件 RAID 分区。一旦你已创建了两个或两个以上的软件 RAID 分区,选择「RAID」来把 软件 RAID 分区连接为一个 RAID 设备。


    「LVM」:允许你创建一个 LVM 逻辑卷。LVM(逻辑卷管理器)所扮演的角色是用来表现基本物理贮存空间的简单逻辑视图。 LVM 管理单个物理磁盘 - 或者更确切地说,磁盘上的单个分区。 它只有在你有使用 LVM 的经验时才应使用。 关于 LVM 的详情,请参阅《正式版 Red Hat Linux 定制指南》。


    要创建 LVM 逻辑卷,你必须首先创建类型为物理卷(LVM)的分区。 一旦你已创建了一个或多个物理卷(LVM)分区,选择「LVM」 来创建 LVM 逻辑卷。


    分区字段


    在分区层次之上的信息是代表你正创建的分区的标签。这些标签定义如下:



    「设备」:该字段显示分区的设备名。


    「挂载点/RAID/Volume」:挂载点是文件卷在目录层次内存在的位置; 文件卷在该位置被"挂载"。该字段标明分区将被挂载的位置。 如果一个分区存在,但还没有设立,那么你需要为其定义挂载点。 双击分区或点击 「编辑」 按钮来为其定义挂载点。  


    「类型」:该字段显示了分区的类型 (例如, ext2、ext3、或 vfat)。


    「格式化」:该字段显示了正创建的分区是否会被格式化。


    「大小 (MB)」:该字段显示了分区的大小(MB)。  


    「开始」:该字段显示了分区在你的硬盘上开始的扇区。


    「结束」:该字段显示了分区在你的硬盘上结束的扇区。


    「隐藏 RAID 设备或 LVM 卷组成员」: 如果你不想看到创建的 RAID 设备或 LVM 卷组成员,选择该选项。


    推荐的分区方案


    除非你另有原因,我们推荐你创建下列分区:



    一个交换分区(至少 32 MB)- 交换分区用来支持虚拟内存。 换句话说,当没有足够的内存来容纳你的系统正在处理的数据时,这些数据就被写入交换区。 你的交换分区的最小值应该相当于你的计算机内存的两倍和 32 MB 中较大的一个值。


    例如,如果你的内存小于等于 1 GB,你的交换分区应至少与你的系统内存相等或是它的两倍。 如果内存大于 1 GB,建议使用 2 GB 交换区。创建一个有大量空间的交换分区将会在你未来升级内存的时候发挥作用。


    一个 /boot 分区(75 MB)- 这个挂载在 /boot 上的分区包含操作系统的内核(允许你的系统引导 Red Hat Linux), 以及其它几个在引导过程中使用的文件。鉴于多数 PC BIOS 的限制,创建一个小分区来容纳这些文件是较佳的选择。 对大多数用户来说,75 MB 引导分区应该是足够了。



    警告


      

    不要把你的 /boot 分区创建为 LVM 分区类型。Red Hat Linux 中包括的引导装载程序无法读取 LVM 分区,你将无法引导你的 Red Hat Linux 系统。




    小心


      

    如果你的硬盘驱动器大于 1024 个 柱面(同时,你的系统是在两年前生产的),并且你想让 / (根) 分区使用硬盘驱动器上的全部剩余空间的话,你可能需要创建一个 /boot 分区。



    一个 根 分区 (1.5-4.5 GB) - 这是"/"(根目录)将被挂载的位置。 在这个设置中,所有文件(除了贮存在 /boot 分区上的以外)都位于根分区上。一个大小为 1.5 GB 的根分区可以容纳与个人桌面或工作站相当的安装(只剩极少空闲空间), 而一个大小为 4.5 GB 的根分区将会允许你安装每一个软件包。


    添加分区


    要添加一个新分区,选择「新建」按钮。一个对话框会出现(请参见 图 3-14)。



    注记


      

    你必须至少把一个分区专用于本次安装。详情请参阅 附录 E。  





    图 3-14. 创建一个新分区



    「挂载点」:输入分区的挂载点。 譬如,如果这个分区是根分区,输入 /;如果是 /boot 分区,输入 /boot ,等等。你还可以使用下拉菜单来为你的系统选择正确的挂载点。


    「文件系统类型」:使用下拉菜单,选择用于该分区的合适的文件系统。 关于文件系统类型的详情,请参阅 文件系统类型。


    「允许的驱动器」:这个字段包括在你的系统上安装的硬盘列表。 如果一个硬盘的箱被突出显示,那么在该硬盘上可以创建想要的分区。 如果那个箱内没有打勾,那么这个分区在该硬盘上将 决不会被创建。靠使用默认的复选箱设置,你能够使用 Disk Druid 在你觉得合适的地方放置分区,或让 Disk Druid 来决定应该放置分区的地方。


    「大小(MB)」:输入分区的大小(MB)。 注意,该字段从 100 MB 开始;若不改变,创建的分区将只有 100 MB。  


    「额外的大小选项」:选择是否要将分区保留为固定大小, 允许它"扩大"(使用硬盘驱动器上的可用空间)到某一程度,或允许它"扩大"到使用全部硬盘驱动器上可用的剩余空间。


    如果你选择 「指定空间大小(MB)」, 你必须在这个选项右侧的字段内给出大小限制。这会允许你在你的硬盘驱动器上保留一定的空间为将来使用。


    「强制为主分区」:选择你所创建的分区是否应为硬盘上的四个主分区之一。 如果没有选择,所创建的分区将会是一个逻辑分区。 详情请参阅 分区内的分区 - 扩展分区概述 在 附录 E。


    「检查磁盘坏块」:检查磁盘坏块能够定位磁盘上的坏块, 并将其列表以防今后被使用,从而帮助你防止数据丢失。如果你想在格式化每一个文件系统时检查磁盘坏块, 请确定此选项被选。


    选择「检查磁盘坏块」可能会显著增加你的总计安装时间。 既然多数新型的硬盘驱动器都容量庞大, 检查坏块可能会花很长一段时间;时间长短要依你的硬盘驱动器的大小而定。 如果你选择了要检查坏块,你可以在第六号虚拟控制台上监视它的进程。


    「确定」:当你对设置满意并想创建分区的时候, 选择「确定」按钮。


    「取消」:如果你不想创建这个分区, 选择「取消」按钮。


    文件系统类型


    Red Hat Linux 允许你依据分区将使用的文件系统来创建不同的分区类型。 下面的内容是对不同文件系统以及它们的使用方法的简单描述。



    「ext2」 - ext2 文件系统支持标准 Unix 文件类型(常规文件,目录,符号链接等)。 它还提供了分派长至 255 个字符文件名的能力。 Red Hat Linux 7.2 之前的版本默认使用 ext2 文件系统。


    「ext3」 - ext3 文件系统是基于 ext2 文件系统之上的,它有一个主要优点 - 登记报表。使用一个登记报表的文件系统减少了崩溃后恢复文件系统所花费的时间, 因为没有必要运行 fsck [1] 来检查文件系统。 ext3 文件系统会被默认选定,且是我们极力推荐的。


    「物理卷(LVM)」 - 创建一个或多个物理卷(LVM) 分区允许你创建一个 LVM 逻辑卷。关于 LVM 的详细信息,请参阅 《正式版 Red Hat Linux 定制指南》。


    「软件 RAID」 - 创建两个或多个软件 RAID 分区允许你创建一个 RAID 设备。关于 RAID 的详情,请参阅《正式版 Red Hat Linux 定制指南》中"RAID (独立磁盘冗余阵列)"章节。


    「交换区」 - 交换分区被用于支持虚拟内存。 换句话说,如果存放你的系统正处理的数据所需内存不够时,这些数据就会被写入到你的交换分区上。


    「vfat」 - VFAT 文件系统是一个与 Windows 95/NT FAT 文件系统的长文件名兼容的 Liunx 文件系统。  


    编辑分区


    要编辑一个分区,选择「编辑」按钮或双击该分区。



    注记


      

    如果分区在你的硬盘中已经存在,你将只能改变分区的挂载点。 如果你想做其它改变,你将需要删除该分区然后再重建。



    删除一个分区


    要删除分区,在「分区」部分将之突出显示, 然后点击「删除」按钮。你需要确认此项删除。


    关于安装的进一步指示,请跳到 引导装载程序配置 。





    [1]

    fsck 程序被用来检查文件系统元数据统一性,还可以选用它维修一个或多个 Linux 文件系统。

    用 fdisk 分区


    只有当你选择要使用 fdisk 来为你的系统分区时, 这部分才有必要被应用。


    要不使用 fdisk 来为你的系统分区,请跳到 自动分区 来自动分区,或 为你的系统分区 来用 Disk Druid 分区。


    如果你已经完成了磁盘分区,请跳到 引导装载程序配置 来获得安装的进一步指示。



    小心


      

    除非你从前使用过 fdisk并且理解它的工作原理,我们不推荐你使用它。对于新用户来说,使用 fdisk 极容易不小心损坏或丢失数据。


    Disk Druid 比 fdisk 要容易理解。要退出 fdisk,点击「上一步」 来返回到前一个屏幕,取消选择 fdisk,然后点击 「下一步」。



    如果你已选定要使用 fdisk,下一个屏幕将会提示你选择一个使用 fdisk 来分区的驱动器。当你选定后, 你将会面对 fdisk 命令屏幕。如果你不知道要使用什么命令,在提示下键入 [m] 来获得帮助。


    当你完成分区后,键入 [w] 来储存所做的改变然后退出。你将会被带入到最初的 fdisk 屏幕,在那里,你可以为另一个驱动器分区或继续安装。



    注记


      

    直到你用 w 命令把所有改变都存盘并退出 fdisk 后,这些改变才会生效。 你可以使用 q 命令在任何时候不存盘而退出 fdisk。



    在你为驱动器分区后,点击「下一步」。你将需要使用 Disk Druid 来为你刚刚使用 fdisk 创建的分区分派挂载点。


    你无法使用 Disk Druid 来添加新分区,但是你可以为已经创建的分区编辑挂载点。 对于每一个用 fdisk 创建的分区,点击「编辑」 按钮,从下拉菜单中为该分区选择合适的挂载点,然后点击「确定」。

    引导装载程序配置


    为了要不使用引导盘来引导你的系统,你通常需要安装一个引导装载程序。 引导装载程序是计算机启动时所运行的第一个软件, 它的责任是载入操作系统内核软件并把控制转交给它, 然后,内核软件再初始化剩余的操作系统。


    安装程序为你提供了两个引导装载程序:GRUB 和 LILO。


    GRUB (GRand Unified Bootloader) 是一个默认安装的功能强大的引导装载程序。 GRUB 能够通过连锁载入另一个引导装载程序来载入多种免费和专有操作系统 (连锁载入是通过载入另一个引导装载程序来载入 DOS 或 Windows 之类不支持操作系统的机制)。


    LILO (LInux LOader) 是用于 Linux 的灵活多用的引导装载程序。 它并不依赖于某一特定文件系统,能够从软盘和硬盘引导 Linux 内核映像, 甚至还能够引导其它操作系统。




    图 3-15. 引导装载程序配置


    如果你不想把 GRUB 装为引导装载程序,点击 「改变引导装载程序」。然后,你便可以选择安装 LILO 或干脆不安装引导装载程序。


    如果你目前已有一个能够引导 Linux 的引导装载程序, 并且不打算覆盖当前使用的引导装载程序,或者打算使用引导盘来引导系统, 点击「改变引导装载程序」按钮来选择 「不安装引导装载程序」。



    小心


      

    如果你由于某种原因要不安装 GRUB 或 LILO, 你将无法直接引导系统,你得使用另一种引导方法(如引导盘)。 只有当你确定另有引导系统的方法时才使用该选项!  



    每个可引导分区都被列出,包括被其它操作系统使用的分区。 包含你的系统根文件系统的分区将有一个Red Hat Linux (GRUB)或 linux(LILO)「标签」。 其它分区也可以有引导标签。如果你想添加或改变其它被安装程序检测到的分区的标签, 单击该分区来选择它,选定后,你可以点击 「编辑」 按钮来改变引导标签。  


    在你想要的引导分区旁边选择 「默认」 来选择你默认的可引导 OS。 你选定了默认引导映像后,安装才会继续。



    注记


      

    「标签」 列中列出的信息是你在引导所需操作系统时必须在非图形化引导装载程序的引导提示下输入的信息。


    一旦你已载入 GRUB 引导屏幕,使用箭头键来选择引导标签, 键入 [e] 来编辑。你将会看到所选引导标签配置文件中的项目列表。


    在图形化的 LILO 屏幕中,按 [Ctrl]-[x] 来退回到 boot: 提示。如果你忘记了系统中定义的引导标签, 你可以随时在提示下按 [Tab] 键来显示定义引导卷标的列表。



    在能够物理存取你的服务器的环境中,引导装载程序口令为你提供了一种安全机制。


    如果你打算安装引导装载程序,你应该创建一个口令来保护你的系统。 若没有引导装载程序口令,能够访问你的系统的用户将可以向内核传递选项,从而损害你的系统安全性; 若使用了引导装载程序口令,用户必须先输入口令才能选择非标准的引导选项。  


    如果你选择要使用引导装载程序口令来增进你的系统安全性, 请确定选择标为「使用引导装载程序口令」的复选箱。  


    一旦选毕,输入口令并确认。


    要配置更高级的引导装载程序选项,如改变驱动器顺序或向内核传递选项, 请在点击「下一步」前确定选择 「配置高级引导选项」。


    高级引导装载程序配置


    现在,你已选定了要安装的引导装载程序,你还可以决定要在哪里安装引导装载程序。 你可以在下面两个位置之一安装引导装载程序:  


    主引导记录 (MBR)

    这是我们推荐安装引导装载程序的地方,除非 MBR 已经在启动另一个操作系统的引导装载程序,如 System Commander。 MBR 是你的硬盘驱动器上的一个特殊区域,它会被你的计算机的 BIOS 自动载入,并且是引导装载程序控制引导进程的最早地点。 如果你在 MBR 上安装引导装载程序,当你的机器引导时,GRUB(或 LILO)会呈现一个引导提示。 然后你便可以引导 Red Hat Linux 或其它任何你配置要引导的操作系统。

    你的引导分区的第一个扇区

    如果你已在系统上使用另一个引导装载系统的话,我们推荐这个位置。 在这种情况下,你的另外的引导装载系统会首先取得控制权。然后你可以配置它来启动 GRUB(或 LILO),继而引导 Red Hat Linux。




    图 3-16. 引导装载程序安装


    如果你的系统只将使用 Red Hat Linux,你应该选择 MBR。 对于带有 Windows 95/98 的系统来说,你也应该把引导装载程序安装到 MBR,因此它可以引导两个操作系统。


    如果你想重新排列驱动器顺序,点击 「改变驱动器顺序」 按钮。如果你有多个 SCSI 适配器或者兼有 SCSI 和 IDE 适配器,并想从 SCSI 设备中引导,改变驱动器顺序可能会发挥作用。


    「强制使用 LBA32 (通常不需要)」 选项允许你的 /boot 分区超过 1024 柱面限制。 如果你的系统支持使用 LBA32 扩展来引导超过 1024 柱面限制的操作系统, 并且你想把 /boot 分区放置在 1024 柱面之外,你应该选择该选项。


    如果你想给引导命令添加默认选项,请把它们输入到 「内核参数」 字段中。你输入的任何选项将会在每次引导时被传递给 Linux 内核。  


    救援模式


    如果你需要使用救援模式,有几个选项可供你选择。



    使用光盘来引导,在boot: 提示下键入 linux rescue。


    通过由 boot.img映像制作的安装引导盘来引导你的系统。 这种方法要求你插入 Red Hat Linux 的第一张光盘或硬盘上的 ISO 映像作为救援映像。 一旦你用该磁盘引导了,在boot: 提示下键入 linux rescue。


    通过由bootnet.img制作的网络引导盘或由 pcmcia.img制作的 PCMCIA 引导盘来引导。 一旦你用该磁盘引导了,在boot: 提示下键入 linux rescue。 你只有在联网时才能这么做。你将会需要识别网络主机和传输类型。 关于如何指定这些信息的说明,请参阅网络安装的筹备工作。


    关于救援模式的详情,请参阅 《正式版 Red Hat Linux 定制指南》。


    其它可选的引导装载程序


    如果你不想使用引导装载程序,你还有其它几种选择:


    引导盘

    你可以使用由安装程序创建的引导盘(如果你制作了一个的话)。  

    LOADLIN

    你可以从 MS-DOS 中载入 Linux。不幸的是, 这需要在 MS-DOS 分区上有一份 Linux 内核(以及一个 初始内存磁盘,如果你有一个 SCSI 适配器的话)。 达到这一目的的唯一方法是使用其它方法(譬如引导盘) 来引导你的 Red Hat Linux 系统,然后将内核复制到 MS-DOS 分区。 LOADLIN 在以下网页以及相关的镜像网站中可以找到:


    ftp://metalab.unc.edu/pub/Linux/system/boot/dualboot/  


    SYSLINUX

    SYSLINUX 是一个和 LOADLIN 很相似的 MS-DOS 程序。 它也在以下网页以及相关网站中可以找到:


    ftp://metalab.unc.edu/pub/Linux/system/boot/loaders/  


    商用引导装载程序

    你可以使用商用引导装载程序来载入 Linux。 例如,System Commander 和 Partition Magic 能够引导 Linux (但仍需要在你的 Linux 根分区安装 GRUB 或 LILO)。



    注记


      

    LOADLIN 和 System Commander 之类的引导装载程序被当作第三方引导装载程序对待, 它们不被 Red Hat 支持。



    SMP 母板,GRUB,和 LILO


    这个部分只与 SMP 母板有关。SMP 是对称多重处理 (Symmetric Multiprocessing)的简写, 它是一个通过多个 CPU 同时完成单独进程(多重处理)来提供快速性能的计算机体系。


    如果安装程序检测到你的系统上有 SMP 母板,它会自动创建两个引导装载程序项目。  



    注记


      

    带有超线程的 Intel17Pentium174 系统将会默认安装 SMP 内核。



    在 grub.conf 中的两个 GRUB 项目将会是 Red Hat Linux (kernel version) 和 Red Hat Linux (kernel version-smp)。 Red Hat Linux (kernel version-smp) 将会被默认引导。 然而,如果你在使用 SMP 内核时遇到困难,你可以选择引导 Red Hat Linux (kernel version) 项目。 你会保留所有和从前一样的功能,但是你将只能使用单个处理器来操作。  


    在 lilo.conf 中的两个 LILO 项目将会是 linux 和 linux-up。 linux 项目将会被默认引导。 然而,如果你在 SMP 内核中遇到困难,你可以选择引导 linux-up 项目。 你会保留所有和从前一样的功能,但是你将只会使用单个处理器来操作。  

    网络配置


    如果你没有网络设备,你将看不到这个屏幕。请跳到 防火墙配置。


    如果你有网络设备但还没有配置网络(譬如,从你创建的网络引导盘中引导,以及提示时输入了你的网络信息), 你现在就有机会来配置(如 图 3-17 所示)。




    图 3-17. 网络配置


    安装程序会自动检测到你拥有的任何网络设备, 并把它们显示在 「网络设备」 列表中。


    选定网络设备后,点击「编辑」。 从弹出的「编辑界面」屏幕上, 你可以选择通过 DHCP 来配置网络设备的 IP 地址和子网掩码 (若没有选择 DHCP 则手工配置),你可以选择在引导时激活该设备。 如果你选择了 「引导时激活」,你的网络界面 就会在引导时被启动。如果你没有 DHCP 客户的存取权,或者你不能肯定这里该提供什么信息, 请和你的网络管理员联系。  




    图 3-18. 编辑网络设备



    注记


      

    不要使用在配置例子中见到的数字。这些数字将在你自己的网络配置中行不通。 如果你不能肯定应该输入什么数值,请联系你的网络管理员来得到协助。



    如果你的网络设备有一个主机名(全限定域名),你可以选择要 DHCP(动态主机配置协议)自动检测它,或者在提供的字段中手工输入主机名。  


    最后,如果你手工地输入了 IP 和子网掩码信息, 你可能还得输入网关、主要、次要、和第三 DNS 地址。  



    窍门


      

    即便你的计算机不属于任何网络,你也可以为你的系统输入一个主机名。 如果你不借助这个机会输入一个名称,你的系统将会被称为 localhost。




    窍门


      

    要在安装结束后改变你的网络配置,使用 网络管理工具。


    在 shell 提示下键入 redhat-config-network 命令来启动 网络管理工具。如果你不是根用户,它会提示你输入根口令再继续。

    防火墙配置


    Red Hat Linux 为增加系统安全性提供了防火墙保护。防火墙存在于你的计算机和网络之间, 用来判定网络中的远程用户有权访问你的计算机上的哪些资源。一个正确配置的防火墙可以极大地增加你的系统安全性。




    图 3-19. 防火墙配置


    为你的系统选择恰当的安全级别。


    「高级」

    如果你选择了 「高级」,你的系统就不会接受那些没有被你具体 指定的连接(除了默认设置外)。只有下列连接是默认允许的:  



    DNS 回应


    DHCP - 任何使用 DHCP 的网络接口都可以被正确地配置。


    如果你选择 「高级」,你的防火墙将不允许下列连接:  



    活跃状态 FTP(在多数客户机中默认使用的被动状态 FTP,应该能够正常运行。)


    IRC DCC 文件传输


    RealAudioTM


    远程 X 窗口系统客户机


    如果你要把系统连接到互联网上,但是并不打算运行服务器,这是最安全的选择。 如果需要额外的服务,你可以选择 「定制」 来具体指定允许通过防火墙的服务。



    注记


      

    如果你在安装中选择设置了中级或高级防火墙,网络验证方法(NIS 和 LDAP)将行不通。


    「中级」

    如果你选择了 「中级」,你的防火墙 将不准你的系统访问某些资源。访问下列资源是默认不允许的:  



    低于1023 的端口 - 这些是标准要保留的端口,主要被一些系统服务所使用, 例如:FTP、SSH、 telnet、HTTP、和 NIS。  


    NFS 服务器端口 (2049) - 在远程服务器和本地客户机上,NFS 都已禁用。


    为远程 X 客户机设立的本地 X 窗口系统显示。


    X 字体服务器端口(xfs 不在网络中监听;它在字体服务器中被默认禁用)。


    如果你想准许到 RealAudioTM 之类资源的访问, 但仍要堵塞到正常系统服务的访问,选择 「中级」。你可以选择 「定制」 来允许具体指定的服务穿过防火墙。



    注记


      

    如果你在安装中选择设置了中级或高级防火墙,网络验证方法(NIS 和 LDAP)将行不通。


    「无防火墙」

    无防火墙给予完全访问权并不做任何安全检查。安全检查是对某些服务的禁用。 建议你只有在一个可信任的网络(非互联网)中运行时,或者你想稍后再进行详细的防火墙配置时才选此项。


    选择 「定制」 来添加信任的设备或允许其它的进入接口。


    「信任的设备」

    选择 「信任的设备」 中的任何一个将会允许你的系统接受来自这一设备的全部交通;它不包括在防火墙规则内。 例如,如果你在运行一个局域网,但是通过 PPP 拨号连接到了互联网上,你可以选择 「eth0」,而后所有来自你的局域网的交通将会被允许。把 「eth0」 选为 "信任的"意味着所有以太网内的交通都是被允许的,但是 ppp0 接口仍旧有防火墙限制。如果你想限制某一接口上的交通,不要选择它。


    建议你不要将连接到互联网之类的公共网络上的设备定为 「信任的设备」。

    「允许进入」

    启用这些选项将允许具体指定的服务通过防火墙。注意:在工作站类型安装中,大多数这类服务在系统内没有 被安装。


    「DHCP」

    如果你允许进入的 DHCP 查询和回应,你将会允许任何使用 DHCP 来判定其 IP 地址的网络接口。 DHCP 通常是启用的。如果 DHCP 没有启用,你的计算机就不能够获取 IP 地址。

    「SSH」

    Secure (安全)SHell (SSH) 是用来在远程机器上登录及执行命令的一组工具。 如果你打算使用 SSH 工具通过防火墙来访问你的机器,启用该选项。 你需要安装 openssh-server 软件包以便使用 SSH 工具来远程访问你的机器。

    「Telnet」

    Telnet 是用来在远程机器上登录的协议。Telnet 通讯是不加密的, 几乎没有提供任何防止来自网络刺探之类的安全措施。建议你不要允许进入的 Telnet 访问。 如果你想允许进入的 Telnet 访问,你需要安装 telnet-server 软件包。

    「WWW (HTTP)」

    HTTP 协议被 Apache(以及其它万维网服务器)用来提供网页。如果你打算向公众开放你的万维网服务器, 请启用该选项。你不需要启用该选项来查看本地网页或开发网页。如果你向提供网页的话,你需要安装 httpd 软件包。  


    启用 「WWW (HTTP)」 将不会为 HTTPS 打开一个端口。要启用 HTTPS,在 「其它端口」 字段内指明。

    「邮件 (SMTP)」

    如果你需要允许远程主机直接连接到你的机器来发送邮件,启用该选项。 如果你想从你的 ISP 服务器中收取 POP3 或 IMAP 邮件,或者你使用的是 fetchmail 之类的工具,不要启用该选项。 请注意,不正确配置的 SMTP 服务器会允许远程机器使用你的服务器发送垃圾邮件。

    「FTP」

    FTP 协议是用于在网络机器间传输文件的协议。如果你打算使你的 FTP 服务器可被公开利用, 启用该选项。你需要安装 wu-ftpd(很可能还有 anonftp)软件包才能利用该选项。

    「其它端口」

    你可以允许访问这里没有列出的其它端口,方法是在 「其它端口」 字段内把它们列出。使用下列格式: 端口:协议。例如,如果你想允许 IMAP 通过你的防火墙,你可以指定 imap:tcp。你还可以具体指定数字端口,要允许 UDP 包在端口 1234 通过防火墙,输入 1234:udp。要指定多个端口,用逗号将它们隔开。



    窍门


      

    要在安装完毕后改变你的安全级别配置,使用 安全级别配置工具。


    在 shell 提示下键入 redhat-config-securitylevel 命令来启动 安全级别配置工具。如果你不是根用户,它会提示你输入根口令再继续。

    语言支持的选择


    Red Hat Linux 能够安装并支持多种语言以便在你的系统中使用。


    你必须选择一种语言作为你的默认语言。当安装结束后, 你的系统中将会使用默认语言。如果你选择安装了其它语言,你可以在安装后改变你的默认语言。  


    如果你只打算在系统上使用一种语言,只选择那种语言将会 节省大量磁盘空间。默认语言是你在安装中选择要使用的语言。



    小心


      

    如果你只选择了一种语言,当安装完成后,你将只能使用该种语言。





    图 3-20. 语言支持的选择


    要在你的系统上使用多种语言,选择具体指定要安装的语言,或者选择在你的 Red Hat Linux 系统上安装所有可用语言。


    使用「重设」按钮来取消你的选择。 重设会回复到默认设置;只有你选定在安装中使用的语言会被安装。



    窍门


      

    要在安装结束后改变语言配置,使用 语言配置工具。


    在 shell 提示下键入 redhat-config-language 命令来启动 语言配置工具。如果你不是根用户,它会提示你输入根口令再继续。

    时区配置


    你可以通过选择你的计算机的物理位置,或者指定你的时区 和通用协调时间(UTC)间的偏移来设置你的时区。  


    请注意屏幕上端的两个标签(参见 图 3-21)。第一个标签允许你按位置来配置时区。 你可以指定不同的区域来查看: 世界、北美洲、 南美洲、太平洋沿岸、 欧洲、非洲、和 亚洲。  


    在互动地图上,你还可以点击一个用黄点标记的指定城市, 一个红色的 X 会出现标明你的选择。你还可以在 一个列表中滚动并选择一个时区。  


    第二个标签允许你指定 UTC 偏移。这个标签显示了 一个可从中选择的偏移列表,以及设立夏时制的选项。  




    图 3-21. 配置时区


    在两个标签上,你都可以选择 系统时钟使用 UTC。如果你知道你的系统是设置到 UTC 的话,选择此项。  



    窍门


      

    如果你想在 Red Hat Linux 系统引导后改变你的时区配置, 变成根用户,然后使用 /usr/sbin/timeconfig 命令。  
    帐号配置


    「帐号配置」 屏幕允许你设置根口令。 除此之外,当安装结束后,你还可以为你自己设置一个用来登录的用户帐号。 (参见 图 3-22)。  




    图 3-22. 帐号创建


    设置根口令


    设置根帐号和口令是安装过程中最重要的步骤之一。 你的根帐号与用在 Windows NT 机器上的管理员帐号类似。 根帐号是用来安装软件包,升级 RPM,以及执行多数系统维护工作的。 作为根用户登录可使你对系统有完全的控制权。  


    请只有在进行系统管理时才使用根帐号。创建一个非根帐号来做日常工作。 若你需要快速修复某项事务时,用 su - 命令暂时 登录为根用户。遵循这些最基本的原则将会减少你因键入错误或不正确的命令而损害系统 的机会。  



    窍门


      

    要变成根用户,在终端机窗口的 shell 提示下键入 su - ,并按 [Enter] 键, 然后,输入根口令并按 [Enter] 键。  



    安装程序会提示你为你的系统设置一个根口令 [1]。 你必须输入一个根口令。如果无根口令被输入,安装将无法继续。  


    根口令必须至少包括六个字符;你键入的口令不会显示在屏幕上。 你必须把口令输入两次;如果两个口令不匹配,安装程序将会请你重新输入口令。  


    你应该把根口令设为你可以记住但又不容易被别人猜到的组合。 你的名字、电话号码、 qwerty、 password 、 root、 123456、以及 anteater 都是坏口令的例子。好口令混合使用 数字、大小写字母,并且不包括任何词典中的词。例如: Aard387vark 或 420BMttNT。 请记住,口令是区分大小写的。如果你笔录下你的口令,请将之保存在一个安全的地方。 然而,我们建议你不要笔录这个或任何你创建的口令。  



    注记


      

    不要使用本指南中提供的任何范例口令。 使用其中任何一个,都可以被视为安全风险。  




    注记


      

    根用户(又称超级用户)对整个系统有完全的存取权; 正因如此,最好 只有在 执行系统维护或管理时才登录为根用户。  



    设置用户帐号


    如果你选择要现在就创建一个用户帐号,安装结束后你就可以用该帐号来登录。 这会允许你安全简易地在你的计算机上登录,而不必作为根用户登录后再创建用户帐号。  


    输入一个帐号名。然后为该用户帐号输入并确认其口令。 输入用户帐号的全称,然后按 「添加」。 你的帐号信息就会被添加到帐号列表之中。 用户帐号字段内的内容会被清除,因此你可以添加另一名用户。  




    图 3-23. 创建用户帐号


    选择 「新建」 来添加一名新的非根用户。 输入该用户的信息,然后使用 「添加」 按钮来把这名用户添加到帐号列表中去。  


    你还可以 「编辑」 或 「删除」 你创建的或不再使用的用户帐号。  





    [1]

    根口令是用于你的 Red Hat Linux 系统的管理口令。你应该只在需要系统维护的时候 才登录为根用户。根帐号没有任何加于普通用户上的限制,因此, 作为根用户所做的任何改变会牵涉到你的整个系统。

    验证配置


    如果你执行的是个人桌面、工作站、或服务器安装,请跳到 软件包组的选择。  


    如果你不用设置网络口令的话,你可以跳过这一部分。 如果你不知道是否需要设置,请向你的系统管理员咨询。


    除非你正在设置「NIS」验证, 你将会注意到只有「MD5」和「屏蔽」 口令被选 (参见 图 3-24)。我们推荐你两者都使用,以便使你的系统尽可能的安全。


    要配置 NIS 选项,你必须已连接到 NIS 网络。如果你不能肯定是否已连接到 NIS 网络,请询问你的系统管理员。




    图 3-24. 验证配置



    「启用 MD5 口令」 - 允许使用长口令(长至 256 个字符),而不是标准的八个字符或更少。  


    「启用屏蔽口令」 - 提供一个保存口令的安全方法。口令被贮存在 /etc/shadow 文件中,只可以被根用户读取。


    「启用 NIS」 - 允许你使用一个公用口令和组群文件来运行位于同一网络信息服务域内的一组计算机。 你可以从下列选项中选择:



    「NIS 域」 - 允许你指定你的系统所属的域或计算机组。


    「使用广播来寻找 NIS 服务器」 - 允许你在你的局域网中广播消息以寻找一个可用的 NIS 服务器。


    「NIS 服务器」 - 导致你的计算机使用一个指定的 NIS 服务器,而不是在局域网中广播请求任何可用的服务器来主持你的系统。



    注记


      

    如果你在安装过程中选择了中级或高级防火墙配置,网络验证方法(NIS 和 LDAP)将行不通。



    「启用 LDAP」 - 告诉你的计算机使用 LDAP 做部分或全部验证。LDAP 合并你的机构中的某类信息。 例如:你的机构中所有不同的用户列表可以被并入一个 LDAP 目录。 关于 LDAP 的详情,请参阅《正式版 Red Hat Linux 参考指南》中"轻型目录访问协议 (LDAP)"这一章。你可以从下列选项中选择:



    「LDAP 服务器」 - 允许你访问一个运行 LDAP 协议的指定服务器(通过提供 IP 地址)。


    「LDAP 基准 DN」 - 允许你 用识别名称(DN)来查找用户信息。


    「使用 TLS(传送层安全) 查寻」 - 该选项允许 LDAP 在验证前向 LDAP 服务器发送加密的用户名及口令。


    「启用 Kerberos」 - Kerberos 是提供网络验证服务的一种安全系统。关于 Kerberos 的详情,请参阅 《正式版 Red Hat Linux 参考指南》 中的"在 Red Hat Linux 上使用 Kerberos 5" 这一章。可供你选择的选项有三个:



    「领域」 - 该选项允许你访问一个使用 Kerberos 的网络, 这个网络可以由一个或多个服务器(又称 KDC),以及许多客户机(可能极多)组成。


    「KDC」 - 该选项允许你访问密钥分发中心 (KDC)。 KDC 是一个分配 Kerberos 票的机器(有时也称 票单许可服务器 或 TGS)。


    「管理服务器」 - 该选项允许你访问一个运行 kadmind 的服务器。


    「启用 SMB 验证」 - 用来设置 PAM 以便使用 SMB 服务器来验证用户。你必须在此提供两项信息:



    「SMB 服务器」 - 标明你的工作站为了验证所要连接的 SMB 服务器。


    「SMB 工作组」 - 标明配置的 SMB 服务器所在的工作组。



    窍门


      

    要在安装结束后改变你的验证配置,请使用 authconfig 命令。


    在 shell 提示下键入 authconfig 命令。 如果你不是根用户,它会提示你输入根口令再继续

    软件包组的选择


    当分区被选定并被配置格式化后, 你便可以选择要安装的软件包了。



    注记


      

    除非你选择的是定制安装,安装程序将会自动为你选择多数软件包。



    你可以选择根据功能归类的软件包组(譬如,X 窗口系统、编辑器); 单个软件包;或者两者的组合。  


    要选择一个软件包组,点击它旁边的复选箱(参见 图 3-25)。




    图 3-25. 软件包组的选择


    选择每个你想要安装的软件包组。在定制安装中选择「全部」(在组件的结尾处) 会安装包括在 Red Hat Linux 中的所有软件包。  


    选定了软件包组后,点击「细节」来查看哪些软件包会被默认安装, 以及在该组中添加或删除可选软件包。  




    图 3-26. 软件包组细节


    要选择单个软件包,在屏幕底部的「选择单个软件包」复选箱内打勾。


    选择单个软件包


    选定了你想安装的软件包组后,你可以用鼠标选择或取消选择单个软件包(参见 图 3-27)。


    你可以在「树形视图」或 「平面视图」 中查看单个软件包。  


    「树形视图」允许你查看按照应用程序类型分类的软件包。  


    「平面视图」允许你在屏幕右侧查看按字母顺序列表的全部软件包。  




    图 3-27. 选择单个软件包


    使用「树形视图」,你会看到一个软件包组的列表。 当你扩展这个列表(通过双击软件包组名称旁的文件夹箭头)来挑选一个组时, 该组内的软件包列表会出现在右侧的面板内。 「平面视图」 允许你在屏幕右侧看到按字母顺序列表的全部软件包。  


    要按字母顺序给软件包排序,点击「软件包」标签。 要按大小给软件包排序,点击「大小 (MB)」标签。


    要选择一个单个软件包,双击软件包名称旁的复选箱。箱内的符号意味着该软件包已被选。


    要了解某一指定软件包的详情,点击该软件包的名称。 关于它的信息将会在屏幕底部出现。


    你还可以选择或取消选择在某一组内列出的所有软件包, 方法是,点击「选择全组 」或「取消选择全组」按钮。



    注记


      

    某些软件包(如内核和某些库)是每个系统所必须的, 它们不能被选择或被取消选择。这些基础软件包是被默认选定的。  



    未解决的依赖关系


    为了能够正常运行,许多软件包要依赖于必须要安装在你的系统上的其它软件包。例如,许多图形化 Red Hat 系统管理工具需要 python 和 pythonlib软件包。 要确定你的系统已安装了所有所需的软件包以便正常运行,安装程序在每次你安装或删除软件包时, 都会检查这些软件包的依赖关系(dependencies) 。  


    如果任何软件包需要一个你没有选择安装的软件包,安装程序会把这些未解决的依赖关系在你面前列出, 从而给你一个解决的机会(参见 图 3-28)。


    只有在你已选择的软件包缺少其所需软件包时,「未解决的依赖关系」 屏幕才会出现。 在屏幕底部所缺软件包的列表之下, 一个 「安装软件包以满足依赖关系」 查对箱 默认被选。如果你保持查对箱的被选状态,安装程序将会 把所有需要的软件包添加到已选软件包列表中,从而自动解决 依赖关系。




    图 3-28. 未解决的依赖关系


    如果你不想安装需要这些软件包的软件包,选择「不要安装需满足依赖关系的软件包 」。


    要只安装你选择的软件包,而不解决依赖关系,选择「忽略软件包依赖关系」。



    窍门


      

    要在安装结束后安装或删除软件包,使用 软件包管理工具。


    在 shell 提示下键入 redhat-config-packages 命令来启动 软件包管理工具。如果你不是根用户,它会提示你输入根口令再继续。

    你应该看到一个为你安装 Red Hat Linux 做准备的屏幕。


    当你重新引导系统后,一份完整的安装日志可在 /root/install.log 中找到,以备今后参考。



    警告


      

    如果由于某种原因,你宁愿不继续安装进程, 这是你可以安全取消并重新引导系统的最后机会。 一旦你按下了「下一步」按钮,分区将会被写入,软件包将会被安装。 如果你想中止安装,你现在就应该在任何信息被重新写入任何硬盘驱动器之前重新引导。



    要取消安装进程,按你的计算机的重设按钮, 或者使用 [Control]-[Alt]-[Delete] 组合键来重启你的机器。

    安装软件包


    到了这一步,在所有软件包被安装之前你将不必进行任何操作(参见 图 3-29)。安装的快慢要依据你所选择的软件包数量和你的计算机的速度而定。




    图 3-29. 安装软件包

    创建引导盘


    要创建一张引导盘,在你的磁盘驱动器内插入一张空白的、 格式化了的 磁盘(请参阅 图 3-30),然后点击「下一步」。  


    强烈建议你创建一张引导盘。 如果由于某种原因,你的系统无法正确使用 GRUB、LILO、或第三方的引导装载程序来引导, 引导盘将会使你能够正确地引导你的 Red Hat Linux 系统。  


    稍候片刻后,你的引导盘将会被创建; 从磁盘驱动器中把它取出并给以明确标签。 请注意,你也可以在安装结束后再创建引导盘。 详情请参阅 mkbootdisk 的说明书页,方法是在 shell 提示后键入 man mkbootdisk 。


    如果你不想创建引导盘,请确定在点击 「下一步」 前选择合适的选项。


    如果你使用引导盘来引导你的系统 (而不是 GRUB 或 LILO) ,无论何时你对内核做了改变(包括安装一个新内核)后,请确定要创建一张新的引导盘。




    图 3-30. 创建你的引导盘

    视频卡配置


    安装程序现在将会给你一个视频卡列表,以供你选择。  


    如果你决定要安装 X 窗口系统软件包,你现在就有机会为你的系统配置一个 X 服务器。 如果你没有选择要安装 X 窗口系统软件包,请向前跳到 准备安装。


    如果你的视频卡没有出现在列表中(参见 图 3-31), 这说明 X 可能不支持它。 然而,如果你对你的视频卡有技术上的了解, 你可以选择「没有列表的卡」,然后试图通过匹配视频卡的视频芯片与 X 服务器来配置它。




    图 3-31. 视频卡设置


    下一步,输入在你的视频卡上安装的视频内存数量。 如果你不能肯定,请阅读你的视频卡文档。选择多于可用的内存不会损坏你的视频卡,但是 X 服务器 可能不会正确启动。


    如果你断定你选择的数值是不正确的, 你可以点击「恢复原值」按钮来返回到建议的设置。


    如果你宁愿安装后再配置 X 或干脆不安装, 你还可以选择「跳过 X 配置」 。



    窍门


      

    要在安装结束后改变你的 X 配置,使用 X 配置工具。


    在 shell 提示下键入 redhat-config-xfree86 命令来启动 X 配置工具。如果你不是根用户,它会提示你输入根口令再继续。

    X 配置 - 显示器和定制


    为了完成 X 配置,你必须配置你的显示器并定制你的 X 设置。


    如果你选择要跳过 X 配置,请跳到 安装完成。


    配置你的显示器


    安装程序会给你提供一个显示器列表。你既可以使用自动为你检测到的显示器,也可以在这个列表中另选一个。  



    注记


      

    如果你在一个带有 LCD 屏幕的便携电脑上安装 Red Hat Linux,你应该选择最恰当的 「通用」 型号。



    如果你的显示器没有在列表中出现,选择最恰当的「通用」 型号。 若选择「通用」显示器,安装程序会建议一个水平和垂直频率范围。 这些数值通常在你的显示器文档中可以找到,也可从你的显示器的销售商或制作商处得到。 请核对你的文档以确保这些数值被正确设置了。  



    小心


      

    除非你肯定你所选显示器不超过你所用显示器的能力, 不要选择与你的显示器 相似 的显示器。 这么做可能会使你的显示器超频从而损坏它。





    图 3-32. 显示器选择


    安装程序为你的系统建议的水平和垂直频率范围也显示在显示器列表之下。  


    如果你断定你所选的显示器或频率数值不正确,你可以点击「恢复原值」按钮来返回到建议的设置中。  


    当显示器配置完毕后,点击「下一步」。


    定制配置


    为你的 X 配置选择正确的色彩深度和分辨率。 点击 「测试设置」 来试用这个配置。 如果你不喜欢在测试中所见,点击 「否」 来选择另一种分辨率。



    注记


      

    如果你需要退出 X 配置测试, 使用 [Ctrl]-[Alt]-[Backspace] 组合键。还请注意, 在某些测试情况下,这种方法可能不会生效。



    我们建议你测试你的配置,以便确定分辨率和色彩设置的可用性。  


    你还可以选择在安装结束后,你要将系统引导入文本还是图形化环境。除非你有特殊需要, 推荐你引导入图形化环境(与 Windows 环境相似)。如果你选择要引导入文本环境, 你将会看到一个命令提示(与 DOS 环境相似)。  




    图 3-33. X 定制



    窍门


      

    要在安装结束后改变你的 X 配置,使用 X 配置工具。


    在 shell 提示下键入 redhat-config-xfree86 命令会启动 X 配置工具。如果你不是根用户, 它会提示你输入根口令再继续。

    安装完成


    祝贺你!你的 Red Hat Linux 8.0 安装现已完成!


    安装程序会提示你做好重新引导系统的准备。 如果安装介质(磁盘驱动器内的磁盘或光盘驱动器内的光盘)在重新引导时没有被自动弹出, 请记住取出它们。  


    如果你没有安装并配置一个引导装载程序,你现在将需要使用你在安装过程中创建的引导盘。


    计算机正常的通电序列完成后,你应该看到图形化的引导装载程序提示, 在这里,你可做的事如下所示:



    按 [Enter] 键 - 导致默认的引导项目被引导。


    选择一个引导卷标,接着按 [Enter] 键 - 导致引导装载程序引导与该引导卷标相对应的操作系统。 (在 LILO 的文本模式引导装载程序的提示下按 [?] 或 [Tab] 键 可得到一个有效的引导卷标的列表。)


    什么都不做 - 引导装载程序的超时时间过后(默认为五秒),引导装载程序将会自动引导默认的引导项目。


    做恰当的选择来引导 Red Hat Linux。 你应该看到一行一行的信息往上卷。 最终,你应该看到一个 login: 提示或 GUI 登录屏幕 (如果你安装了 X 窗口系统并选择要自动启动它的话)。  



    窍门


      

    如果你不能确定下一步该做什么,我们建议你 阅读 《正式版 Red Hat Linux 入门指南》(如果你的盒装产品中没有包括的话, 你可在以下网址上查看:http://www.redhat.com/docs/)。 该指南涉及到有关系统基础的课题, 是对使用 Red Hat Linux 的全面介绍。  


    如果你是一名有经验的用户,想寻求一些在管理课题方面的信息, 你会发现《正式版 Red Hat Linux 参考指南》对你较有帮助。


    如果你要寻求在系统配置方面的信息,你会发现《正式版 Red Hat Linux 定制指南》 对你较有帮助。
     楼主| 发表于 2003-1-12 10:17:17 | 显示全部楼层

    附录 A. 给你目前的系统升级

    这个附录引导你通过一个典型的 Red Hat Linux 8.0 升级。


    升级意味着什么


    Red Hat Linux 8.0 的安装进程包括从 基于 RPM 技术的 Red Hat Linux 版本(6.2 及更新)升级的能力。  


    升级你的系统会安装模块化的 2.4.x 内核以及你的系统中已安装软件包的更新版本。


    升级进程通常保留现存的配置文件,它给这些文件分别添加了 .rpmsave 扩展名(例如, sendmail.cf.rpmsave)。升级进程还在 /root/upgrade.log 日志中记录了它的行动。 随着软件的发展,配置文件的格式也会改变,因此你应该在整合改变之前仔细地比较原始配置文件和新文件。


    某些升级的软件包可能需要安装其它软件包以便正常运行。 如果你选择来定制要升级的软件包,你可能需要解决依赖关系的问题。 否则,升级进程会自行解决依赖关系,但是,它可能会需要安装你的系统上没有的软件包。


    依据你的系统分区情况而定,升级程序可能会提示你额外添加交换文件。 如果升级程序无法检测到一个相当于你的内存两倍的交换文件,它会询问你是否要添加一个新的交换文件。 如果你的系统没有足够的内存(小于 32 MB),推荐你添加这个交换文件。

    给你的系统升级


    到了这一步,你应该已经选择了 「升级」 作为你想用的安装类型(参见 图 A-1)。




    图 A-1. 选择安装或升级

    升级你的文件系统



    注记


      

    这个部分只与从 Red Hat Linux 7.1 或更早的版本中执行升级, 或从 ext2 被选为文件系统的 Red Hat Linux 7.2 或 7.3 版本中安装的用户有关。



    如果安装程序在你的 Red Hat Linux 系统上检测到 ext2 文件系统,你可以选择保留你目前的 ext2 文件系统或迁移到 ext3 文件系统。


    下面是对 ext2 和 ext3 文件系统,以及它们的用途的简单描述。



    「ext2」 - ext2 文件系统支持标准的 Unix 文件类型(常规文件、目录、符号链接、等等)。 它提供了分派可以长达 255 个字符的长文件名的能力。在 Red Hat Linux 8.0 之前的版本默认使用 ext2 文件系统。


    「ext3」 - ext3 文件系统是建立在 ext2 文件系统基础上的,它有一个主要优点 - 记帐。使用一个记帐的文件系统降低了文件系统崩溃后恢复的时间,因为没必要使用 fsck[1]来检查文件系统。


    我们推荐你,但并不要求你,选择迁移到 ext3 文件系统。


    如果你选择要迁移到 ext3 文件系统,现存的系统数据将不会被修改。





    [1]

    fsck 程序用来检查(还可修复) 一个或多个 Linux 文件系统。


    定制你的升级


    你想自己选择要升级的软件包还是让安装程序执行自动升级? (参见 图 A-2)




    图 A-2. 升级定制


    要执行自动升级,点击 「下一步」。


    要为你的升级定制软件包,选择 「定制要升级的软件包」 选项,然后点击 「下一步」 (参阅 升级软件包)。

    引导装载程序配置


    引导装载程序软件被用来在你的计算机上启动 Red Hat Linux。 它还能启动其它操作系统,如 Windows。如果你使用的是 Red Hat Linux 引导装载程序软件(GRUB 或 LILO),它会被自动检测到。




    图 A-3. 升级引导装载程序配置


    在「引导装载程序配置屏幕」上,你的选项有:


    「升级引导装载程序配置」 - 选择这个选项来保留你目前的引导装载程序配置(GRUB 或 LILO,依你目前安装的而定)然后应用更新。


    「跳过引导装载程序更新」 - 如果你不想改变你目前使用的引导装载程序配置,选择这个选项 。 如果你使用的是第三方引导装载程序,你将会需要跳过引导装载程序更新。


    「创建新的引导装载程序配置」 - 如果你想为你的系统创建一个新的引导装载程序,选择这个选项。 如果你目前装有 LILO 并想转换成 GRUB,或者如果你一直在使用引导盘来引导你的 Red Hat Linux 系统, 但想使用一个引导装载程序软件如 GRUB 或 LILO,你将需要创建一个新的引导装载程序配置 (详情请参阅 创建一个新的引导装载程序配置)。


    一旦你已做出选择,点击 「下一步」 来继续。


    创建一个新的引导装载程序配置


    为了要不使用引导盘来引导你的系统,你通常需要安装一个引导装载程序。 引导装载程序是计算机启动时所运行的第一个软件, 它的责任是载入操作系统内核软件并把控制转交给它, 然后,内核软件再来初始化剩余的操作系统。


    安装程序为你提供了两个引导装载程序:GRUB 和 LILO。


    GRUB (GRand Unified Bootloader) 是一个默认安装的功能强大的引导装载程序。 GRUB 能够通过连锁载入另一个引导装载程序来载入多种免费和专有操作系统 (连锁载入是指通过载入另一个引导装载程序来载入 DOS 或 Windows 等不支持的操作系统的机制)。


    LILO (LInux LOader) 是用于 Linux 的灵活多用的引导装载程序。 它并不依赖于某一特定文件系统,能够从软盘和硬盘引导 Linux 内核映像, 甚至能引导其它操作系统。


    如果你不想把 GRUB 装为引导装载程序,点击 「改变引导装载程序」。然后,你便可以选择安装 LILO 或干脆不安装引导装载程序。


    如果你目前已有一个能够引导 Linux 的引导装载程序, 并且不打算覆盖当前使用的引导装载程序,或者打算使用引导盘来引导系统, 点击「改变引导装载程序」按钮来选择 「不安装引导装载程序」。



    小心


      

    如果你由于某种原因要不安装 GRUB 或 LILO, 你将无法直接引导系统,你得使用另一种引导方法(如引导盘)。 只有当你确定另有引导系统的方法时才使用该选项!  





    图 A-4. 引导装载程序配置


    每个可引导分区都被列出,包括被其它操作系统使用的分区。 包含你的系统根文件系统的分区将有一个Red Hat Linux (GRUB)或 linux(LILO)「标签」。 其它分区也可以有引导标签。如果你想添加或改变其它被安装程序检测到的分区的标签, 单击该分区来选择它,选定后,你可以点击 「编辑」 按钮来改变引导标签。  


    在你想要的引导分区旁边选择 「默认」 来选择你默认的可引导 OS。 你选定了默认引导映像后,安装才会继续。



    注记


      

    「标签」 列中列出的信息是你要引导需要的操作系统所必须在非图形化引导装载程序的引导提示下输入的信息。


    一旦你已载入 GRUB 引导屏幕,使用箭头键来选择引导标签, 键入 [e] 来编辑。你将会面对你所选择的引导标签的配置文件中的项目列表。


    在图形化的 LILO 屏幕,按 [Ctrl]-[x] 来退回到 boot: 提示。如果你忘记了在你的系统中定义的引导标签, 你可以随时在提示下按 [Tab] 键来显示一个定义的引导标签的列表。



    引导装载程序口令在能够物理存取你的服务器的环境中为你提供了一种安全机制。


    如果你打算安装引导装载程序,你应该创建一个口令来保护你的系统。 若没有引导装载程序口令,能够访问你的系统的用户将可以向内核传递选项,从而 损害你的系统安全性;若使用了引导装载程序口令,用户必须先输入口令才能选择非标准的引导选项。  


    如果你选择要使用引导装载程序口令来增进你的系统安全性, 请确定选择标为「使用引导装载程序口令」的复选箱。  


    一旦选毕,输入口令并确认。


    要配置更高级的引导装载程序选项,如改变驱动器顺序或向内核传递选项, 请在点击「下一步」前确定选择 「配置高级引导选项」。


    高级引导装载程序配置


    现在,你已选定了要安装的引导装载程序,你还可以决定要在哪里安装引导装载程序。 你可以在下面两个位置之一安装引导装载程序:  


    主引导记录 (MBR)

    这是我们推荐安装引导装载程序的地方, 除非 MBR 已经在启动另一个操作系统的引导装载程序,如 System Commander。 MBR 是你的硬盘驱动器上的一个特殊地区,它会被你的计算机的 BIOS 自动载入,并且是引导装载程序控制引导进程的最早地点。 如果你在 MBR 上安装引导装载程序,当你的机器引导时, GRUB(或 LILO)会呈现一个引导提示。 然后你便可以引导 Red Hat Linux 或其它任何你配置要引导的操作系统。  

    你的引导分区的第一个扇区

    如果你已在你的系统上使用另一个引导装载系统的话,我们推荐这个位置。 在这种情况下,你的另外的引导装载系统会首先取得控制权。 然后你可以配置它来启动 GRUB(或 LILO),继而引导 Red Hat Linux。  




    图 A-5. 引导装载程序安装


    如果你的系统只将使用 Red Hat Linux ,你应该选择 MBR。 对于带有 Windows 95/98 的系统来说,你也应该把 引导装载程序安装到 MBR,因此它可以引导你的两个操作系统。  


    如果你想重新排列驱动器顺序,点击 「改变驱动器顺序」 按钮。如果你有多个 SCSI 适配器或者兼有 SCSI 和 IDE 适配器,并想从 SCSI 设备中引导,改变驱动器顺序可能会发挥作用。


    「强制使用 LBA32 (通常不需要)」 选项允许你的 /boot 分区超过 1024 柱面限制。 如果你的系统支持使用 LBA32 扩展来引导超过 1024 柱面限制的操作系统, 并且你想把 /boot 分区放置在 1024 柱面之外,你应该选择该选项。


    如果你想给引导命令添加默认选项,请把它们输入到 「内核参数」 字段中。你输入的任何选项将会在每次引导时被传递给 Linux 内核。


    救援模式


    如果你需要使用救援模式,有几个选项可供你选择。



    使用光盘来引导,在boot: 提示下键入 linux rescue。  


    通过由 boot.img映像制作的安装引导盘来引导你的系统。 这种方法要求你插入 Red Hat Linux 的第一张光盘作为救援映像或在硬盘上为 ISO 映像的救援映像。 一旦你用这个磁盘引导了,在boot: 提示下 键入 linux rescue。


    通过由bootnet.img制作的 网络引导盘或由pcmcia.img制作的 PCMCIA 引导盘来引导。 一旦你用这个磁盘引导了,在boot: 提示下 键入 linux rescue。你只有在联网时才能这么做。 你将会需要识别网络主机和传输类型。关于如何指定这些信息的解释,请参阅 网络安装的筹备工作 在 第3章 。


    关于救援模式的详情,请参阅 《正式版 Red Hat Linux 定制指南》。


    其它可选的引导装载程序


    如果你不想使用引导装载程序,你有其它几种选择:  


    引导盘

    你可以使用由安装程序创建的引导盘(如果你制作了一个的话)。  

    LOADLIN

    你可以从 MS-DOS 中载入 Linux。 不幸的是,这需要在 MS-DOS 分区上有一份 Linux 内核(以及一个初始 RAM 磁盘,如果你有一个 SCSI 适配器的话)。 达到这一目的的唯一方法是使用其它方法(譬如引导盘)来引导你的 Red Hat Linux系统, 然后将内核复制到 MS-DOS 分区。 LOADLIN 在下面的网页以及相关的镜像网站中可以找到:


    ftp://metalab.unc.edu/pub/Linux/system/boot/dualboot/  


    SYSLINUX

    SYSLINUX 是一个和 LOADLIN 很相似的 MS-DOS 程序。 它也在以下网页以及相关网站中可以找到:


    ftp://metalab.unc.edu/pub/Linux/system/boot/loaders/  


    商用引导装载程序

    你可以使用商用引导装载程序来载入 Linux。 例如,System Commander 和 Partition Magic 能够引导 Linux (但仍需要在你的 Linux 根分区安装 GRUB 或 LILO)。



    注记


      

    LOADLIN 和 System Commander 之类的引导装载程序被当作第三方引导装载程序对待, 它们不被 Red Hat 支持。



    SMP 母板,GRUB,和 LILO


    这个部分只与 SMP 母板有关。SMP 是对称多重处理 (Symmetric Multiprocessing)的简写, 它是一个通过多个 CPU 同时完成单独进程(多重处理)来提供快速性能的计算机体系。


    如果安装程序检测到你的系统上有 SMP 母板, 它会自动创建两个引导装载程序项目(根据你安装的引导装载程序而定), 而不是通常的一个项目。  



    注记


      

    带有超线程的 Intel17Pentium174 系统将会默认安装 SMP 内核。



    在 grub.conf 中的两个 GRUB 项目将会是 Red Hat Linux (kernel version) 和 Red Hat Linux (kernel version-smp)。 Red Hat Linux (kernel version-smp) 将会被默认引导。 然而,如果你在使用 SMP 内核时遇到困难,你可以选择引导 Red Hat Linux (kernel version) 项目。 你会保留所有像从前一样的功能,但是你将只能使用单个处理器来操作。  


    在 lilo.conf 中的两个 LILO 项目将会是 linux 和 linux-up。 linux 项目将会被默认引导。 然而,如果你在 SMP 内核中遇到困难,你可以选择引导 linux-up 项目。 你保留所有会像从前一样的功能,但是你将只能使用单个处理器来操作。

    选择要升级的软件包


    在这个屏幕上,你可以选择你想升级哪些软件包(参见 图 A-6)。


    你可以选择在 「树形视图 」 或 「平面视图」 中查看单个软件包。  


    「树形视图」 允许你查看按照应用程序类型归类的软件包。  


    「平面视图」 允许你在屏幕右侧查看按照字母顺序列出的全部软件包。  


    使用 「树形视图」,你会看到一个软件包组的列表。 当你扩展这个列表(双击软件包组名称旁的文件夹箭头)来挑选其中一组时, 该组内的软件包列表就会按照字母顺序出现在屏幕的右侧。  


    要按字母顺序给软件包排序,点击 「软件包」 标签。 要按大小给软件包排序,点击 「大小 (MB)」 标签。


    要选择单个软件包,点击软件包名旁边的复选箱。 箱内的符号意味着该软件包已被选。


    关于某个指定软件包的详情,点击该软件包名,关于它的信息就会出现在屏幕底部。


    你还可以选择或取消选择在某一组内列出的所有软件包。 方法是,点击 「选择全组 」 或 「取消选择全组」 按钮。


    某些软件包(如内核和某些库)是每个 Red Hat Linux 系统所必需的,它们不能被选择或被取消选择。 这些基础软件包是被默认选定的。




    图 A-6. 选择单个软件包


    未解决的依赖关系


    如果任何软件包需要一个你没有选择安装的软件包,安装程序会把这些 未解决的依赖关系(unresolved dependencies)在你面前列出, 从而 给你一个解决的机会(参见 图 A-7)。


    只有在你的定制软件包选择缺少其所需软件包时, 「未解决的依赖关系」 屏幕才会出现。


    在屏幕底部所缺软件包的列表之下,「安装软件包以满足依赖关系」 单选按钮 默认被选。如果你保持单选按钮的被选状态,安装程序将会把所有需要的软件包添加到已选软件包列表中, 从而自动解决依赖关系。




    图 A-7. 未解决的依赖关系


    如果你不想安装需要这些软件包的软件包,选择 「不要安装需满足依赖关系的软件包 」。


    要只安装你所选择的软件包,而不解决依赖关系,选择 「忽略软件包依赖关系」。



    窍门


      

    要在安装结束后安装或删除软件包,使用 软件包管理工具。


    在 shell 提示下键入 redhat-config-packages 命令来启动 软件包管理工具。如果你不是根用户,它会提示你输入根口令再继续。
    升级软件包


    到了这一步,在所有的软件包都被升级或安装前,你不必进行任何操作(参见 图 A-8)。




    图 A-8. 安装软件包

    创建引导盘


    要创建一张引导盘,在你的磁盘驱动器内插入一张空白的、格式化了的 磁盘(参见 图 A-9)然后点击 「下一步」。  


    强烈建议你创建一张引导盘。 如果由于某种原因, 你的系统无法正确使用 GRUB、LILO、或第三方的引导装载程序来引导, 引导盘将会使你能够正确地引导你的 Red Hat Linux 系统。  


    片刻后,你的引导盘将会被创建;从磁盘驱动器中把它取出并注以明确标签。 请注意,你也可以在安装后创建引导盘。详情参见 mkbootdisk 的说明书页,方法是 在 shell 提示后键入 man mkbootdisk 。  


    如果你不想创建引导盘,请确定在点击 「下一步」 之前选择恰当的选项。


    如果你使用引导盘来引导你的系统 (而不是 GRUB 或 LILO) ,无论何时你对内核做了改变(包括安装一个新内核)后, 请确定要创建一个新的引导盘。  




    图 A-9. 创建引导盘

    升级完成


    祝贺你!你的 Red Hat Linux 8.0 升级现已完成!


    你现在将会被提示做好重新启动系统的准备。如果在重新启动时介质没有被自动弹出, 不要忘记从软盘驱动器中取出磁盘,或从光盘驱动器中取出光盘。 如果你没有安装并配置引导装载程序,你现在将会需要使用你的引导盘。  



    窍门


      

    如果你需要快速温习一些基本的 Red Hat Linux 概念,请阅读 《正式版 Red Hat Linux 入门指南》。


    关于系统配置和管理的信息,请参阅 《正式版 Red Hat Linux 定制指南》 以及 《正式版 Red Hat Linux 参考指南》

    附录 B. 删除 Red Hat Linux


    要从你的系统中卸装 Red Hat Linux ,你将需要从你的主引导记录(MBR) 中删除有关 GRUB 或 LILO 的信息。  


    在 DOS、NT、和 Windows 95 系统中,你可以使用 fdisk 来创建一个新的带有 undocumented 标志 /mbr 的 MBR。 这将会 只 重写 MBR 以便引导主 DOS 分区。 这个命令看起来应如下:  


    fdisk /mbr


    如果你需要从一个硬盘驱动器中删除 Linux ,并且已经试图用 默认的 DOS fdisk 来这么做,你将会 经历到 "分区存在但又不存在" 的问题。要删除非 DOS 分区的最好办法是使用一个理解分区而不单是 DOS 的工具。  


    你可以用安装介质来达到这一目的,只需在boot: 提示下键入 linux expert :  


    boot: linux expert


    选择安装(与升级相对),并在你应该给驱动器分区的地方 选择 fdisk。在 fdisk 中,键入 [p] 来打印出 分区号码,然后用[d] 命令来删除 Linux 分区。 当你对所做改变满意后,你可以用[w] 命令来退出, 这些改变就会被储存到磁盘中。如果你删除了太多,键入 [q] 命令,这将不会做任何改变。  


    当你删除 Linux 分区结束后,你可以用 [Control]-[Alt]-[Delete] 来重新引导系统,而无需继续安装。

    附录 C. 获取技术支持


    记住来注册


    如果你有一个 Red Hat Linux 8.0 正式版以及(或者)一个 Red Hat OEM 伙伴套件,请记住来注册以获取作为一名 Red Hat 的顾客所应得的利益。



    注记


      

    关于 Red Hat 的技术支持人员 能够如何协助你的详情, 请访问以下网页来阅读服务级别协议:


    http://www.redhat.com/support/sla/



    根据你购买的 Red Hat Linux 正式版的产品类型而定,你可以获取的权益如下:



    Red Hat 的官方支持 - 可从 Red Hat 的支持 组 获得有关对安装问题的帮助 。


    Red Hat 网络 - 可以简易地更新你的软件包,并使你能够接收到为你系统定制的安全通知。 要知详情,请访问:


    http://rhn.redhat.com


    Under the Brim:The Official Red Hat E-Newsletter - 每个月,你可从 Red Hat 直接获得最新的新闻和产品信息。


    要注册,请访问:


    http://www.redhat.com/apps/activate/


    你会在你的正式版 Red Hat Linux 盒装产品内的注册信息卡上找到你的 产品 ID (Product ID)。

    Red Hat 支持总览


    Red Hat 为正式版的 Red Hat Linux 盒装 产品提供 安装协助 并包含在单个计算机上的安装协助。 提供这些协助的目的是来帮助顾客成功地安装 Red Hat Linux。 对安装的协助是通过电话、网站来提供的。注意,电话支持只适用于某些 Red Hat Linux 产品。 请检查你的盒装产品 以确定你可以利用的支持类型。


    Red Hat 支持将会试图回答你在安装进程开始之前可能会遇到的问题。根据你购买的产品类型而定, 这些问题可能会是:



    硬件兼容性的问题


    基本的硬盘驱动器分区策略


    Red Hat 技术支持能够提供下列对安装进程中的协助:



    从被支持的光盘驱动器上安装 Red Hat Linux  


    协助配置 Red Hat Linux 以便在认证的或兼容的硬件上使用。 详情请参阅 http://hardware.redhat.com


    对硬盘驱动器分区的协助,譬如,推荐分区配置或帮助配置硬盘驱动器分区表。  


    使用 Liunx 引导装载程序 GRUB 或 LILO 来配置 Red Hat Linux 和 Windows 9x、ME、NT、或 2000 以便能够双引导(请注意, 我们不支持第三方引导装载程序及分区软件)


    为用于指定任务的系统推荐设置它所需的最重要的软件包


    我们还可以在基本的安装后任务方面帮助你,例如:



    配置 X 窗口系统


    配置本地打印机来打印文本  


    改变打印选项


    配置鼠标


    本地 X 窗口系统配置


    改变窗口管理器或窗口环境



    窍门


      

    「Red Hat Linux 按需支持」


    对于个人和小单位来说, Red Hat 的按需支持为你的 Red Hat Linux 系统提供了经济灵活的支持。在你的 Red Hat Linux 正式版本所附带的支持过期后, 或者你的 Red Hat Linux 是下载而来的,按需支持会通过电话向你提供安装协助。


    请参阅 http: //www.redhat.com/services/techsupport/production/incident.html 来获得有关详情。



    我们提供的安装协助服务的意图是使 Red Hat Linux 能够在你的系统上尽可能简单快速地运行。 然而,你可能还想在你的 Red Hat Linux 系统上做好多其它工作,从编译定制的内核到 设置万维网 服务器(我们不提供协助)。  


    关于这些任务的协助,你可以从大量的在线资料中获得。这些资料包括 HOWTO 文档、 Linux 相关的网站、以及商业出版物。各类 Linux HOWTO 文档已被包括在 Red Hat Linux 文档光盘的 /HOWTOS 目录中。 所提供的 HOWTOS 是文本文件,因此能够在 Red Hat Linux 和其它操作系统内被简易地读取。


    你还可以使用大量 Linux 相关的网站。搜寻关于 Red Hat Linux 的最佳起点是 Red Hat, Inc. 网站:


    http://www.redhat.com/


    许多 Linux 相关的书籍也可以被利用。如果你新近才接触到 Linux, 一本涉及 Linux 基本知识的书籍将会对你价值非浅。我们可以向你推荐几本: 《正式版 Red Hat Linux 入门指南》; 《Using Linux》, 作者 Bill Ball; 《Linux Clearly Explained》, 作者 Bryan Pfaffenberger; 《Linux for Dummies》, 作者 Jon "maddog" Hall;以及 《Learning Red Hat Linux》, 作者 Bill McCarty。


    Red Hat 还提供各类基于事件的支持计划以便 对安装协助中没有包括的配置问题和任务给予协助。 详情请参见 Red Hat 技术支持网站:


    http://www.redhat.com/support/

    Red Hat 技术支持的范围


    Red Hat, Inc. 只能够向购买了正式版 Red Hat Linux 盒装产品以及(或者)正式版 Red Hat OEM 伙伴套件的顾客提供安装协助。如果你从其他公司获得了 Linux,你必须联系该公司以获得支持。其他公司包括:



    Macmillan


    Sams/Que


    Linux Systems Labs (LSL)


    Mandrake


    CheapBytes


    除此之外,通过以下方法获得的 Red Hat Linux 也没有资格从 Red Hat 得到支持:



    Red Hat Linux PowerTools 归档


    通过 FTP 在互联网中下载的


    包括在如同 Motif 或 Applixware 的包中的


    从其他用户的光盘中复制的或安装的


    包括在一本 Linux 书籍或其它出版物中的 一个(或一组)光盘。

    如何获取技术支持


    为了得到对你的正式版 Red Hat 产品的技术支持, 你必须在 Red Hat 网站中注册你的产品。


    每个正式版 Red Hat 产品都有一个产品标识代码: 一个 16 个字符的字母数字混合的字串。 Red Hat Linux 8.0 的产品 ID 位于注册信息卡中。此卡可在盒中找到。



    注记


      

    不要把带有你的产品 ID 的卡扔掉。你必须有产品 ID 才能获得技术支持。 如果你丢失了证书,你可能得不到支持。



    产品 ID 是使你能够得到技术支持及其它从 Red Hat 购买的服务或利益(依你购买的产品而定)的代码。


    注册以获取技术支持


    要注册以获得技术支持,你必须:



    在下列网址中创建一个顾客档案:


    http://www.redhat.com/apps/activate/


    你可能已经完成了这一步骤,如果是这样,继续到下一步骤。


    使用你在顾客档案过程中创建的登录名和口令,请在下面的网址中登录到 Red Hat 技术支持网站:


    http://www.redhat.com/support


    如果你已创建了一个新顾客档案,在你激活产品之后, 你就会看到一个显示你所注册的产品的网页。这一页还有一个 按钮,「访问万维网支持」, 它会把你引入支持网页。


    如果有必要,更新你的联系信息。



    注记


      

    如果你的电子邮件地址不正确, 关于你的技术支持请求的通信将无法被寄发给你,而且你将无法通过电子邮件来检索你的登录名和口令。 请确定你给我们的电子邮件地址是正确的。



    如果你担心你的个人隐私权,请在以下网址查看 Red Hat 的隐私声明:


    http://www.redhat.com/legal/privacy_statement.html


    在你的档案中添加一个产品。请输入以下信息:



    你的盒装产品的产品 ID


    支持证书号码或授权号码(如果产品是合同的话)


    设置你的顾客偏好选项。


    回答顾客问卷(可选)。


    提交表格。


    如果前几个步骤都成功地完成了,现在你就可以在以下网页登录:


    http://www.redhat.com/support


    然后开启一个新技术服务请求。不过,你必须仍旧使用你的产品 ID 来通过电话获得技术支持 (如果你购买的产品带有电话支持的话)。当通过电话来联系技术支持组的时候,你还会被问到你的登录名。

    技术支持的问题


    技术支持既是一门科学,也是一种神秘的艺术。 在多数情况下, 提供支持的技术人员必须依赖于顾客观察,以及与顾客的通讯来诊断和解决问题。 因此,你陈述和报告问题时尽可能做到清晰详细是极端重要的。你应该包括的内容应如下列举:



    问题的症状(例如:"Linux 无法进入我的光盘驱动器。当它试图进入时,就出现超时错误。")


    问题从什么时候开始的(例如:"我的系统一直工作正常,直到昨天我的地区被闪电暴雨袭击后。")


    你对你的系统所做的任何改变(例如:"我添加了一个新硬盘驱动器, 然后使用 Partition Wizzo 来添加 Linux 分区。")


    其它与你的情况有关的信息,例如安装方法(光盘、NFS、HTTP)


    可能与你的问题有关的指定硬件设备 (例如:如果你无法设置联网,你的网卡是哪一类型的?)


    如何提交支持问题


    请在以下网页登录:


    http://www.redhat.com/support


    然后开启一份新服务请求,或者打电话来获得支持。 如果你的产品带有电话支持, 或者你购买了一份电话支持合同,你所需的电话号码会在注册的过程中向你提供。


    关于使用 Red Hat 在线支持系统的详情,请访问:


    http://www.redhat.com/support/services/access.html


    附录 D. 安装 Red Hat Linux 的故障排除


    该附录讨论一些常见的安装问题以及它们的解决办法。


    你无法引导 Red Hat Linux


    你无法从光盘中引导吗?



    注记


      

    在某几种情况下,系统 BIOS 将不会允许 Red Hat Linux 光盘引导, 原因是光盘上的引导映像的大小问题。 在这种情况下,应制作一个引导盘来引导 Red Hat Linux。 一旦引导成功,光盘可被正确用在安装工作中。



    如果你无法从 Red Hat Linux 光盘引导,你有两种选择:



    你可以改变你的 BIOS 设置,因此从光盘中引导会在引导顺序中最先识别,或者


    用你已制作的引导盘来引导。


    要改变你的 BIOS 设置,请参阅你的系统说明书以获得正确的能够允许你访问 BIOS 的键盘组合, 或者你可以在系统刚开始引导时读取所需的键序列。


    要制作一张引导盘,请遵循 制作安装磁盘 在 第1章 中的说明。


    要用引导盘引导 Red Hat Linux ,把你制作的磁盘插入软盘驱动器, 然后引导或重新引导你的计算机。请确定你的 BIOS 的设置是使用软盘或可移磁盘(A:)来引导。


    你无法从本地引导盘引导吗?


    如果你在使用本地引导盘来引导系统时经验到困难,你也许需要一张更新过的引导盘。


    请查阅以下网址


    http://www.redhat.com/support/errata


    来获得更新的磁盘映像(若有),然后按照 制作安装磁盘 在 第1章 的说明来为你的系统制作一张更新的引导盘。


    你无法从 PCMCIA 引导盘引导吗?


    如果你在使用 PCMCIA 引导盘引导系统时遇到困难,你也许需要一张更新过的引导盘。


    请查阅在线勘误以获得更新的磁盘映像(若有), 然后按照所提供的说明为你的系统制作一张更新的引导盘。


    你的系统显示了信号 11 错误吗?


    如果你在安装中接收到一个致命的信号 11 错误, 它可能是由于你的系统总线内存的硬件错误。内存的硬件错误可能会被可执行文件中的问题导致, 或是由于系统的硬件问题。 如同其它的操作系统, Red Hat Linux 对你的系统硬件也有它自己的要求。 某些硬件可能无法满足这些要求,即便它们在其它操作系统下运行正常。


    查看一下你是否具有来自 Red Hat 的最新安装及附加引导盘。 重温一下在线勘误以确定是否有可用的更新版本。如果最新的映像仍不成功, 它可能是你的硬件问题导致的。通常,这些错误是在你的内存 或 CPU 缓存中。 对这个错误的一个可能解决方法是在 BIOS 中 关闭 CPU 缓存。 你还可以试着在母板插槽中把内存调换一下, 这可以确定该问题是关于插槽的还是关于母板的。


    关于信号 11 错误的详情,请参阅:


    http://www.bitwizard.nl/sig11/


    你无法从网络引导盘引导吗?


    如果你在使用网络引导盘来引导系统时遇到困难,你也许需要一张更新过的引导盘。


    请查阅在线勘误以获得更新的磁盘映像(若有), 然后按照所提供的说明为你的系统制作一张更新的引导盘。

    安装起始部分的问题


    使用 PCMCIA 引导盘遇到问题了吗?


    如果你使用 PCMCIA 引导盘来引导,并想通过 FTP (或 NFS,或 HTTP) 来安装,但是你却看不到这些安装选项,你的网卡可能有问题。


    如果网卡在引导过程中没有被初始化,Red Hat Linux 安装程序将无法使你 能够配置你的系统以便在网络中使用, 无论是安装中还是安装后。


    检查硬件兼容性列表的网址是:


    http://hardware.redhat.com/hcl/  


    从以上网址中可查看你的网卡是否兼容并(或)被支持。 如果你的网卡不在列表中,它可能与 Red Hat Linux 不兼容。


    没有检测到你的鼠标吗?


    如果「没有检测到鼠标」屏幕 (参见 图 D-1)出现了, 这说明安装程序无法正确地识别你的鼠标。


    你可以选择继续 GUI 安装,或者使用不需鼠标的文本模式安装。 如果你选择要继续 GUI 安装,你将需要向安装程序提供你的鼠标配置信息。 (参阅 鼠标配置 在 第3章 )。




    图 D-1. 没有检测到鼠标


    引导入图形化安装遇到问题


    某些视频卡无法在 Red Hat Linux 安装程序中正确运行。结果会在引导入图形化安装程序时出现问题。  


    如果安装程序无法使用它的默认设置来运行, 它将会在低度分辨率模式中运行。如果这不成,安装程序将在文本模式中运行。  


    那些视频卡不能在 800 x 600 分辨率下运行的用户, 应该在 boot:提示下键入 lowres 以便使用 640 x 480 分辨率运行安装程序。

    安装过程中的问题


    创建分区的问题


    如果你在创建分区时遇到问题(如,/ 分区), 请确定你已把分区类型设为 Linux Native。


    除非你的 BIOS 另有支持,请确定 /boot 分区不超过 1023 柱面头。 否则,你的安装程序可能不会允许你创建一个 /boot 或 / 分区。 某些新系统允许你超过 1023 这个限度(GRUB 和新版的 LILO 可用), 但是多数带有老式 BIOS 的系统不会允许你这么做。


    使用剩余空间


    你已创建了一个 交换分区 和一个 / (根)分区,而且你已经选择了要让根分区使用剩余空间,但是它却没有填满整个硬盘。


    如果你的硬盘大于 1024 个柱面,你必须创建一个 /boot 分区才能使 / (根)分区使用你的硬盘上的所有剩余空间。


    其它分区问题


    如果你使用 Disk Druid 来创建分区, 但是无法移到下一屏幕,你可能还没有创建所有满足 Disk Druid 的依赖关系所必需的分区。


    你至少需要有以下分区:



    一个类型为 Linux native 的 /boot 分区


    一个类型为 Linux native 的 / (根) 分区


    一个类型为 Linux 交换区的 <交换> 分区



    窍门


      

    当把分区类型定义为 Linux 交换区时,你不必给它分派挂载点。 Disk Druid 为你自动分派挂载点。



    你看到 Python 错误了吗?


    在某些 Red Hat Linux 的 升级或 安装中,安装程序 (又称 Anaconda) 可能会失败,并出现一个 Python 或 traceback 错误。这可能会在选择了单个软件包后发生, 也可能会在试图把升级日志储存到 /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 自从创建以来已被改变, 因此安装程序无法在其中写入信息而失败。


    如果你遇到了这样的错误,首先请试图下载任何用于 Anaconda 的勘误。勘误可在以下网址中找到:


    http://www.redhat.com/support/errata


    你还可以搜寻与这一问题有关的错误汇报。要搜寻 Red Hat 的错误跟踪系统,请访问:


    http://bugzilla.redhat.com/bugzilla


    最后,如果你仍有与这个错误有关的问题,请注册你的产品, 然后联系我们的技术支持组。要注册你的产品,请访问:


    http://www.redhat.com/apps/activate

    安装后的问题


    GRUB 的图形化屏幕遇到问题?


    如果由于某种原因,你需要禁用图形化引导屏幕, 你可以用根用户身份编辑 /boot/grub/grub.conf 文件, 然后重新引导系统来达到这一目的。


    编辑方法是,把 grub.conf 文件中起首为 splashimage 的句行变为注释。 要将某一行变为注释,在这一行的起首插入 ; 字符。


    当你重新引导后, grub.conf 文件将会被重读, 你所做的改变将会生效。


    你可以重新启用图形化引导屏幕,方法是在 grub.conf 文件中不注释掉(或添加)以上提到的句行,然后重新引导。


    LILO 的图形化屏幕遇到问题?


    如果由于某种原因,你需要禁用图形化引导屏幕, 你可以用根用户身份编辑 /etc/lilo.conf 文件, 然后重新运行 LILO 来达到这一目的。


    首先,作为根用户注释掉(或删除)/etc/lilo.conf 文件中 "message=/boot/message" 这一行。 要将某一行注释掉,在这一行的起首插入 ; 字符。 其次,键入 /sbin/lilo -v 来重新运行 LILO。 下一次引导时,你将会见到文本提示 LILO: , 如同从前的 Red Hat Linux 发行版本。


    你可以重新启用图形化引导屏幕,方法是在 lilo.conf 文件 中添加(或不注释掉)以上提到的句行,然后重新运行 LILO。


    引导入图形环境


    如果你安装了 X 窗口系统,但是在登录了 Red Hat Linux 系统后 却看不到图形化桌面环境,你可以使用 startx 命令来启动 X 窗口系统图形化界面。


    输入了该命令后,按 [Enter] 键,你就能够 登录入你选定的图形化桌面了(如 GNOME 或 KDE)。


    服务器和 X 系统安装遇到问题


    如果你执行的是服务器安装,在启动 X 服务时遇到问题, 你可能在安装过程中没有安装 X 窗口系统。


    如果你想要使用 X 窗口系统,你可以执行升级来安装 X。 在升级中, 选择 X 窗口系统软件包,然后选择 GNOME、KDE、或两者皆选。


    登录时的问题


    如果在安装过程中你没有创建一个用户帐号, 你将需要登录为根用户, 然后使用你给根用户设立的口令。


    如果你没记住根口令,你需要把系统引导为 linux single。


    如果你使用的是 GRUB,载入了 GRUB 引导屏幕后,键入 e 来编辑。你会看到一个配置文件中 的项目列表,其中有你选定的引导标签。


    选择以 kernel 开头的句行,然后键入 e来编辑该项引导项目。


    在 kernel 句行的结尾处,添加:


    linux single


    按 [Enter] 键来退出编辑模式。


    回到 GRUB 屏幕后,键入 b 来引导 单用户模式。


    如果你使用的是 LILO,按 [Ctrl]-[x] 来退出图形化 LILO 屏幕,回到 LILO boot: 提示下。


    下一步,在 LILO boot: 提示下输入 linux single。


    一旦你使用 GRUB 或 LILO 引导入了单用户模式, 你就会看到 # 提示,你需要键入 passwd root,它将会允许你输入一个 新的根口令。这时候,你可以键入 shutdown -r now, 系统将会使用你的新口令来重新引导。


    如果你忘了你的用户帐号口令,你必须变为根用户。 要变为根用户,键入 su - ,在提示后输入根口令, 然后键入 passwd <username>。 这将会允许你为某一指定的用户帐号输入一个新口令。


    如果你选择了定制或工作站安装,而且你看不到图形化登录屏幕, 请检查你的硬件是否兼容。 "硬件兼容性列表" 可在以下网页中找到:


    http://hardware.redhat.com/hcl/


    你的内存不能被识别吗?


    有时,内核不能识别你的全部内存(RAM)。你可以用以下命令来检查:


    cat /proc/meminfo


    查看一下所显示的数量是否与你所知的系统内存相同。 如果不同,根据你安装的引导装载程序而定, 在 /boot/grub/grub.conf 或 /etc/lilo.conf 文件中添加下一行:


    mem=xxM


    把 xx 替换成你拥有的内存数量(MB)。 请记住,每映像后补的句行会完全覆盖全局后补的句行。把这个句行添加到每映像描述中 可能值得一试, 方法如下所示:


    append="mem=xxM"


    在 /boot/grub/grub.conf 文件中,以上的例子应如下所示:


    mem=128M

    append="mem=128M"


    当你重新引导后,在 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 Linux (2.4.6-2)
    root (hd0,0)
    kernel /vmlinuz-2.2.6-2 ro root=/dev/hda3 mem=128M


    在 /etc/lilo.conf 文件中,以上的例子应如下所示:


    改变/etc/lilo.conf 文件后, 请记住运行 /sbin/lilo -v


    boot=/dev/sda
    map=/boot/map
    install=/boot/boot.b
    prompt
    timeout=50

    image=/boot/vmlinuz-2.2.12-20
    label=linux
    root=/dev/sda1
    initrd=/boot/initrd-2.2.12-20.img
    read-only
    append="mem=128M"


    请注意,在指定 GRUB 或 LILO 中使用的卷标(映像)时传递这一选项可以获得同样的效果。


    当你已载入 GRUB 引导屏幕,键入 e 来编辑。 配置文件中用于你所选择的引导标签的项目列表将会在你面前出现。


    选择起首为 kernel 的句行, 然后键入 e 来编辑这一引导项目。


    在起首为 kernel 句行的最末, 添加


    xx 与你系统的内存数量相同。


    mem=xxM


    按 [Enter] 键来退出编辑模式。


    当你回到 GRUB 屏幕,键入 b 来用你的新内存指数引导。


    在图形化的 LILO 屏幕,按 [Ctrl]-[x] 退回到 boot: 提示。接下来,在 boot: 提示下输入:


    linux mem=xxM


    请记住将 xx 替换成你系统的内存数量。 按 [Enter] 键来引导。


    你的打印机无法运行


    如果你不能肯定该如何设置打印机,或者你在设置过程中遇到问题, 请试用 打印机配置工具。  


    在 shell 提示下键入 redhat-config-printer 命令来启动 打印机配置工具。如果你不是根用户,它会提示你输入根口令再继续。


    配置声卡遇到问题


    如果你安装后听不到声音,你可能需要运行一种声卡配置工具。


    要运行图形化声卡配置工具(Red Hat 声卡 配置工具 - redhat-config-soundcard), 从「主菜单」 上点击 「系统工具」 =>「声卡配置」 。


    要运行基于文本的配置工具,在终端机窗口中键入 sndconfig 。  



    注意


      

    sndconfig 必须在运行级别 3 中运行。 详情可参阅 《正式版 Red Hat Linux 参考指南》中的 "引导过程、 初始、及关闭"一章。



    如果声卡配置工具对你没有帮助,你可能需要 在"GNOME 控制中心"的 「多媒体」=>「声音」 下选择 "启用声音服务器启动" 选项。


    这样做的方法是,点击 「面板」=> 「程序」=> 「设置」=> 「GNOME 控制中心」 来启动 GNOME 控制中心 。 在 GNOME 控制 中心中, 选择「多媒体」菜单中的 「声音」 子菜单。 在右侧会出现一个「常规选项」 声音菜单。 选择 "启用声音服务器启动", 然后点击 「确定」按钮。


    基于 Apache 的 httpd 服务或 Sendmail 在启动时被挂起


    如果你在启动基于 Apache 的 httpd 服务或 Sendmail 时遇到问题, 请确定 /etc/hosts 文件中包括下面这行:


    127.0.0.1  localhost.localdomain  localhost

    附录 E. 磁盘分区简介


    很久以来,磁盘分区一直是个人计算机领域中普通规范的一部分。 然而,由于越来越多的人开始购买带有预先安装的操作系统的计算机,相 对来说,只有极少量的人理解分区是怎么一回事。本章试图向你解释 分区的原因以及如何使用磁盘分区,从而使你能够尽可能简便地安装 Red Hat Linux。  


    如果你对磁盘分区已有足够的了解,你可以直接跳到 为 Red Hat Linux 腾挪空间 以获取关于如何腾出磁盘空间来做 Red Hat Linux 安装准备过程的详情。这一部分还将讨论 Linux 系统使用的分区命名方案, 与其它操作系统共用磁盘,以及其它相关课题。  


    硬盘基本概念


    硬盘功能极为简单 - 它们被用来可靠地储存及检索数据。  


    在讨论磁盘分区之类的问题时,了解一些与之相关的硬件知识至关重要, 然而,这又极容易使人陷入小节,失落全景。 因此,我们将会使用一种简化的磁盘驱动器图表来 解释在磁盘分区后到底会发生什么。 图 E-1 一图 显示了一个崭新的、未经使用过的磁盘驱动器。  

    图 E-1. 未使用过的磁盘驱动器


    没什么可看的,是不是?不过,我们只是在一个最基本的层次上讨论磁盘驱动器, 此图表已足以达到这一目的。假设我们要在这个磁盘驱动器上面储存一些数据,现在还办不到。 我们首先要做一些准备工作…  


    不是你写入什么,而是你怎么写入


    有经验的计算机用户可能一试就成。 我们需要 格式化(format) 驱动器。 格式化 (又称"制作 文件系统(file system)")是一个将信息写入驱动器, 在未经格式化的驱动器内的空白空间中建立秩序的过程。  




    图 E-2. 有文件系统的磁盘驱动器


    如 图 E-2 图所暗示, 文件系统所建立的秩序牵涉到一些利弊得失:  



    驱动器上极小的一部分可用空间被用来储存与文件系统 有关的数据,这可以被视作管理费用。  


    文件系统将剩余空间分割成小块的,大小统一的段。 在 Linux 中,这些段被称为 块(block)。 [1]  


    由于文件系统带来创建目录和文件的可能性, 以上做出的牺牲可以被当作需要付出的极小的一个代价。  


    还有一点值得注意的是,单一通用的文件系统并不存在。 如 图 E-3 图所示, 一个磁盘驱动器上可以有许多不同类型的文件系统。 你可能也猜得到,不同类型的文件系统通常是不兼容的。 这意味着,支持某种文件系统(或 几种相关的文件系统类型)的操作系统可能不支持其它类型的文件系统。 不过,最后那句话不是一个已有的定规。例如, Red Hat Linux 支持的文件系统类型广泛 (包括许多被其它操作系统普遍使用的文件系统),它使不同文件系统之间的 数据交换变得容易多了。  




    图 E-3. 含有不同文件系统的磁盘驱动器


    当然,将文件系统写入磁盘仅仅是一个开端。 这个过程的目标实际上是 储存 并且 检索 数据。写入一些文件后,让我们再来看一看磁盘。  




    图 E-4. 已写入数据的磁盘驱动器


    如 图 E-4 图所示,14个 先前空白的块现在已被写入数据。然而,单看以上图示,我们很难 判定在这个驱动器上究竟驻有多少个文件。 可能少到只有一个文件,也可能多到14个文件,因为所有的文件至少 要使用一个块,有些需要几个块。 还有一个要注意的要点是,所使用的块不必构成一处连续的区域; 使用的和未使用的块可以交错散布。 这就是公认的 碎段(fragmentation)。 碎段会对试图改变已存分区大小有一定的影响。  


    如同许多与计算机相关的科技,磁盘驱动器推出后会被不断地改变。 特别是,它们越来越大。不是实际尺寸增大,而是它们储存信息的能力增大。 并且,这种新增的容量导致了磁盘驱动器使用方法的根本改变。  


    分区:将一个驱动器变成多个驱动器


    由于磁盘驱动器的容量不断增大,一些人开始质问将所有格式化的空间并 为一大块是否是最佳选择。这一类想法的动机有哲学上的,也有 技术上的。从哲学角度上讲,一个较大的磁盘驱动器所提供的额外空间若 超过了一定的大小似乎只会造成更多的杂乱无章。从技术角度上讲, 某些文件系统不是为支持大于一定容量的磁盘驱动器而设计的。 或者,某些文件系统 可能会 支持拥有巨大容量的较大的驱动器, 但是由文件系统跟踪文件所强加于上的管理费用也变得过高过大。  


    解决这个问题的办法是将磁盘划分为 分区 (partition)。每一分区都可以像一个独立的磁盘一样被访问。 这是通过添加 分区表(partition table)来做到的。  



    注记


      

    虽然本章中的图表中显示了分区表 与实际磁盘驱动器是分开的,这不完全正确。 事实上,分区表是保存在磁盘的最起首,在任何文件系统或用户数据之前。 但是为了清楚起见,我们在图表中将之分开。  





    图 E-5. 带有分区表的磁盘驱动器


    如 图 E-5 图所示,分区表 被分为四个部分。每个部分都装有定义单个分区所必需的信息, 这意味着分区表定义的分区不能超过四个。  


    每个分区表项目都包含着该分区的几项重要的特征:  



    在磁盘上分区开始和结束的地点(起止点)  


    分区是否"活跃"  


    分区的类型  


    让我们来仔细查看一下每一个特征。 起止点实际上定义了分区的大小及在磁盘上的位置。 "活跃"标志是被某些操作系统的引导装载程序所用。 换一句话说,标有"活跃"的分区上的操作系统将会被引导。  


    分区类型可能有些容易混淆。 类型是标识分区预备用途的数字。 如果这句话听起来有些含糊,那是因为分区类型本身也有些含糊。 某些操作系统用分区类型来代表一种指定的系统类型, 或将分区标志为与某个操作系统相关联的分区,或用来指明该分区 包含着可引导的操作系统,或是以上三者的结合。  


    表格 E-1列表中,包括了一些流行的(和不知名的) 分区类型,以及它们的数值。  


    表格 E-1. 分区类型


    分区类型

    分区类型



    空白
    00
    Novell Netware 386
    65


    DOS 12-bit FAT
    01
    PIC/IX
    75


    XENIX root
    02
    Old MINIX
    80


    XENIX usr
    03
    Linux/MINUX
    81


    DOS 16-bit <=32M
    04
    Linux 交换区
    82


    扩展
    05
    Linux Native
    83


    DOS 16-bit >=32
    06
    Linux 扩展
    85


    OS/2 HPFS
    07
    Amoeba
    93


    AIX
    08
    Amoeba BBT
    94


    AIX 可引导
    09
    BSD/386
    a5


    OS/2 引导管理器
    0a
    OpenBSD
    a6


    Win95 FAT32
    0b
    NEXTSTEP
    a7


    Win95 FAT32 (LBA)
    0c
    BSDI fs
    b7


    Win95 FAT16 (LBA)
    0e
    BSDI swap
    b8


    Win95 扩展 (LBA)
    0f
    Syrinx
    c7


    Venix 80286
    40
    CP/M
    db


    Novell
    51
    DOS 访问区
    e1


    Microport
    52
    DOS 只读区
    e3


    GNU HURD
    63
    DOS 次要区
    f2


    Novell Netware 286
    64
    BBT
    ff


    到了这一步,你可能会在猜想这些附加的复杂性通常是怎样 被使用的。实例请参阅 图 E-6。  




    图 E-6. >只有一个分区的磁盘驱动器


    在许多情况下,整个磁盘上只有一个分区, 基本上是重复分区前使用的方法。分区表内只有一个项目,它 指向分区的起点。  


    我们把此分区标签为"DOS"类。虽然这只是列在 表格 E-1 之中的几种可能的分区之一, 为了本项讨论的目的,这已经足够。这是多数新近购买的 带有预先安装的消费者版本 Microsoft Windows?64 的计算机 上典型的分区布局。  


    分区内的分区 - 扩展分区概述


    经过一段时间后,四个分区很明显将不够用。随着 磁盘驱动器的不断增大,配置了四个相当大的分区后仍有 剩余空间的可能性会越来越大。我们需要有一些创建更多分区的方法。  


    请进入扩展分区的世界。可能在 表格 E-1 中你已注意到一种分区类型是"扩展"。 它是在扩展分区中心的分区类型。  


    当一个分区被建立,其类型被设为"扩展"时, 扩展分区表也被创建。简而言之,扩展分区就像一个独立的 磁盘驱动器 - 它有自己的分区表指向一个或多个分区 (现称为 逻辑分区(logical partitions),与四个 主分区(primary partitions) 相对),分区表 完全包含在扩展分区之内。 图 E-7 图显示了一个磁盘驱动器,其中有 一个主分区和一个包含两个逻辑分区的扩展分区(以及一些未分区的 空闲空间。)  




    图 E-7. 带有扩展分区的磁盘驱动器


    如图表中所暗示,主分区与逻辑分区之间有些区别 - 主分区只能有四个,但是可以存在的逻辑分区数量却 无限制。(然而,在现实情况下,在一个磁盘驱动器上试图 定义多于12个逻辑分区可能不是一个好主意。)  


    现在,我们已经讨论过了一般意义上的分区,让我们来看一看如何将这些 知识应用到安装 Red Hat Linux 上。  


    为 Red Hat Linux 腾挪空间


    当你试图为你的硬盘重新分区时,有三种可能的情况:  



    有可用的未分区的空闲空间  


    有可用的未使用过的分区  


    被活跃使用的分区内有可用的空闲空间  


    让我们依此来看一看每一种情况。  



    注记


      

    请记住,以下的图解是为了清晰而简化的,它们并 不反映当你实际安装 Red Hat Linux 时所会遇到的确切分区布局。  



    使用未经分区的空闲空间


    在这种情况下,已定义的分区没有扩展到整个硬盘,它 没有包括那些不属于任何定义分区的未分配的空间。图 E-8 图显示了可能出现的情境。  




    图 E-8. 带有未分区的空闲空间的磁盘驱动器


    如果细想一下,你就会认识到一个未经使用的硬盘也属这种类型。 唯一的区别是其中 全部 空间都不属于任何定义的分区。  


    在以上任一情况下,你都可以简单地从未经使用的空间中 创建必要的分区。不幸的是,这种情况虽然简单,出现的可能性却不大 (除非你为 Red Hat Linux 特意购买了一个新磁盘)。 多数事先安装的操作系统被配置成占据磁盘驱动器上所有可用空间 (参阅 使用活跃分区中的空闲空间)。  


    接下来,我们将讨论一种更普遍的情况。  


    使用一个未使用过的分区中的空间


    在这种情况下,可能有一个或多个分区你已不再使用。 可能你过去用过其它的操作系统,你拨给它的分区似乎已不 再被使用。 图 E-9 图显示了这种情况。  




    图 E-9. 带有未使用分区的磁盘驱动器


    如果你发现自己处于这种情况,你可以使用 那些拨给未使用过的分区的空间。首先,你应该删除 该分区,然后在其上创建相应的 Linux 分区。你既 可以用 DOS fdisk 命令来做到,也可以 在定制过程中做到。  


    使用活跃分区中的空闲空间


    这是最常见的情况。不幸的是,这也是最难处理的情况。 主要问题是,即便你有足够的空闲空间,它们目前已被分配 给一个正在使用中的分区。如果你购买了一个带有事先安装的 软件的计算机,很可能整个硬盘是一个容有操作系统和数据的 大分区。  


    除了给你的系统添加一个新硬盘驱动器外,你有以下两个选择:  


    破坏性重新分区

    简而言之,这种方法让你删除一个大分区而创建几个小一些的分区。 你可能想象得到,在原来分区上的所有数据将会被破坏。 这意味着你有必要做完全备份。为你自己考虑, 请做两个备份,并使用校验(如果你的备份软件提供了的话), 在你删除分区之前 试着从你的备份中 读取数据。  



    小心


      

    如果在该分区上安装有某类 操作系统,该操作系统也需要被重新安装。需要注意的是, 那些带有事先安装的操作系统售出的计算机可能没有包括 重装该系统所需的光盘介质。 请在破坏你的原有分区及原有操作系统 之前 觉查到这一点。  



    在为你现存的软件创建了一个较小的分区后, 你可以重装这些软件,恢复你的数据,然后继续 安装 Red Hat Linux。 图 E-10 显示了这个过程完成后的情景。




    图 E-10. 被破坏性重新分区的磁盘驱动器



    小心


      

    As 图 E-10 一图显示了, 没有正确的备份,原有分区内的所有数据将会被丢失!  


    非破坏性重新分区

    在这里,你运行的程序可以做似乎完全不可能的事: 它会把大分区变小,却不会丢失该分区上原有的任何文件。 许多人都发现这个办法既可靠又简单可行。 哪一个软件可以帮助你达到这一目的呢? 在软件市场上有好几种磁盘管理软件。你应该做一番调查 以便找到最适合你的情况的一种。  


    非破坏性分区过程是非常直捷了当的,包括以下几个步骤:  



    压缩现存数据  


    重新划分现存分区的大小  


    创建新分区  


    接下来,我们将详细阐明每一步骤。  


    压缩现存数据


    如 图 E-11 图所示, 第一步是压缩你现存分区上的数据。原因是将这些数据重新 安排后,你将会在该分区"终点"后获得最多的可用空闲空间。  




    图 E-11. 磁盘驱动器被压缩


    这一步骤至关重要。不执行这一步骤,你的数据所 在的位置可能会阻止分区被重新划分为想要的大小。 还请注意的是,由于某种原因,某些数据不能被移动。 如果情况如此(这会严重地限制你的新分区的大小), 你可能会被迫在你的磁盘上进行破坏性重新分区。  


    重新划分现存分区的大小


    图 E-12 一图显示了 重新划分分区大小的实际过程。这一过程的结果要依 你所使用的软件而定。多数情况下,新空出的空闲空间 被用来创建一个与原有分区同类的未格式化的分区。  




    图 E-12. 分区大小被重新划分的磁盘驱动器


    理解你所使用的重新分区软件对新空出的空间的操作是很重要的, 只有这样,你才能正确地采取相应措施。 在我们显示的情况中,最佳措施是删除新建的 DOS 分区, 然后创建恰当的 Linux 分区。  


    创建新分区


    如前一步骤所暗示,创建新分区可能必要,也可能没必要。 然而,除非你的重新分区软件知道 Linux 的存在,很可能你需要 删除在重新划分分区过程中创建的分区。 图 E-13 显示了完成后的情景。  




    图 E-13. 带有最终分区配置的磁盘驱动器



    注记


      

    下列信息是基于 intel 的计算机所特有的。  



    为了方便 Red Hat Linux 用户, DOS fips 工具被包括在 the Red Hat Linux/x86 光盘 1 中的 dosutils 目录里。这是一个可自由得到的 能够重新划分 FAT(文件分配表)分区大小的程序。  



    警告


      

    许多人都成功地使用过 fips 来重新划分硬盘驱动器分区的大小。 然而,由于 fips 的操作性质以及在其下 一定要运行的类型广泛的硬件和软件配置, Red Hat 无法保证 fips 将会在你的系统中正确运行。 因此,我们没有对fips 的安装支持。若使用,请责任自负。  



    虽是这么说,如果你决定使用 fips 来重新划分你的硬盘分区,你一定要做两件 至关重要 的事:  



    执行备份 - 将你的计算机上重要的数据做两个备份。 这些备份应该保存在可移动的介质上(如磁盘或磁带), 而且你应该在继续前确定它们是可以读取的。  


    阅读文档 - 完完全全地阅读 fips 文档。 它们位于 Red Hat Linux/x86 第一张光盘上 dosutils/fipsdocs 子目录。  


    如果你决定要使用 fips,请留意在 fips 运行后,你会有 两个 分区:一个是你重新划分大小的分区, 另一个是 fips 用新空出的空间创建的新分区。 如果你的目的是使用新空出的空间来安装 Red Hat Linux,你应该删除新分区。你既可以使用 在目前操作系统下的 fdisk ,也可以在 定制安装过程中设立分区时删除该分区。  


    分区命名方案


    Linux 使用字母和数字的组合来代指磁盘分区。 这可能有些使人迷惑,特别是如果你使用"C 驱动器"这种方法来指代硬盘及它们的分区。 在 DOS/Windows 的世界里,分区是用下列方法命名的:  



    每个分区都被检查过以便判定它是否可被 DOS/Windows 读取。  


    如果分区类型是兼容的,它会被指派给一个"驱动器字母"。 驱动器字母从"C"开始,然后依据要标签的分区数量而按字母顺序推移。  


    驱动器字母可以用来指代那个分区,也可以用来指带分区所含的文件系统。  


    Red Hat Linux 使用一种更灵活的命名方案。 它所传达的信息比其它操作系统采用的命名方案要多。 该命名方案是基于文件的,文件名的格式为:  


    /dev/xxyN


    下面阐述了如果解析分区命名方案:  


    /dev/

    这个字串是所有设备文件驻留的目录名。 因为分区驻留在硬盘上,而硬盘是设备, 所以这些文件代表了驻留在/dev/上 所有可能的分区。  

    xx

    分区名起首的两个字母标明分区驻留设备的类型。 通常你会看到 hd (用于 IDE 磁盘)或 sd(用于 SCSI 磁盘)。  

    y

    这个字母标明分区所在的设备。例如, /dev/hda(第一个 IDE 磁盘) 或/dev/sdb(第二个 SCSI 磁盘)  

    N

    最后的数字代表分区。前四个分区(主分区或扩展分区) 是用数字从 1 排列到 4。逻辑分区 从 5 开始。例如, /dev/hda3 是在第一个 IDE 硬盘上的第三个 主分区或扩展分区; /dev/sdb6 是在第二个 SCSI 硬盘上的第二个逻辑分区。  



    注记


      

    在常规命名中,没有一个部分是基于分区类型的。 与 DOS/Windows 不同, 全部 分区可在 Red Hat Linux 下被识别。当然,这并不是说 Red Hat Linux 能够访问每一类分区上的数据, 但是在多数情况下,访问配给另一个操作系统的分区上的数据是可能的。  



    请将这一信息牢记在心。在你设立Red Hat Linux 所需的分区时, 它将会使许多事情更容易地被你理解。  


    磁盘分区以及其它操作系统


    如果你的 Red Hat Linux 分区将会与其它操作系统 所用的分区共享一个硬盘,多数情况下,应该没什么问题。 然而,某类 Liunx 和其它操作系统的组合需要特别加以注意。 关于创建与其它操作系统兼容的磁盘分区的信息可在 好几个 HOWTO 和 Mini-HOWTO 文档中找到。这些文档位于 Red Hat Linux 文档光盘中 HOWTO 和 HOWTO/mini 目录中。特别是 Mini-HOWTO 中起首为 Linux+ 的文件对你大有裨益。  



    注记


      

    如果 Red Hat Linux/x86 会和 OS/2 在你的机器上并存,你必须使用 OS/2 分区软件来创建你的磁盘分区 -- 否则,OS/2 可能不会识别磁盘分区。 在安装中,不要创建任何新分区,但是请使用 fdisk 为你的 Linux 分区设立正确的分区类型。  



    磁盘分区和挂载点


    令许多 Linux 的新用户感到困惑的一个地方是 各分区是如何被 Linux 操作系统使用及访问的。 在 DOS/Windows 中,相对来说较为简单。每一分区有一个 "驱动器字母",你用正确的驱动器字母来指代相应分区上的 文件和目录。  


    这与 Linux 如何处理分区及磁盘贮存问题截然不同。 主要的区别在于,每一个分区都用来构成支持一组文件和 目录所必须的贮存区的一部分。这是通过 挂载(mounting) 的过程将分区关联到某一目录来实现的。挂载分区使其起始于 这个指定目录(通称为 挂载点(mount point))的贮存区变得可用。  


    例如,如果分区 /dev/hda5 被 挂载在 /usr,这意味着所有在 /usr之下的文件和目录在物理意义上驻留在 /dev/hda5 上。因此文件 /usr/share/doc/FAQ/txt/Linux-FAQ 是被储存在 /dev/hda5上,而文件 /etc/X11/gdm/Sessions/Gnome 却不是。  


    继续以上的例子,还有可能 /usr 之下的一个或多个目录是其它分区的挂载点。 例如,某个分区(假设为, /dev/hda7)不能被挂载到 /usr/local 中,这意味着 /usr/local/man/whatis 将驻留在 /dev/hda7 上而不是 /dev/hda5 上。  


    多少个分区?


    在准备安装 Red Hat Linux 过程中的这一地步,你应该开始考虑一下你的新操作系统所 使用的分区数量及大小。"多少个分区"这个问题一直在 Linux 社区中 纷争不断,在没有定论之前,可以说可用的分区布局与争论这一问题的 人一样多。  


    请记住这一点,除非你另有原因,我们推荐你 至少创建以下的分区:  



    一个交换分区 - 交换 分区是用来支持虚拟内存的。换句话说,当没有足够的内存来容纳你的 系统正在处理的数据时,这些数据就被写入交换区。 你 必须 创建一个交换分区才能正确地使用 Red Hat Linux。你的交换分区的最小值应该相当于你的计算机内存的两倍和 32 MB 中较大的一个值。  


    一个 /boot 分区 - 这个挂载在 /boot 上的分区包含有操作系统的内核 (允许你的系统被引导入 Red Hat Linux),以及其它几个在引导过程中使用的文件。  



    小心


      

    请确定去阅读 最后一个疑问:使用 GRUB 还是 LILO - 那里所提供的信息也适用于 /boot 分区!  



    鉴于多数 PC BIOSes 的限制,创建一个小分区来容纳这些文件是较佳的选择。 对大多数用户来说,32 MB 引导分区应该是足够了。  


    一个根分区(/) - 根分区是 /(根目录)驻留的地方。在分区布局中, 所有文件(除了那些贮存在 /boot 上的以外) 都驻留在根分区。 正由于此,你应尽可能地扩大根分区的大小。 例如,一个 1.2 GB 的根分区 可能 会允许相当于一个工作站大小的安装 (只有 极 少空闲空间), 与此同时,一个 3.4 GB 的根分区 可能 会让你安装每一个软件包。 很明显,你所能拨给根分区的空间越大越好。  


    对于各类 Red Hat Linux 分区的恰当大小所明确标明的推荐值可在 哪种安装类型最适合于你? 在 第1章 中找到。  


    最后一个疑问:使用 GRUB 还是 LILO


    GRUB 和 LILO 是最常用的在基于 Intel 的系统上引导 Red Hat Linux 的方法。作为操作系统装载程序,它们操作于任何操作系统 "之外",仅使用在计算机硬件中内建的基本 I/O 系统(或 BIOS)。这一部分向你描述 GRUB 和 LILO 与 PC BIOSes 之间的交流,它只针对与 Intel 兼容的计算机。  


    与 BIOS 相关的限制对 GRUB 和 LILO 的影响


    在多数基于 Intel 的计算机中,GRUB 和 LILO 要接受由 BIOS 所强加的限制。特别是,多数 BIOSes 无法 进入两个以上的硬盘,而且它们无法访问任一驱动器上在 超越柱面 1023 以上所贮存的数据。请注意,某些新近的 BIOSes 没有这些限制,但是无论如何这还不是统一的规范。  


    所有 GRUB 和 LILO 需要在引导期间访问的数据 (包括 Linux 内核)位于 /boot 目录中。如果你按照以上所建议的分区布局 或者执行的是工作站或服务器安装, /boot 目录将会是一个单独的小分区。 否则,它可能会驻留在根分区 (/)上。 在任一情况下,如果你要使用 GRUB 或 LILO 来引导你的 Red Hat Linux 系统, /boot 所驻留的分区一定 要遵守以下条例:  


    在前两个 IDE 驱动器上

    如果你有两个 IDE(或 EIDE)驱动器, /boot 必须要位于其中之一。 请注意,两个驱动器的限制也包括任何在你的主 IDE 控制器上的 IDE 光盘驱动器。因此,如果在你的主控制器上你有一个 IDE 硬盘,和一个光盘驱动器, /boot 必须仅能位于 第一个硬盘,即便你在次 IDE 控制器上另有硬盘。  

    在第一个 IDE 或第一个 SCSI 驱动器上

    如果你有一个 IDE(或 EIDE)驱动器以及一个或更多 SCSI 驱动器,/boot 必须位于 IDE 驱动器上或 ID 为 0 的 SCSI 驱动器上。其它的 SCSI ID都不行。  

    在前两个 SCSI 驱动器上

    如果你只有 SCSI 硬盘,/boot 必须位于 ID 为 0 或 1 的驱动器上。其它 SCSI ID 都不行。  

    分区 完全 在柱面 1023 之下

    无论是以上哪一种配置,容有 /boot 的分区必须要全部位于柱面 1023 之下。如果容有 /boot 的分区位于柱面 1023 的两侧, 你所面对的情形可能是,GRUB 和 LILO 最初会起作用 (因为所有必需的信息都位于柱面 1023 之下), 但是如果一个新内核被载入后驻留在柱面 1023 之上的话, 它们将会失败。  


    如上所述,某些新型的 BIOSes 可能会允许 GRUB 和 LILO 与不符合这些条例的配置配合工作。 同样的,某些 GRUB 和 LILO 的较隐蔽的功能也可以用来启动 Linux 系统,即便是配置不符合我们的条例。然而,由于牵涉的变量太多, Red Hat 无法支持此类应用。  



    注记


      

    Disk Druid,以及 工作站和服务器的安装,把这些 BIOS 相关的限制考虑在内。  






    [1]

    与图解所示不同,块实际上 是 大小统一的。 还有,请留意,一个平常的磁盘驱动器含有数以千计的块。 不过,在此项讨论中,我们可以忽略这些细微出入。  

    附录 F. 驱动程序盘


    我们为什么需要一张驱动程序盘?


    在 Red Hat Linux 安装程序载入的时候, 你可能会看到向你要求驱动程序盘的屏幕。驱动程序盘屏幕在下面三种情况中最常见:



    如果你是在 专家模式 下运行安装程序


    如果你是用在boot: 提示后输入 linux dd 来运行安装程序  


    如果你在一个不具备任何 PCI 设备的计算机上运行安装程序


    那么,驱动程序盘到底是什么呢?


    驱动程序盘对安装程序不支持的硬件给予支持。它可以是由 Red Hat 制作的, 也可以根据在互联网上发现的驱动程序自制,还可以 是硬件厂家附带给硬件的。


    除非你需要一个特别的设备来安装 Red Hat Linux,你没必要使用驱动程序盘。 多数情况下,驱动程序盘用于那些非标准化的或最新的光盘驱动器、SCSI 适配器,或网络接口卡(NIC)上。 只有这些设备在安装中可能会需要没有在 Red Hat Linux 光盘(或引导盘,如果你创建了一个安装引导盘来引导安装进程的话)中包括的驱动程序盘。



    注记


      

    如果在你的系统上安装 Red Hat Linux 时不需要某个不被支持的设备,请继续安装进程。 一旦安装完毕,你可以添加对该设备的支持。



    我怎样才能获得驱动程序盘呢?


    Red Hat Linux 的第一张光盘包括了驱动程序盘的映像 (images/drvnet.img - 网卡驱动程序,以及 images/drvblock.img - 用于 SCSI 控制器的驱动程序)。 这些映像包括许多极少使用的驱动程序。如果你怀疑你的系统可能会需要此类驱动器, 你应该在开始安装 Red Hat Linux 之前创建一张驱动程序盘。


    你还可以从以下 Red Hat 的网站中的「Bug Fixes」 部分下,查到有关特制的驱动程序的信息:


    http://www.redhat.com/support/errata  


    偶尔, 在Red Hat Linux版本发行之后,会出现一些新的通用硬件, 这些硬件无法使用在安装程序中已有的驱动程序或包括在 Red Hat Linux 光盘 1 中的驱动程序盘映像。 在这种情况下, Red Hat 网站可能会提供 到这些驱动程序映像的链接。


    根据映像文件创建驱动程序盘


    如果你有一份驱动程序盘的映像,你需要将它写入 软盘 ,这可以在 DOS 或 Red Hat Linux 环境中做到。


    根据驱动程序盘映像,使用 Red Hat Linux 来创建驱动程序盘:



    在第一个 软盘驱动器中插入 一张空白的、未格式化的 软盘 。


    在含有驱动程序盘映像(如:drvnet.img) 的目录下,以根用户身份键入 dd if=drvnet.img of=/dev/fd0 。


    根据驱动程序盘映像使用 DOS 来创建驱动程序盘:



    在驱动器 a:中插入一张空白的、未格式化的 软盘 。


    在包含驱动程序盘映像的同一目录中,如 drvnet.img, 在命令行中键入 d:\dosutils\rawrite drvnet.img a:, 此处的 d: 是光盘设备的驱动器盘符。


    安装中使用驱动程序盘


    仅有一张驱动程序盘是不够的;你必须具体指定 Red Hat Linux 安装程序在安装 过程中载入并使用该驱动程序盘。



    注记


      

    驱动程序盘与引导盘不同。 如果你需要一张引导 盘来安装 Red Hat Linux, 在使用驱动程序盘之前,你仍需创建 软盘 并从中引导。


    如果你还没有安装引导盘,而且你的系统不支持从光盘引导, 你应该创建一张安装引导盘。关于制作引导盘的详情,请参阅 制作安装磁盘 在 第1章 。



    驱动程序盘创建完毕后,你便可以开始安装。 首先, 从 Red Hat Linux 光盘1(或安装引导盘)中引导系统。在 boot: 提示下,输入 linux expert 或 linux dd。引导安装程序的细节请参阅 引导安装程序 在 第3章 。  


    Red Hat Linux 安装程序将会请你插入驱动程序盘。 驱动程序盘被安装程序读取后,只有那些在稍后的安装过程中在你的系统上发现的硬件所需的驱动程序会被应用。

    附录 G. 配置一个双引导系统


    要想让两个操作系统共享计算机,你需要使用双引导。 你可以引导其中之一,但不能同时引导两者。每个操作系统都从它自己的硬盘驱动器或磁盘分区中引导, 并使用它自己的硬盘驱动器或磁盘分区。


    本章向你解释如何配置系统以便能够引导入 Red Hat Linux 和另一个操作系统。 为清楚起见,我们将假设另一个操作系统是 Microsoft WindowsTM。但是其它操作系统的一般步骤也与之相仿。



    注记


      

    如果 Red Hat Linux 在你的系统上会与 OS/2 并存,你必须使用 OS/2 的分区软件来创建你的磁盘分区 - 否则, OS/2 可能不会识别磁盘分区。在安装过程中,不要创建任何新分区, 但是请务必使用fdisk 为你的 Linux 分区设立正确的分区类型。



    如果你的计算机上没有安装任何操作系统,请首先安装 Windows,然后再安装 Red Hat Linux。



    如果你安装的是 Windows 9x 或 Windows ME, 在安装期间你将无法定义分区。请安装 Windows,然后参阅 用 FIPS 分区 上关于使用 fips 的说明来为你的硬盘重新分区 并为 Linux 腾出一些空闲空间。


    如果你安装的是 Windows NT 或 Windows 2000,你可以为 Windows 创建一个指定大小的分区。请在你的硬盘驱动器上保留足够的空闲空间(没有被分区或格式化的分区)来安装 Linux。



    窍门


      

    在为你的硬盘驱动器分区的时候,请留意某些系统内的 BIOS 无法进入硬盘上前 1024 柱面外的空间。如果情况如此,请在你的硬盘驱动器的前 1024 柱面上为 /boot Linux 分区保留足够空间以便引导 Linux。 其它的 Linux 分区可以放在柱面 1024 之后。



    请参阅 你有足够的磁盘空间吗? 在 第1章 来决定应该保留多少磁盘空间。 安装 Windows 之后,请参阅在双引导环境中安装 Red Hat Linux。


    如果你想要安装 Red Hat Linux 的计算机上目前运行的是 Windows (或某种其它操作系统),你需要做出一项重要决定。 你的选择是:



    你的计算机已安装了 Windows,你仍想让 Red Hat Linux 成为你的计算机的唯一操作系统吗? 如果答案是肯定的,你没必要配置双引导系统。把你想保留的信息全部备份,然后开始安装。 在安装中,如果你在「磁盘分区设置」 屏幕中选定要安装程序自动为你的系统分区, 请选择「删除系统上所有分区」。如果你选择要用 Disk Druid 或 fdisk 来手工分区,删除所有现存的 DOS (Windows) 分区,然后创建你的 Linux 分区。


    你想安装 Red Hat Linux ,然后既可以引导 Red Hat Linux 又可以引导你的另一个操作系统吗?执行此类 Red Hat Linux 安装可以在你的系统上安装 Red Hat Linux 却又不影响另一个操作系统。既然你已经装有 Windows,你需要为 Linux 分配磁盘空间。 请阅读 为 Linux 分配磁盘空间,然后再阅读 在双引导环境中安装 Red Hat Linux。


    为 Linux 分配磁盘空间



    警告


      

    在重新配置硬盘驱动器之前,请记住把所有重要的信息备份。 如果你不是特别小心谨慎,重新配置硬盘会导致数据丢失。 除此以外,请确定为两个操作系统各自创建一个引导盘,以防万一引导装载程序不能够识别任何一个操作系统。



    如果你在系统上已安装了 Windows,你必须有可用的空闲空间才能在其中安装 Red Hat Linux。可供选择的方法有:



    添加一个新硬盘。


    使用一个现存的硬盘或分区。


    创建一个新分区。


    以上三个选项中,都请留意某些老式的系统中的 BIOS 无法进入硬盘驱动器上前 1024 柱面以外的部分。 如果情况如此, /boot Linux 分区必须位于你的硬盘驱动器上前 1024 个柱面中才能引导 Linux。


    添加新硬盘驱动器


    为 Red Hat Linux 腾出空间的最简单办法是给计算机添加一个新硬盘驱动器, 然后在该驱动器上安装 Red Hat Linux。例如,如果你给计算机添加了第二个 IDE 硬盘驱动器,Red Hat Linux 安装程序将会把它识别为 hdb, 而把现存的驱动器 (被 Windows 使用的)识别为 hda。(对于 SCSI 硬盘驱动器,新安装的 Red Hat Linux 硬盘驱动器将会被识别为 sdb,而现存的硬盘驱动器将会被识别为 sda。)


    如果你选择要为 Linux 安装新硬盘,你该做的只是启动 Red Hat Linux 安装程序。启动 Red Hat Linux 安装程序之后,请确定你选定的是在新安装的硬盘驱动器上安装 Linux (例如 hdb 或者 sdb)而不是在被 Windows 使用的硬盘驱动器上安装。


    使用现存硬盘驱动器或分区


    另一种为 Linux 腾出空间的办法是,使用目前被 Windows 使用的磁盘驱动器或分区。 例如,假设 Windows 资源管理器 显示了两个硬盘驱动器, C: 和 D:。这可能表明计算机有两个硬盘驱动器,或一个带有两个分区的硬盘驱动器。 在以上任何情况下,(假设硬盘驱动器上有足够的磁盘空间), 你都可以在 Windows 识别为 D: 的硬盘驱动器或磁盘分区上安装 Red Hat Linux 。



    注记


      

    Windows 使用字母来代表可移动的驱动器(例如, ZIP 驱动器)和网络贮存(虚拟驱动器)以及本地 硬盘驱动器空间;你不能在一个可移动的或网络驱动器上安装 Linux 。



    只有在你的计算机上有两个硬盘驱动器或磁盘分区时,你才可以使用该选项。  


    如果你可以利用一个你想在其中安装 Linux 的本地 Windows 分区,请执行下列步骤:



    将所有选定硬盘驱动器或分区上 (在这个例子中是 D: )你想保留的数据都复制到另外一个地方。


    启动 Red Hat Linux 安装程序,然后令其在指定的分区或驱动器上安装 Linux - 在这个例子中,硬盘驱动器或分区被 Windows 标为 D:。 请注意,Linux 区分硬盘驱动器和磁盘分区。因此:



    如果在这台计算机上的 C: 和 D: 是指两个分开的硬盘驱动器,安装程序将会把它们识别为 hda 和 hdb (IDE) 或 sda 和 sdb (SCSI)。请通知安装程序在 hdb 还是 sdb 上安装。


    如果 C: 和 D: 是指一个单个驱动器上的两个分区,安装程序将会把它们识别为 hda1 和 hda2 (或 sda1 和 sda2)。 你可以在 Red Hat Linux 安装过程中的分区阶段删除第二个分区 (hda2 或 sda2),然后 为 Linux 拨发未分配的空闲空间。 在开始安装 Red Hat Linux 之前,你不必删除第二个分区。


    创建新分区


    第三种为 Linux 腾出空间的办法是在被其它操作系统使用的硬盘驱动器中为 Red Hat Linux 创建一个新分区。如果 Windows 资源管理器 只显示了一个硬盘驱动器 (C:),而且你不想添加新硬盘驱动器,那么,你就必须为硬盘分区。 分区后, Windows 资源管理器 将会看到一个较小的 C: 驱动器,然后,当你运行 Red Hat Linux 安装程序的时候,你可以用驱动器的剩余空间来为 Linux 分区。


    你可以使用一个破坏性的分区程序,例如 fdisk, 来分隔硬盘驱动器,但是这么做之后, 你将需要重装 Windows。(这可能是你的最佳选择。)


    有几个可用于 Windows 操作系统的非破坏性的第三方分区程序。 如果你选择其中之一,请参考它们的文档。


    要获得如何使用 FIPS (一个在 Red Hat Linux 光盘上的程序)来分区的说明,请参阅用 FIPS 分区。

    在双引导环境中安装 Red Hat Linux


    当 Windows 已被安装,而且你已为 Linux 准备了空闲磁盘空间之后, 你就可以启动 Red Hat Linux 安装程序了。请跳到 第1章 来开始。这时候,普通的 Red Hat Linux 安装与配置双引导系统的 Red Hat Linux 安装间的区别仅存在于 硬盘驱动器分区和引导装载程序配置中。 当你运行到了 「磁盘分区设置」 屏幕中时(如 磁盘分区设置 在 第3章 中所描述),请再回到本章节。


    磁盘分区


    安装程序中的 「磁盘分区设置」 屏幕中有几个选项。 根据你的选择而定,配置双引导系统的方法也有所不同。 如果你不知道要创建多少个 Linux 分区,请参阅 为你的系统分区 在 第3章 中推荐的分区方案。 如果你选择:



    自动分区 - 选择 「保留所有 分区,使用现有空闲空间」。这一选项将会在你的硬盘驱动器上保留你的 Windows 分区, 而使用空闲空间或附加硬盘驱动器为 Red Hat Linux分区。


    使用 Disk Druid 来手工分区 - 不要删除现存 Windows 分区(它们是类型为 vfat 的分区)。 在附加硬盘驱动器上,或你为 Red Hat Linux保留的空闲空间上创建 Linux 分区。


    使用 fdisk 来手工分区 - 与使用 Disk Druid 相似,只是你将看不到图形化界面。 基本步骤是相同的。不要删除类型为 FAT16、 FAT32、或 NTFS 的现存分区。在附加硬盘驱动器上,或你为 Red Hat Linux 保留的空闲空间上创建 Linux 分区。


    配置引导装载程序


    当你在 Red Hat Linux 安装中运行到了 「安装引导装载程序」 这一屏幕时,选择要安装的引导装载程序。你可以使用不同的引导装载程序来引导 Red Hat Linux 和 Windows。 Red Hat 不支持其它引导装载程序,因此,本章节将只讨论如何配置 GRUB 或 LILO 来引导这两个操作系统。


    Red Hat Linux 安装程序通常会检测到 Windows 并自动配置引导装载程序(GRUB 或 LILO)来引导 Red Hat Linux 或 Windows。这可以在安装程序中的引导装载程序屏幕中看到。 一个名为 「DOS」 的项目会出现在要引导的操作系统列表中。


    安装后


    安装之后,无论你在什么时候启动计算机, 你都能够在引导装载程序屏幕中指明你想启动的是 Red Hat Linux 还是另外的操作系统。 选择 「Red Hat Linux」 来引导 Red Hat Linux,选择 「DOS」 来引导 Windows。


    如果你没有把硬盘驱动器中全部空闲空间拨给 Red Hat Linux,你可以在安装 Red Hat Linux 之后把它拨给 Windows。 你可以使用 parted 或 fdisk来创建这些分区。 parted 的界面和命令比 fdisk 更容易使用。譬如,要查看分区表,在 parted 中你需要键入 print, 而在fdisk 中,你需要键入 p。 关于 parted 的详细信息,请参阅《正式版 Red Hat Linux 定制指南》。  



    警告


      

    在安装 Red Hat Linux 之后,强烈推荐你使用 parted 或 fdisk 来创建分区。其它分区软件会改变硬盘驱动器上的分区表, 并移动 Linux 分区。如果这种情况发生了,引导装载程序将找不到 Linux 分区,从而无法引导 Red Hat Linux。  



    要在使用 Red Hat Linux 时访问 Windows 分区上的文件,请参阅 《正式版 Red Hat Linux 入门指南》 中的 "访问 Windows 分区" FAQ。 如果你把 Windows 分区格式化为 NTFS 格式,这种方法将行不通。

    用 FIPS 分区


    为了方便顾客,我们提供了 FIPS 工具。 这是一个可免费获得的能够重新划分FAT(文件分配表)分区大小的程序。 它包括在 Red Hat Linux 光盘的 dosutils 目录中。 如果你使用的是 NTFS 分区, FIPS 将行不通。



    注记


      

    许多人都成功地使用了 FIPS 来为他们的硬盘驱动器分区。 然而,由于FIPS 的操作性质,以及要在其下务必运行的类型广泛的硬件和软件配置, Red Hat 无法保证 FIPS 将会在你的系统中正确运行。因此,我们没有对 FIPS 提供任何安装支持;若使用,请责任自负。



    虽是这么说,如果你决定使用 FIPS来重新划分你的硬盘分区,你一定要做两件至关重要的事:



    执行备份 - 将你的计算机上重要的数据做两个备份。 这些备份应该保存在可移动的介质上(如磁盘、光盘或磁带),而且你应该在继续前确定它们是可以被读取的。


    阅读文档 - 完完全全地阅读 FIPS 文档。 它们位于 Red Hat Linux 光盘 1 上的 dosutils/fipsdocs 目录中。


    如果你决定要使用 FIPS,请留意在 FIPS 运行后,你会有两个分区:一个是你重新划分大小的分区,另一个是 FIPS 用刚腾出的空间创建的新分区。如果你的目的是使用刚腾出的空间来安装 Red Hat Linux,你应该删除新分区。 你既可以使用在目前操作系统下的 fdisk ,也可以在 定制安装过程中设立分区时删除该分区。


    下列说明是 FIPS 文档文件的简化版本。 fips.doc,位于 FIPS 目录下 (/dosutils/fips20/*)。在多数情况下你都应该遵循这些说明。 如果你遇到了任何问题,请参看文档文件。



    在 Windows 中:  



    做全面备份。


    运行 scandisk 来校验硬盘驱动器不包含任何坏块。


    决定如何把你的硬盘驱动器在操作系统间分配。 使用 Windows 资源管理器 来查看驱动器上的空闲空间。 记录下每个操作系统将有的空间(MB)。


    如果你还没有创建 Windows 引导盘,请创建一张。


    创建引导盘的方法在不同版本的 Windows 之间区别很大。 关于创建 Windows 引导盘的具体说明,请参考 Windows 文档。


    软盘需要被格式化,然后把 COMMAND.COM,以及 有关的隐藏文件(IO.SYS, MSDOS.SYS,和 DBLSPACE.BIN)复制到该软盘中。


    将下列 Red Hat Linux 光盘中的文件复制到 DOS 引导盘中。


      
    dosutils/fips20/fips.exe
    dosutils/fips20/restorrb.exe
    dosutils/fips20/errors.txt
    dosutils/fips20/fips.doc
    dosutils/fips20/fips.faq


    重组硬盘驱动器,因此硬盘上所有的数据都位于驱动器前端。


    将 Windows 引导盘插入软盘驱动器中,然后重新引导系统。


    启动 FIPS (在提示下键入 fips )。


    当 FIPS 开始运行时,你会看到一个与下面相似的欢迎屏幕:


    FIPS version 2.0, Copyright (C) 1993/4 Arno Schaefer
    FAT32 Support, Copyright (C) 1997 Gordon Chaffee

    DO NOT use FIPS in a multitasking environment like Windows, OS/2, Desqview,
    Novell Task manager or the Linux DOS emulator; boot from a DOS boot disk first.

    If you use OS/2 or a disk compressor, read the relevant sections in FIPS.DOC.

    FIPS comes with ABSOLUTELY NO WARRANTY, see file COPYING for details.

    This is free software, and you are welcome to redistribute it
    under certain conditions; again, see file COPYING for details.

    Press any key.


    当你按一个任意键,根分区屏幕就会出现。 (注意,如果计算机不止有一个硬盘驱动器的话,它会请你选择你想分区的驱动器。)


    当你按一个任意键,关于硬盘的细节会出现,如下所示:


    Boot sector:
    Bytes per sector: 512
    Sectors per cluster: 8
    Reserved sectors: 1
    Number of FATs: 2
    Number of rootdirectory entries: 512
    Number of sectors (short): 0
    Media descriptor byte: f8h
    Sectors per FAT: 145
    Sectors per track: 63
    Drive heads: 16
    Hidden sectors: 63
    Number of sectors (long): 141057
    Physical drive number: 80h
    Signature: 29h

    Checking boot sector ... OK
    Checking FAT ... OK
    Searching for free space ... OK

    Do you want to make a backup copy of your root and boot sector before
    proceeding? (y/n)


    你应该选择 [y],意思是 yes, 在继续使用 FIPS 之前,请为根扇区和引导扇区备份。


    下一步,你将会看到如下问题:


    Do you have a bootable floppy disk in drive A: as described in the
    documentation? (y/n)


    确定在软盘驱动器中已插入 DOS 引导盘后,键入 [y],意思是 yes。重新划分分区大小的屏幕就会出现,它和下面所显示的相似。


    Writing file a:\rootboot:000

    Enter start cylinder for new partition (33-526)

    Use the cursor keys to choose the cylinder, <enter> to continue

    Old partition           Cylinder              New partition
    258.9 MB                  33                   3835.8 MB


    图 G-1. 重新划分分区大小的屏幕


    初始值将驱动器上的 全部 空闲空间分配给新分区。 这样做将不会给你的 Windows 分区留下任何空闲空间,如果你并不打算这样做, 按 [向右箭头] 键来增加 Windows 分区的大小,减少新(Linux)分区的大小; 按 [向左箭头] 来减少 Windows 分区的大小,增加 Linux 分区的大小。 当大小符合你的需要时,按 [Enter] 键。校验屏幕就会出现。


    如果你键入 r (来重新编辑分区表),图 G-1 会重新出现,允许你改变分区大小。 如果你回答 c,确认屏幕 图 G-2,就会出现:


    New boot sector:

    Boot sector:
    Bytes per sector: 512
    Sectors per cluster: 8
    Reserved sectors: 1
    Number of FATs: 2
    Number of rootdirectory entries: 512
    Number of sectors (short): 0
    Media descriptor byte: f8h
    Sectors per FAT: 145
    Sectors per track: 63
    Drive heads: 16
    Hidden sectors: 63
    Number of sectors (long): 141057
    Physical drive number: 80h
    Signature: 29h

    Checking boot sector ... OK

    Ready to write new partition scheme to disk
    Do you want to proceed (y/n)?


    图 G-2. FIPS 确认屏幕


    回答 y 会完成重新划分大小这项操作。 一个无害的错误消息可能会出现,它声称 FIPS 无法重新引导你的系统。


    成功完成此项操作后,磁盘中将会有两个分区。第一个分区(hda1 或 sda1)将会被 Windows 使用。我们推荐你启动 Windows (请记住从 A: 驱动器中移除引导盘),然后在 C: 驱动器上运行scandisk。


    如果你遇到任何问题(例如,Windows 无法引导),你可以用你复制到 DOS 引导盘的restorrb.exe 命令来还原 FIPS 重新划分大小的操作。为以防万一出错,请阅读 FIPS 文档文件 (fips.doc 和 fips.faq),它们 描述了几个可导致重新划分大小操作失败的因素。如果这些方法都行不通,你可以用你制作的备份来恢复 Windows。


    第二个分区(hda2 或 sda2)含有 Red Hat Linux 安装程序将使用的空间。在安装中,当 Disk Druid 屏幕出现时,删除该分区 (安装指南向你解释了原因),然后再继续进行 Linux 分区。


    附录 H. 附加引导选项


    该附录讨论 Red Hat Linux 安装程序中提供的附加引导和内核引导选项。


    要使用这里提到的任何一个引导选项,在安装 boot: 提示下键入你想启用的命令。


    例如:


            boot: text
          



    引导时间的命令参数

    askmethod

    该命令请你选择从 Red Hat Linux 光盘中引导时你想使用的安装方法。

    apic

    该命令绕过在 Intel 440GX 芯片集 BIOS 中经常遇到的错误, 它只应该使用安装程序内核来执行。

    apm=allow_ints

    该命令改变挂起服务的处理方式(对于某些便携电脑来说可能是必要的)。

    apm=off

    该命令禁用 APM(高级电源管理)。它很有用途,因为 某些 BIOS 的电源管理(APM)问题重重,很容易崩溃。

    apm=power_off

    该命令会使 Red Hat Linux 默认关闭(断电)系统。它对于 不默认关闭的 SMP 系统有用。

    apm=realmode_power_off

    某些 BIOS 在试图关闭(断电)机器时崩溃。 该命令把操作方法从 Windows NT 方式改为 Windows 95 方式。

    dd

    该命令会在 Red Hat Linux 的安装中提示你使用驱动程序盘。

    display=IP:0

    该命令允许远程显示转发。其中, IP 应该用你想充当显示系统的 IP 地址替换。


    在你想显示的系统上,你必须执行xhost +remotehostname 命令, 这里的 remotehostname 是你运行显示命令的主机名称。使用 xhost +remotehostname 命令限制了对远程显示终端的访问,而且不允许来自没有被确切授予远程访问权的人员和系统的访问。

    driverdisk

    该命令执行的功能和 dd 命令 相同,它还会在 Red Hat Linux 安装中提示你使用驱动程序盘。

    expert

    该命令会启用下列特殊功能:  



    允许在可移介质上分区


    提示驱动程序盘

    ide=nodma

    该命令显示所有 IDE 设备上的 DMA,在遇到 IDE 相关的问题时可能有用。

    isa

    该命令提示你输入 ISA 设备配置。

    lowres

    该命令强制图形化(GUI)安装程序使用较低的分辨率运行(640x480)。

    mediacheck

    该命令给你测试安装源正确性的机会(如果是基于 ISO 的方法)。 在试图安装前先校验 ISO 映像的完整性会帮助你避免在安装中经常遇到的问题。

    mem=xxxM

    该命令允许你超越内核在机器上检测到的内存数量。 在某些较老的仅检测到 16 MB 的系统上,以及某些较新的视频卡与主内存共享视频内存的机器上, 你可能需要使用该命令。当执行这项命令时,xxx 应该用以 MB 为单位的内存数量替换。

    nmi_watchdog=1

    该命令启用内建的内核死锁检测器。它可以用来调试硬性内核锁定。 通过执行定期的 NMI(不可屏蔽中断)中断,内核可以监控 CPU 是否被锁, 并在需要时打印出调试消息。

    noapic

    该命令告诉内核不要使用 APIC 芯片。 它对于某些带有不良 APIC(如 Abit BP6)或错误重重的 BIOS 的母板有帮助。

    noht

    该命令禁用超线程(若在 SMP 系统中可用)。

    nomce

    该命令禁用在 CPU 上执行的自我诊断检查。 内核默认启用 CPU 的自我诊断(称为 机器检查意外,Machine Check Exception)。 在一些较老的 Compaq 机器上,这类检查运行的太频繁, 可能需要禁用。

    nomount

    该命令禁止在救援模式中自动挂载已安装的 Linux 分区。

    nopass

    该命令禁止把键盘和鼠标信息传递给安装程序的第二阶段。 它对于执行网络安装时,在安装的第二阶段测试鼠标和键盘配置屏幕很有帮助。

    nopcmcia

    该命令忽略系统上的任何 PCMCIA 控制器。

    noprobe

    该命令禁用硬件检测,相反,它提示用户来提供硬件信息。

    noshell

    该命令禁止安装时在第二虚拟控制台上使用 shell。

    nousb

    该命令禁止在安装中载入 USB 支持。 如果安装程序在进程早期容易挂起,该命令就能够起到作用。

    nousbstorage

    该命令在安装程序的载入程序中禁止载入 usbstorage 模块。它可能对 SCSI 系统上的设备排序有帮助。

    reboot=b

    该命令改变内核试图重新引导机器的方式。 如果系统关闭时内核被挂起,该命令会允许系统重新引导。

    rescue

    该命令将会运行救援模式。关于救援模式的详细信息, 请参阅 《正式版 Red Hat Linux 定制指南》。

    resolution=

    告诉安装程序要运行哪种视频模式。它接受所有标准的分辨率,如 640x480、800x600、 1024x768 等等。

    serial

    该命令启用串行控制台支持。

    skipddc

    该命令跳过 ddc 显示器探测, 这种探测在某些系统上会导致问题。

    text

    该命令禁用图形化安装程序,并强制安装程序在文本模式下运行。

    updates

    该命令会提示你插入包含更新(错误修正)的软盘。 如果你执行的是网络安装,并且已把更新映像存放在服务器上的 RHupdates/ 目录下,则不需要使用该命令。

    后记


    正式版 Red Hat Linux 指南手册使用 DocBook SGML v4.1 格式编写。 HTML 和 PDF 格式使用定制的 DSSSL 风格表单和定制的 jade 会绕脚本来编写。  


    Marianne Pecci <goddess@ipass.net> 创建了警诫图形(注记、 窍门、重要、小心、和警告)。在获得 Marianne Pecci 和 Red Hat, Inc. 的书面许可后,它们可以被重新发行。  


    Red Hat Linux 产品文档组的成员如下:  


    Sandra A. Moore - 《正式版 Red Hat Linux x86 安装指南》 的主要撰写人和维护者; 《正式版 Red Hat Linux 入门指南》 的参与撰写人  


    Tammy Fox - 《正式版 Red Hat Linux 定制指南》 的主要撰写人和维护者; 《正式版 Red Hat Linux 入门指南》 的参与撰写人; DocBook 的定制风格表单和脚本的编写人和维护者  


    Edward C. Bailey - 《正式版 Red Hat Linux x86 安装指南》 的参与撰写人  


    Johnray Fuller - 《正式版 Red Hat Linux 参考指南》的主要撰写人和维护者; 《正式版 Red Hat Linux 安全指南》的参与撰写人和维护者  


    John Ha - 《正式版 Red Hat Linux 入门指南》的主要撰写人和维护者; 《正式版 Red Hat Linux 安全指南》的参与撰写人和维护者  


    Sarah Smith - 《正式版 Red Hat Linux x86 安装指南》的简体中文翻译者; 《正式版 Red Hat Linux 入门指南》的简体中文翻译者  


    Red Hat, Inc.  



          1801 Varsity Drive
           Raleigh NC 27606-2072 USA
           电话:+1 919 754 3700
           电话:888 733 4281
           传真:+1 919 754 3701
           PO Box 13588
           Research Triangle Park NC 27709 USA
          


    rhl-ig-x86(ZH-CN)-8.0-HTML-RHI (2002-07-24T12:04-0400)  


    版权 172002 Red Hat, Inc.。本资料只允许在开放出版 许可(Open Publication License)V1.0 或更新版本的条款下发行。 (最新版本目前位于 http://www.opencontent.org/openpub/)  


    没有版权所有者的明确许可,禁止发行该文档的独立修改的版本。  


    除非事前从版权所有者处获得许可,禁止使用任何标准(纸印)书籍格式为商业目的而发行该作品或从该作品推导出的作品。  


    Red Hat、Red Hat 网络、Red Hat"Shadow Man"徽标、RPM、Maximum RPM、RPM 徽标、Linux Library、PowerTools、Linux Undercover、RHmember、RHmember More、Rough Cuts、 Rawhide 以及所有基于 Red Hat 的商标和徽标是商标或 Red Hat, Inc. 在美国和其它国家 的注册商标。  


    Linux 是 Linus Torvalds 的注册商标。  


    Motif 和 UNIX 是 The Open Group 的注册商标。  


    Intel 和 Pentium 是 Intel Corporation 的注册商标。 Itanium 和 Celeron 是 Intel Corporation 的商标。  


    AMD、AMD Athlon、AMD Duron、以及 AMD K6 是 Advanced Micro Devices, Inc. 的商标。  


    Netscape 是 Netscape Communications Corporation 在 美国和其它国家的注册商标。  


    Windows 是 Microsoft Corporation 的注册商标。  


    SSH 和 Secure Shell 是 SSH Communications Security, Inc.的商标。  


    FireWire 是 Apple Computer Corporation 的商标。  


    本书中所引用的所有其它商标和版权均属其拥有者所有。  


    security@redhat.com 密钥的 GPG 指纹是:  


    CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E
     楼主| 发表于 2003-1-12 10:24:04 | 显示全部楼层

    Exercise 3-1

    Disk Partitioning Strategies for a Workstation Installation
    A typical workstation installation uses only available unused disk space. In this exercise, you will remove all current partitions and install this sample host strictly as a Linux OS workstation. You will need to create the partitions on a 2GB or larger hard disk (see Table 3-4).
    *Create a BOOT.IMG diskette, then reboot the system with this disk in the floppy drive.
    *Press enter to move through the first few screens.
    *Choose Custom Installation when presented with Installation Options.
    *Continue pressing enter until you are presented with the Partitioning Options.
    *Select Disk Druid (easiest, graphical) or fdisk, whichever you are familiar with.
    *Delete all partitions.
    *Create the first partition with all but about 100MB of disk space.
    * Use the remaining disk space for swap; make sure the partition is Linux Swap (Disk Druid) or ID 0x83 (fdisk).
    *When asked to select packages, leave the default choices.
    *Select a root account password (e.g., Red Hat or Linux).
    *Finish the Workstation installation normally (skip any network or X installation).
    *Reboot the machine when prompted.
    Log in as root with your selected password. Custom Installation as a Workstation (No Other OS)
    200MHz Pentium , 2GB single disk, 64MB memory
    Partition
    Size
    Use
    Comment
    hda1
    1900MB
    /
    Plenty of room for the base; can still add lots more, such as Web and print services
    hda2
    100MB
    swap  
    More than adequate
    Table 4: Customized Workstation Installation
    For a more robust workstation, you could create the same partitions as per the workstation or server installation and just modify their size to match your needs.
    End Exercise 3-1
    Exercise 3-2
    Advanced Workstation Installation
    In this exercise, you will distribute your file system over more than just one partition. You will need to create the partitions on a 2GB or larger hard disk (see Table 3-5).
    1.Create a BOOT.IMG diskette, then reboot the system.
    2.Choose Custom Installation.
    3.Use Disk Druid to reconfigure the partition table.
    4.Delete all partitions.
    5.Create the first partition with 16MB of disk space, Linux Native, and assign to /boot.
    6.Create the next primary partition, hda2, as Linux Swap, and assign to ID 0x83.
    7.Create a third partition with about 1200MB of disk space, Linux Native, and assign it to / (root).
    8.Create an extended partition containing all the rest of the disk space.
    9.Create the first logical partition, fifth in number, with about 250MB, and assign it to /var.
    10.Create the next logical partition, hda6, with remainder (about 450MB) from Linux Native, and assign it to /home/httpd.
    11.When asked to select packages, leave the default choices in place.
    12.Enter a root password, such as "password" or "system."
    13.Finish the Workstation installation normally; do not configure the network or X.
    14.Reboot the machine and log in as root.
    Custom Installation as a Workstation (No Other OS)
    200MHz Pentium, 2GB single disk, 64MB memory
    Partition
    Size
    Use
    Comment
    hda1
    16MB
    /boot
    Maintains bootup files
    hda2
    64MB
    swap  
    Plenty of space
    hda3
    1200MB
    /
    The base with NFS, plus Web and print services
    hda4
    700MB
    Extended partition  
    CANNOT be used for any file system; can only contain logical partitions within it
    hda5  
    250MB (of 900 in hda4)
    /var
    Separate the spooling used by print services
    hda6  
    450MB (rest of hda4)
    /home/httpd
    Web services
    Table 5: Advanced Workstation Configuration
    End Exercise 3-2
    Exercise 3-3
    Disk Partitioning a Server Installation
    In this exercise, you will use a Custom Installation option to create a basic server. You will need to create the partitions on a 2GB or larger hard disk (see Table 3-6).
    1.Create a BOOT.IMG diskette, then reboot the system.
    2.Choose Custom installation.
    3.When prompted, select Disk Druid to edit partitions.
    4.Delete all partitions.
    5.Create the first partition with 16MB of disk space as Linux Native, and assign it to /boot.
    6.Create the next primary partition, hda2, as Linux Swap, and assign it to ID 0x83.
    7.Create third partition with about 320MB disk space, Linux Native, assign to / (root).
    8.Create an extended partition containing all the rest of the disk space, 1600MB.
    9.Create the first logical partition, hda5, with about 350MB, and assign to /var.
    10.Create the next logical partition, hda6, with remainder (about 500MB) of Linux Native, and assign it to /home/httpd.
    11.Create the next logical partition, hda7, with remainder (about 50MB) of Linux Native, and assign it to /home.
    12.Create the next logical partition, hda8, with remainder, about 700MB, Linux Native, and assign to /usr.
    13.When asked to select packages, include Apache Web service, Novell service, DHCP service, and DNS service.
    14.Enter a root password.
    15.Finish the installation normally.
    16.Reboot when prompted and log in as root.
    Custom Installation as a Server (No Other OS)
    200MHz Pentium II, 2GB single disk, 128MB memory
    Main use is as Web and NFS server of files and print; no interactive users
    Partition
    Size
    Use
    Comment
    hda1
    16MB
    /boot
    Maintains bootup files
    hda2
    64MB
    swap  
    Probably plenty of space
    hda3
    320MB
    /
    The base with NFS, plus Web and print services
    hda4
    1600MB
    Extended partition  
    CANNOT be used for any file system, can only contain logical partitions within it
    hda5  
    350/1600MB  
    /var
    Separate the spooling used by print services
    hda6  
    500/1600MB  
    /home/httpd
    Web services
    hda7  
    50/1600MB  
    /home
    No interactive users
    hda8  
    700/1600MB  
    /usr
    Additional network services such as DHCP, DNS, nw_mars, ...
    Table 6: Custom Server Configuration
    End Exercise 3-3
    Exercise 3-4
    Disk Partitioning Strategy for Database Server Installation
    In this exercise, you will use a Custom Installation option and configure the partitions for an imaginary database server. You will need to create the partitions on a 2GB or larger hard disk (see Table 3-7).  
    1.Create a BOOT.IMG diskette, then reboot the system.
    2.Choose Custom installation.
    3.Select Disk Druid to make partition changes.
    4.Delete all partitions.
    5.Create the first partition with 16MB of disk space, Linux Native, and assign it to /boot.
    6.Create the next primary partition, hda2, as Linux Swap, and assign it to ID 0x83.
    7.Create third partition with about 320MB disk space, Linux Native, and assign to / (root).
    8.Create an extended partition containing all the rest of the disk space, 1600MB.
    9.Create the first logical partition, hda5, with about 350MB, and assign it to /var.
    10.Create the next logical partition, hda6, with remainder, about 750MB, Linux Native, and assign it to /opt.
    11.Create the next logical partition, hda7, with remainder, about 500MB, Linux Native, and assign it to /usr.
    12.When asked to select packages, include Ingres Database services.
    13.Enter a root password.
    14.Finish the installation normally.
    15.Reboot and log in as root.
    Custom Installation as a Server (No Other OS)
    200MHz Pentium II, 2GB single disk, 128MB memory
    Main use is as database, file and print server, few interactive users
    Partition
    Size
    Use
    Comment
    hda1
    16MB
    /boot
    Maintains bootup files
    hda2
    64MB
    swap  
    Probably plenty of space
    hda3
    320MB
    /
    The base with NFS, plus Web and print services, few users
    hda4
    1600MB
    Extended partition  
    CANNOT be used for any file system, can only contain logical partitions within it
    hda5  
    350/1600MB  
    /var
    Separate the spooling used by print services
    hda6  
    750/1600MB  
    /opt
    Database system
    hda7  
    500/1600MB  
    /usr
    File services
    Table 7: Custom Database Server Installation
    End Exercise 3-4
    Exercise 3-5
    Disk Partitioning Strategy for Custom Web Server Installation
    In this exercise, you will configure a server that is primarily used as a Web service, using a Custom installation. You will need to create the following partitions on a 2GB or larger hard disk (see Table 3-8).
    1.Create a BOOT.IMG diskette, then reboot the system.
    2.Choose Custom installation.
    3.Select Disk Druid to make partition changes.
    4.Delete all partitions.
    5.Create the first partition with 16MB of disk space, Linux Native, and assign it to /boot.
    6.Create the next primary partition, hda2, as Linux Swap, and assign it to ID 0x83.
    7.Create the third partition with about 1200MB disk space, Linux Native, and assign to / (root).
    8.Create an extended partition containing all the rest of the disk space, 700MB.
    9.Create the first logical partition, hda5, with about 250MB, and assign it to /var.
    10.Create the next logical partition, hda6, with remainder (about 450MB) of Linux Native, and assign it to /home/httpd.
    11.When asked to select packages, include Apache Web Service.
    12.Enter a password for the root account.
    13.Finish the installation normally.
    14.Reboot and log in as root.
    Custom Installation as a Workstation (No Other OS)
    200MHz Pentium, 2GB single disk, 64MB memory
    Web server mainly, few users
    Partition
    Size
    Use
    Comment
    hda1
    16MB
    /boot
    Maintains bootup files
    hda2
    64MB
    swap  
    Plenty of space
    hda3
    1200MB
    /
    The base with NFS, plus Web and print services
    hda4
    700MB
    Extended partition  
    CANNOT be used for any file system, can only contain logical partitions within it
    hda5  
    250MB (of 900 in hda4)
    /var
    Separate the spooling used by print services
    hda6  
    450MB (rest of hda4)
    /home/http
    Web services
    Table 8: Custom Web Server Configuration
    End Exercise
    Scenarios and Solutions
    With all this new-found knowledge and practice in regards to installing Linux, here are some questions about a few real-world scenarios, along with their answers.
    SCENARIOS and Solutions
    On your current PC with a CD-ROM, sound card, and 2MB SVGA S3 video card, you have an unused 300MB partition on the first drive and 350MB on the second drive that you can use for a development and test platform of the X-Window system. What installation options are available to you?
    Workstation Install?69Chosen if you want a simple system.
    Server Install ?69Gives you all the basic networking functions.
    Custom Install?69Allows you to customize it any way you want.
    There is an older 90MHz Pentium PC that will be retired soon with 32MB of RAM and two hard disks of 800MB and 1200MB, respectively. What are your installation options? Why can't you choose any others?
    There is enough space for any installation option. You may not want to use X on such a slow system, but you could run this as an interoffice Web, FTP, NFS, Samba, and/or print server even with a small amount of memory.
    Workstation Install?69Chosen if you want a simple system.
    Server Install?69Gives you all the basic networking functions.
    Custom Install?69Allows you to customize the install any way you want.
    You want to dual boot the help desk machines (all five of them) so Linux is available as an option during reboot. You have a little money to spend on a hardware upgrade, but not enough to replace all the machines. You will want to run X and some network services to connect to the main server for file and print services. What are your installation options? Why can't you choose any others?
    Add a new disk to each machine and maybe add RAM if there is less then 48MB. Adding a new 2+GB disk and upgrading all machines to at least 64MB of RAM will make the systems run better for all OSs, and the added disk space can be shared with the other operating systems, providing enough to do a full install of Linux.
    Workstation Install (recommended)?69Chosen if you want a simple system.
    Custom Install?69Allows you to customize the install any way you want. You cannot use a Server install, because it does not create a dual boot.
    You already have Red Hat Linux 5.2 installed on your machine in five partitions that cover 2GB. None of the information is absolutely critical. What are your installation options? Why can't you choose any others?
    This is a scenario that allows you to be lazy and use either the Workstation or Server install, depending on use. If you want to save some of the information, you can use the Custom option and just reformat the main system partitions.
    Workstation Install?69Chosen if you want a simple system. Wipes out all you old data.
    Server Install (recommended)?69Wipes out all your data. Gives you all the basic networking functions
    Custom Install?69Allows you to customize the install any way you want. You can also preserve the data on some or all of the partition.
    You already have Red Hat Linux 5.2 installed on your machine in five partitions that cover 2GB. Two of the partitions are absolutely critical. What are your installation options? Why can't you choose any of the others?
    Use the Custom installation. You cannot use the Server install. It blows away all other partitions. The Workstation install will delete all old Linux partitions, and would require the backup and restore of critical partition information.
    Certification Summary
    Installation is a very important aspect of the certification process. This chapter has dealt with the decisions necessary when installing Red Hat Linux on either a brand new machine or one with an existing OS.
    Partitioning the disk into usefully assigned partitions is very important. The Custom Installation option provides the most flexible choice for the experienced installer. You can manage and create any number of partitions and install any package combination you want. For a user with little experience installing operating systems, the other two options-the Workstation and Server installation options-may fit your needs perfectly,.
    The Workstation installation creates three partitions from all scavenged Linux partition space, plus any unused disk space such as /boot, swap, and the / (root). It installs a preconfigured set of mostly user application-type packages, then sets up your machine to dual-boot between the old OS and Linux.
    The Server installation option deletes all old partitions, creates six partitions for the various system file structure, installs all the network services software packages, and installs the LILO boot loader to load this installation only.
    The Custom installation option provides the most flexibility, but also requires the most knowledge concerning the details of installations.
    Lab Question
    You need to test Red Hat 7.1 as a replacement for your current RH 6.2 installed Web Server. BUT, you do not want to lose the current 6.2 Web setup just yet. You just want to test 7.1 using the Web pages and CGI scripts to see if they will work. What can you do?
    Lab Answer  
    Scenario 1: Buy a new disk and add it to the system. Then do a custom install to create a new installation of RH 7.1 to partitions on the new disk, adding an entry to /etc/lilo.conf to provide a boot option to both versions of Linux.
    Scenario 2: If you can find about 500MB of free space on any current disk, you can do a custom installation and prune the packages down to just the minimum needed for the OS and Apache. You could use FIPS to repartition the 500MB (assuming you had not already created 16 partitions on IDE or 15 on SCSI) and use that as your sole root (/) partition, reusing the current swap partition. You could then update LILO with access to both versions by creating entries for both in /etc/lilo.conf.
    Scenario 3: No space on server. Hmm … you've got to get creative and either find a test machine you can do the test install on OR back up everything on the main server after taking it off line. Do a quick 7.1 upgrade to the current 6.2 and see how it works. If it fails, you restore everything back to the way it was. Note: Test your backups first before proceeding!!!!

    学习要点:


    . Installation


    3.1 Installation Types/Classes  


    Server  
    Space Requirements  
    Minimum (no GUI) -- 1 GB
    Everything (no GUI) -- 1.3 GB
    Everything, including GUI (KDE & GNOME) -- 2 GB

    File System Setup  
    / = 384 MB
    /boot = 50 MB (Intel arch only)
    /dos = 16 MB (Alpha arch only)
    /var = 256 MB
    /home = 512 MB minimum
    /usr = 1400 MB minimum
    swap = 1 - 2x RAM depending on available disk space

    Removes all existing partitions/OSes

    Workstation  
    Space Requirements  
    KDE or GNOME -- 1.5 GB
    KDE & GNOME -- 1.8 GB

    File System Setup  
    / = 1100 MB minimum
    /boot = 50 MB (Intel arch only)
    /dos = 16 MB (Alpha arch only)
    swap = 1 - 2x RAM depending on available disk space

    xinetd no longer installed by default. Increases security.
    Previously installed OSes are left intact
    Deletes all existing ext2 and ext3 partitions
    Will be configured to dual boot if another OS is present

    Laptop  
    Space Requirements -- Same as Workstation
    File System Setup -- Same as Workstation
    xinetd no longer installed by default. Increases security.
    Previously installed OSes are left intact.
    Deletes all existing ext2 and ext3 partitions
    Will be configured to dual boot if another OS is present.
    Installs laptop related packages (card services, etc.)

    Custom  
    Space Requirements  
    Minimum -- 350 MB
    Everything -- 3.4 GB

    File System Layout  

    With automatic partitioning:  

    / = 700 MB
    /boot = 50 MB (Intel arch only)
    /dos = 16 MB (Alpha arch only)
    swap = 1 - 2x RAM depending on available disk space

    If automatic partitioning is not chosen, then the user configures the layout.  


    Most flexible installation method.

    Upgrade  
    Existing installation must be at least RH 3.0.3.
    Existing data is not lost.
    Upgrades the kernel and all currently installed software packages.


    3.2 Installation Sources  


    CD-ROM  
    Most convenient method.
    Can boot directly from CD-ROM, or create a boot floppy from boot.img/pcmcia.img.

    NFS  
    Create network boot floppy from bootnet.img (or pcmcia.img for laptops).
    Allows for simultaneous installations on multiple machines.

    FTP  
    Create network boot floppy from bootnet.img (or pcmcia.img for laptops).
    Allows for simultaneous installations on multiple machines.
    Handles more simultaneous installations than NFS.

    HTTP  
    Create network boot floppy from bootnet.img (or pcmcia.img for laptops).
    Allows for simultaneous installations on multiple machines.

    Samba  
    Create network boot floppy from bootnet.img (or pcmcia.img for laptops).
    Allows for simultaneous installations on multiple machines.

    Local hard drive  
    Create boot floppy from boot.img.


    3.3 Installation Method  


    GUI  
    Most user friendly.
    Only available for NFS or CD-ROM installations.

    Text Mode  
    Used for http, samba, and ftp installs.
    Can be used for other installs if chosen.
    Type "linux text" at boot prompt to enter text mode.

    Expert Mode  
    Permits manual setup of hardware devices.
    Type "linux expert" at boot prompt to enter expert mode.

    Kickstart  
    Automated installation.
    Must create a Kickstart configuration file(ks.cfg) describing the install.
    ks.cfg can be located locally, or on the network.  
    Local - floppy, cd-rom, or hard drive.
    Network - Must be located on an NFS server. Requires DHCP to be configured and used.

    Installation source can be CD-ROM, http, ftp, or nfs.


    3.4 Partition-less Installs  


    Partitionless installs allow the user to install on an existing FAT partition. In this case FAT refers to a regular FAT or a FAT32 partition. This installation method is not recommended!  


    Requirements  
    Enough space on FAT partition for install.
    A boot disk is necessary since LILO will not be installed.
    FAT partition must be formatted prior to installation.

    Setup  

    During the install, choose an existing FAT partition and assign your / partition to it.  


    Limitations  
    System will be slower.
    Cannot have multiple partitions dedicated to Linux.
    Requires boot disk.


    3.5 Creating Disk Images  


    The boot images are stored on the CD under /images. Images can be created from DOS or in Linux.  

    From DOS -- use RAWRITE.COM and follow the prompts.
    From Linux -- dd if=image of=/dev/fd0 bs=1k
    Available images:  
    bootnet.img - Used for network based install.
    boot.img - Used for CD-ROM and hard drive based install.
    pcmcia.img - Used for installing on laptop machines.
    pcmciadd.img - PCMCIA Driver disk.
    drvblock.img - Additional block drivers.
    drvnet.img - Additional network drivers.
    oldcdrom.img - Additional CD-ROM drivers.


    3.6 Starting the installation from DOS.  


    Execute the following on the CD-ROM: E:\DOSUTILS\AUTOBOOT.BAT  



    3.7 Partitioning  


    Manual  
    Allows user to customize partitions.
    Can use either FDISK or Disk Druid:  
    Disk Druid  
    Easier to use.
    Only available at install time.
    Allows easy configuration for RAID devices.

    FDISK  
    Always available.
    Greater learning curve than Disk Druid.
    Offers more features than Disk Druid.

    Automatic  

    Partitions are automatically configured according to installation type as described above.  


    Partition Types  
    Linux Native = 83
    Linux Swap = 82



    3.8 Rescue Mode  


    RH 6.x - Requires boot.img and rescue.img
    RH 7.x - Must be booted from CD-ROM
    Existing filesystem will be mounted under /mnt/sysimage (7.x only)


    3.9 Boot Disks  


    Use mkbootdisk to create a boot floppy. You must specify a device and a kernel to use.  

    mkbootdisk --device /dev/fd0 `uname -r`
    mkbootdisk `uname -r`                     # Same as above.  Default device is /dev/fd0

    (Note: `uname -r` returns the kernel version.)  


    3.10 Package Selection  


    Custom installations allow you to choose which package groups and/or packages you wish to install. Package groups are defined in /RedHat/base/comps. You can modify existing groups and define your own package groups.


    Boot Loaders


    4.1 Concepts  


    Invocation  

    Invocation of the boot loader usually occurs in one of two ways:  

    BIOS loads the first stage boot loader from the drive's MBR.
    BIOS loads another boot loader which then loads the first stage boot loader from a partition's boot sector.

    The first stage boot loader is also known as Initial Program Loader (IPL). It must be less than 512 bytes in size, so it is fairly limited. It's primary job is to load a more functional boot loader (a.k.a. the second stage boot loader).  


    Configuration  

    There are two different ways to configure a boot loader:  

    Install the first stage of the boot loader on the MBR. It can then be configured to pass control to any desired operating system.
    Install the first stage of the boot loader in the boot sector of a partition. Another boot loader is then installed on the MBR. This other boot loader must be configured to pass control to the Linux boot loader.


    4.2 Lilo  


    Configuration File  
    /etc/lilo.conf  

    Sample File:  

    prompt                  # Present lilo prompt so user can interact with lilo
    timeout=50              # Timeout in milliseconds to wait for user interaction
    default=linux           # Default image to boot
    boot=/dev/hda6          # Specifies boot device (Location to install primary boot loader)
                            # To install in the MBR, specify /dev/hda
    map=/boot/map           # Location of map file
    install=/boot/boot.b    # Location of Second stage boot loader
    password=some_passwd    # A password required to boot
    restricted              # Password only required if options are entered at boot prompt
    message=/boot/message   # Text message or splash screen (PCX) that will be displayed at boot time.
    linear

                                             # Image definition
    image=/boot/vmlinuz-2.4.7-10             # Specifies location of the virtual memory compressed kernel
           label=linux
           initrd=/boot/initrd-2.4.7-10.img  # Initial RAM Disk
           read-only
           root=/dev/hda9                    # Location of root file system

    other=/dev/hda1                          # Image definition
           optional
           label=windows
             

    See lilo.conf man page for an example.  

    Command Line Options  

    -t - Test lilo configuration, but don't actually install.
    -v - Verbose

    Boot Time arguments  

    Command line options can be entered at the boot prompt by appending it to the image that you are booting. For example:  


    linux root=/dev/hda5 mem=128M 1  


    Tells lilo to boot the kernel with a label of "linux" into runlevel 1 using /dev/hda5 as the root filesystem. It also states the machine has 128 MB of RAM.  


    If lilo has been password protected, you will be required to enter the password before booting.  


    Errors  

    The 'LILO' prompt itself can be used to help diagnose boot related errors. The number of letters presented at the LILO prompt can indicate the success or failure of the boot loader.  


    L = First stage boot loaded and started. Usually indicates disk problems or invalid options in /etc/lilo.conf.  

    LI = Second stage boot loaded from /boot, but /etc/lilo.conf has invalid parameters or /boot/boot.b was moved without re-running /sbin/lilo.  

    LIL = Second stage loader started, but the descriptor table can't be loaded due to a bad disk or invalid parms in /etc/lilo.conf.  

    LIL? = Second stage loaded at an incorrect address because of invalid parms in /etc/lilo.conf or /boot/boot.b was moved without re-running /sbin/lilo.  

    LIL- = Descriptor table is corrupt. Caused by invalid parms in /etc/lilo.conf or /boot/boot.b was moved without re-running /sbin/lilo.  

    LILO = All of LILO loaded correctly.


    Limitations  
    Must be installed on the 1st or 2nd IDE drive.
    Limited by BIOS (uses BIOS to load kernel off of disk).
    Must re-run /sbin/lilo every time you change your configuration.

    Fixing a corrupt MBR  

    Use lilo to fix:  


    /sbin/lilo  


    Uninstalling LILO  

    When LILO overwrites an existing boot sector, it saves a copy of the original boot sector in /boot. The name of the original boot sector will be boot.MMmm where 'MM' is the major device number and 'mm' is the minor device number. So, the original boot sector from /dev/hda will be /boot/boot.0300.  


    To restore the original boot sector, use the dd command:  

    dd if=/boot/boot.0300 of=/dev/hda bs=446 count=1


    The original boot sector is actually 512 bytes in length, but the remaining bytes after 446 are part of the partition table and we don't want to overwrite that in case it's changed.  



    Initial RAM Disk  
    Need: Allows necessary drivers to be loaded at boot time that aren't compiled directly into the kernel.
    Creation: Use mkinitrd to create the initial RAM disk:  
    mkinitrd /boot/initrd-2.4.7-10 2.4.7-10

    Setup: Specify in /etc/lilo.conf file as shown above.


    4.3 Grub  


    Features  
    Command line interface available at boot prompt.
    Can boot from multiple file systems including ext2/3, Reiserfs, FAT, minix, and FFS
    Password protection using MD5
    Changes to configuration file take effect immediately. Don't have to re-install MBR.

    Configuration File  
    /boot/grub/grub.conf  

    Sample Configuration  

    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /boot/, eg.
    #          root (hd0,0)
    #          kernel /vmlinuz-version ro root=/dev/hdb5
    #          initrd /initrd-version.img
    #boot=/dev/hdb
    default=0                                   # Default to First definition for booting
    timeout=10                                  # Time in seconds to wait for user interaction
    splashimage=(hd1,0)/grub/splash.xpm.gz      # Splash Screen
    password --md5 $1$揉砺鮔踭$Z..............  # Password protection

    title Red Hat Linux (2.4.17)                # First definition
            root (hd1,0)
            kernel /vmlinuz-2.4.17 ro root=/dev/hdb5

    title Red Hat Linux (2.4.17pre2-pk)         # Second definition
            root (hd1,0)
            kernel /vmlinuz-2.4.17pre2-pk ro root=/dev/hdb5

    title Red Hat Linux (2.4.17pre2)
            root (hd1,0)
            kernel /vmlinuz-2.4.17pre2 ro root=/dev/hdb5

    title Windows 98SE
            rootnoverify (hd0,0)
            makeactive
            chainloader +1


    Boot Time arguments  

    In order to pass arguments to the image being booted, you must enter menu editing mode, or enter the grub command line. If GRUB has been password protected, you'll need to enter 'p' followed by your password first.  


    To enter menu editing mode, select and entry and press 'e'. This will allow you to modify an existing boot setup and pass options to the kernel as well as init.  


    The GRUB command line allows you to create boot commands that don't exist in your grub.conf file. You can also run diagnostic tests and view the contents of files on your file systems.  


    Device Names according to Grub  
    (fd0) - First floppy drive detected by BIOS
    (hd0) - First hard drive detected by BIOS (SCSI or IDE)
    (hd1,3) - Fourth partition on the 2nd hard drive detected by the BIOS

    Fixing a corrupt MBR  

    Use grub-install to fix:  


    /sbin/grub-install /dev/hda  


    Multi-disk scenario  

    In this situation, we have a nameless OS installed on /dev/hda and Linux installed on /dev/hdb. We need to setup grub to boot both OSes. This involves installing the first stage of grub on the MBR of /dev/hda and the second stage of grub on the /boot partition of /dev/hdb. We will use the grub configuration file listed above. This scenario assumes you either have a working system or are running in rescue mode chroot'd to /mnt/sysimage.  


    Launch a grub shell:  

    /sbin/grub  


    Note: The remaining steps will performed from within the "grub shell".  


    Set the root device:  

    root (hd0,0)  


    Specify where to install various boot stages:  

    install (hd1,0)/grub/stage1 (hd0) (hd1,0)/grub/stage2 p (hd1,0)/grub/grub.conf  


    The above command line can be broken down as follows:  


    install <stage-1> <install-disk> <stage-2> p <config file>  




    4.4 DOS Based  


    Loadlin - Capable of booting multiple OSes
    Syslinux - Used by RH installation program.

    5.1 Steps  


    BIOS loads first stage boot loader from the first sector of available disks (floppy, hard drive, cd-rom, etc.)
    First stage boot loader then loads the second stage boot loader.
    Second stage boot loader allows user to choose what kernel to boot.
    Chosen kernel then booted and devices are initialized.
    Kernel then executes init process.
    Init starts services according to /etc/inittab:  

    rc.sysinit - System initialization scripts  
    Mounts /proc.
    Configures Kernel parameters (via sysctl)
    Configures system clock.
    Sets host name.
    Initialize USB and HID devices.
    Configure PnP.
    Determines module dependencies.
    Setup any RAID devices.
    Performs file system checks if needed.
    Mounts file systems.
    Starts user quotas.
    Enable process accounting.
    Starts swap.
    Initialize serial ports.
    Dump boot messages to /var/log/dmesg
    Much more....

    rc - Configures services based on runlevel  
    Stop services that begin with "K" in /etc/rcX.d where X is the runlevel.
    Start services that begin with "S" in /etc/rcX.d where X is the runlevel.

    rc.local - Configures any system specific information (deprecated).  

    Other, runlevel specific services started according to /etc/inittab.  
    mingetty (except for runlevel 1).
    xdm (runlevel 5).


    5.2 /etc/inittab  


    This file contains information needed by init to configure the system. Entries in the file have a specific format:  


    id:runlevel:style:command to run  


    id - A 1-4 character field the creates a unique identifier for the entry.
    runlevel - Specifies the runlevel(s) that the entry applies to.
    style - Specifies how the command is executed.  
    respawn - Process is restarted if it ever dies.
    wait - Process is started once when the specified runlevel is entered. Init will wait for it to finish before proceeding.
    once - Process will be executed once when the specified runlevel is entered.
    boot - Process will be executed during system boot (runlevel field is ignored).
    bootwait - Same as boot, except init will wait for it to complete before continuing.
    initdefault - Specifies default run level (command field ignored).
    sysinit - Process executed during boot before any boot or bootwait entries.
    powerwait - Process executed when power goes down. Init waits for it to complete.
    powerfail - Same as powerwait, except init doesn't wait for it to complete.
    powerokwait - Executed when power is restored. Init waits for it to complete.
    powerfailnow - Executed when battery on UPS is almost dead.
    ctrlaltdel - Process executed when init receives SIGINT signal (CTRL+ALT+DEL was pressed).
    command - Specifies process to execute.


    5.3 Viewing boot up information.  


    Boot information displayed during boot up is stored in /var/log/dmesg.
    Use 'dmesg' command to view.


    5.4 Run Levels  


    0 - Halt (Don't set default runlevel to this!)
    1 - Single User mode
    2 - Multi-user mode without NFS
    3 - Full multi-user mode
    4 - Unused
    5 - X11 (with networking)
    6 - Reboot (Don't set default runlevel to this!)


    5.5 Default Run Levels  


    Workstation/Laptop = 5
    Server = 3
    Custom with X = 5
    Custom w/o X = 3

    6. Service Management


    6.1 Types of services  


    System V services  
    Managed by System V init scripts
    Scripts are stored in /etc/init.d

    xinetd services  
    Services started by the xinetd daemon.
    xinetd service control files located in /etc/xinetd.d
    Defaults for xinetd set in /etc/xinetd.conf
    xinetd itself is a System V service.

    init services  
    Configured in /etc/inittab.
    Provides respawn capability if service dies.


    6.2 Management tools  


    System V services  
    service - Start/Stop services (CLI).  

    Example: To restart Apache:  

    service httpd stop
    service httpd start
             

    or  
    service httpd restart
             

    chkconfig - Configure services by runlevel (CLI). Doesn't affect currently running services. Defaults to runlevels 3,4, and 5 if none specified.  

    To enable Apache on runlevels 3, 4, and 5:  

    chkconfig httpd on     # If runlevels aren't specified, default is 345
             

    To enable Apache only on runleves 3 & 5:  
    chkconfig --level 35 httpd on
             

    ntsysv - Configure services by runlevel (TUI).  

    Default is to configure current run level. Use "--level" option to specify a different runlevel.  


    tksysv - Configure services by runlevel (GUI) (Deprecated).

    xinetd services  
    chkconfig - Configures running services. Takes effect immediately on xinetd services.  

    To start vsftp:  

        chkconfig vsftp on
             


    Edit service configuration file in /etc/xinetd.d/ directly. To enable, specify "disable = no". To disable, specify "disable = yes". After changing file, xinetd must either be given a USR2 signal so it re-reads it's configuration file or be restarted.  
        killall -USR2 xinetd
             


    init services  

    The only way to modify init based services is to edit /etc/inittab. After modifying the file, activate the changes by executing "init q".  

    7. User & Group Administration


    7.1 Adding Users  


    useradd  
    Command line interface
    If not specified, defaults in /etc/defaults/useradd and /etc/login.defs are used.
    Defaults:  
    userid - lowest unused value >= UID_MIN in /etc/login.defs.
    home directory - /home/<username>.
    primary group - a group with the same name as the username.
    shell - /bin/bash.

    Options:  
    -u - userid
    -g - primary group
    -s - shell
    -d - home directory
    -c - comment (Commonly used to specify full name)
    -m - make the home directory if it doesn't already exist
    -M - don't create the user's home directory regardless of the defaults
    -G - a list of supplementary groups that the user will belong to (separate with commas)
    -n - don't create a group with the same name as the user
    -r - create a system account (uid < UID_MIN in /etc/login.defs)
    -D - displays defaults if no other options are given
        -b - change default home (when used with -D)
        -g - change default group (when used with -D)
        -s - change default shell (when used with -D)
             

    Copies the contents of /etc/skel into user's home directory to setup the default user environment.
    Can specify a password with useradd using the -p option, but recommend using /usr/bin/passwd to set the user's password.
    Example - To add user "steve" using all of the defaults and set his password, type:  
    useradd steve
    passwd steve
             

    Login names can contain alphanumeric, -, and _. Maximum length is 256.

    redhat-config-users  
    GUI
    Uses same defaults as useradd.
    Can specify password.


    7.2 Modifying Users  


    usermod  
    Command line interface.
    Options: Similar as useradd above.
    Example - To change steve's shell to /bin/ksh, type:  

    usermod -s /bin/ksh steve  


    redhat-config-users


    7.3 Deleting Users  


    userdel  
    Command line interface.
    Options.  

    -r - removes the user's home directory and mail spool.  


    Example - To remove user steve, his home directory, and his mail spool, type:  

    userdel -r steve  


    redhat-config-users


    7.4 Adding Groups  


    groupadd  
    Command line interface
    If not specified, defaults in /etc/login.defs are used.
    Defaults:  
    groupid - lowest unused value >= GID_MIN in /etc/login.defs.

    Options:  
    -g - groupid
    -r - create a system group (gid < GID_MIN in /etc/login.defs)
    -f - exit with an error if group already exists
             

    Example - To add a group called "jedi" using the defaults, type:  

    groupadd jedi  


    redhat-config-users


    7.5 Modifying Groups  


    groupmod  
    Command line interface
    Options:  
    -g - new groupid
    -n - new group name
             

    Example - To change the name of group "jedi" to "Jedi", type:  

    groupmod -n Jedi jedi  


    redhat-config-users


    7.6 Deleting Groups  


    groupdel  
    Command line interface
    Options: None
    Example - To remove group "Jedi", type:  

    groupdel Jedi  


    redhat-config-users


    7.7 User environment configuration  


    Global  
    /etc/profile  
    System wide environment setup for Bourne type shells (ksh, sh, bash, etc.)
    Executed only for login shells.
    Executes /etc/profile.d/*.sh

    /etc/bashrc  
    System wide functions and aliases for Bourne type shells (ksh, sh, bash, etc.)
    Executed for all shell invocations.

    /etc/csh.login  
    System wide environment setup for C type shells (ksh, sh, bash, etc.)
    Executed only for login shells.
    Executes /etc/profile.d/*.csh

    /etc/csh.cshrc  
    System wide functions and aliases for C type shells (ksh, sh, bash, etc.)
    Executed for all shell invocations.

    Per User  

    Each user's home directory may contain several environment configuration files.  

    .bashrc - Same as /etc/bashrc above.
    .bash_profile - same as /etc/profile above.
    .bash_logout - executed when the user logs out.
    .kde, .kderc - KDE configuration information.
    Desktop - GNOME configuration information.
    .xinitrc - Starts various X clients (not used in RH by default, see .Xclients instead).
    .Xclients - Executes .Xclients-default
    .Xclients-default - Starts the specified window manager

    /etc/skel  

    This directory contains all of the default setup files that get copied to a users home directory when they are created.  




    7.8 User Private Groups  


    Red Hat uses the user private groups scheme. With this scheme, each user has their own primary group in which they are the sole member. This allows for a default umask of 002.  



    7.9 Shadow file  


    With traditional unix, user passwords were stored in the /etc/passwd file. Because this file has to be world readable in order for the system to function properly, it allowed everyone on the system to view the encrypted version of everyone's password. The shadow file fixes this problem. The user's encrypted password is now stored in the /etc/shadow file which is only readable by root.  



    7.10 Communicating with users.  


    Determining who is Logged In  

    users - Uses /var/run/utmp by default to determine who is logged. Can specify another file to use such as /var/log/wtmp.  

    w - Uses /var/run/utmp to report who is logged in. Also displays if the user is idle and the last command executed by the user.  

    who - Uses /var/run/utmp by default to determine who is logged. Can specify another file to use such as /var/log/wtmp. Also shows the tty the user is logged into, and the time he/she logged in.

    User Related Commands  

    tty - Displays the terminal that the tty command was executed on.  

    wall - Sends a message to all users that are logged in locally.  

    write - Creates a half-duplex communications with another user.  

    mesg - Used to enable/disable incoming messages from other users. When disabled, it prevents other users from using the "write" command to talk to you.


    7.11 User & Group Quotas  


    Overview  
    Allow limitations to be set on the number of files and disk space used.
    Configured by user and/or group.
    ext2, ext3, and reiser file systems only (reiser supported as of RH 7.1).
    Kernel must be compiled with quota support (CONFIG_QUOTA=y).
    Enabled at boot time by rc.sysinit for any file system that has usrquota or grpquota listed in it's options field.
    Quota information maintained by kernel while system is running.

    File System Configuration  

    /etc/fstab  

    Must set usrquota/grpquota options in /etc/fstab. For example, to enable user and group quota's on /home:  

    LABEL=/home   /home    ext3    defaults   1 2
             

    should be changed to:  
    LABEL=/home   /home    ext3    defaults,usrquota,grpquota   1 2
             

    aquota.user & aquota.group  

    Exist in the root of each file system in which quotas are configured.
    Store quota information.
    Create with quotacheck:  

    quotacheck -vug /home  


    or  


    quotacheck -avug  


    To check all file systems that have quota's enabled in /etc/fstab.  


    quotacheck checks the current quota information for all users. It must be ran to collect initial quota information.  


    Options:  
    -a - scan all file systems with quotas enabled in /etc/fstab
    -v - verbose
    -g - scan for group quotas
    -u - scan for user quotas
                            


    Modifying quotas  

    edquota is used to modify user and group quotas.  


    Users  

    edquota -u steve  


    Displays quota information for user steve in a text editor for editing. All file systems with quotas enabled are shown. Inode and block information can be changed.  


    Groups  

    edquota -g users  


    Same as above only for group users instead.  


    Prototypes  

    Once a user's quota has been configured, he/she can be used as a prototype for other users. For example, to use steve's quotas as a prototype for other users, type:  


    edquota -p steve luke darth yoda  


    This will copy steve's quota settings to luke, darth and yoda.  


    Enabling/Disabling Quotas  

    To enable:  

    quotaon -ug /home  


    for a specific file system, or  


    quotaon -aug  


    for all file systems with quotas enabled in /etc/fstab  


    To disable:  

    Same as quotaon, only use quotaoff instead.  


    Limits  

    Soft  

    Maximum amount of space or files user/group can use.  


    Hard  

    Only used if grace periods are in effect, otherwise they are ignored and soft limits are used to enforce file system limits.  


    Grace Periods  

    If used, users may exceed their soft limits up to their hard limits for a period of days specified by the grace period. After the grace period expires, the user can no longer exceed their soft limit.  


    Grace periods are set using edquota -t.  


    Reporting  

    To report quota information, use repquota:  

    repquota -a
    repquota -u /
    repquota -u steve

    The first line shows quota information for all users and groups for all file systems. The second line shows user quota information for the / file system. The third line shows quota information for user steve on all file systems.  

    Quota Conversion  

    Changes were made to quotas in RH 7.1. To convert older quotas from pre RH 7.1, use the convertquota:  


    convertquota -ug /home  


    Converts old quotas in the /home file system to the new quotas. Note that the old quotas used quota.user and quota.group instead of aquota.user and aquota.group.  


    Quotas over NFS  

    Since NFS maps remote users to local users, set the quotas on the local users that you plan to map the remote users to.  

    8. Network Administration


    8.1 Utilities  


    ifconfig  

    ifconfig is used to configure network interfaces.  


    Example:  


    ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up  


    This configures interface eth0 with an IP of 192.168.1.10/255.255.255.0. Note that "up" is assumed if left off. A default network mask will also be determined by the IP if it is not specified.  


    route  

    route is used configure routing information.  


    Example:  

    route add -net 10.20.30.40 netmask 255.255.255.248 eth0
    route add -net 10.20.30.48 netmask 255.255.255.248 gw 10.20.30.41
             


    The first line states that the route to network 10.20.30.40/255.255.255.248 is through our local interface eth0. The second line states that the route to network 10.20.30.48/255.255.255.248 is through gateway 10.20.30.41  


    arp  

    arp is used to administer the arp cache. It can view, add, and delete entries in the cache.  


    View arp cache:  

    arp  


    This will display something like:  

    Address           HWtype  HWaddress           Flags Mask     Iface
    192.168.1.1       ether   00:60:08:27:CE:A2   C              eth0
    192.168.1.12      ether   00:80:5F:01:74:13   C              eth0
    192.168.1.15      ether   00:60:08:27:CE:B2   CM             eth0
    192.168.1.20      ether   00:A0:CC:25:9F:4C   C              eth0
             


    The "C" flag means it's a complete entry. The "M" flag indicates it's an entry added manually and it is permanent.  


    Add an entry:  

    arp -s 192.168.33.15 00:60:08:27:CE:B2  


    Delete an entry:  

    arp -d 192.168.33.15  



    ping  

    ping is used to troubleshoot network/host connectivity. It uses ICMP echo request and echo reply to test the connectivity. If a host doesn't respond, it could be for any number of reasons:  


    The remote host is down.
    The remote host is filtering ICMP packets.
    Some point in the network in-between the two hosts is down.
    A device in-between the two hosts is filtering ICMP packets.

    Examples:  

    ping 192.168.1.12
    ping -b 192.168.1.0
             

    The first line pings a single host, 192.168.1.12. The second line performs a broadcast ping to all hosts on the 192.168.1.0 network.  

    traceroute  

    traceroute is also used to test network/host connectivity. However, it displays each hop along the way from the source to the destination. It can help you determine if the problem is with the remote host itself, or some point in-between the hosts.  


    Example:  


    traceroute 192.168.10.100  


    This will print a line for each hop in-between the local and remote host (192.168.10.100) as well as a line for the final destination up to a maximum of 30 hops.  


    netstat  

    netstat provides a lot of useful information, including:  


    Routing tables.
    Interface statistics (dropped packets, buffer overruns, etc.)
    Network connections.
    Multicast memberships.

    Examples:  

    netstat -i    # Display interface statistics
    netstat -lpe  # Display all listening sockets and the programs that own them
    netstat -r    # Display routing information
    netstat -ape  # Show all listening and non-listening sockets
             


    netconfig  

    TUI based.
    Used to configure network interface.
    Used by text based installation methods.

    redhat-config-network  

    This is a GUI administration tool that allows you to configure several aspects of your networking: interfaces, boot protocols, host resolution, routing, and more.  


    ifup / ifdown  

    These shell script wrappers allow you to bring an interface up and take it down. They use the configuration information in the /etc/sysconfig directory to configure the interface specified.  


    For example, to bring up interface eth0, simply type:  


    ifup eth0  



    8.2 Configuring Interfaces  


    Configuration files  

    The configuration files for network interfaces all reside in /etc/sysconfig. For a complete description of these configuration files, see /usr/share/doc/initscripts-X.XX/sysconfig.txt where X.XX is the version of initscripts that you have installed.  


    network  

    Options:  

    NETWORKING=yes
    HOSTNAME=localhost.localdomain
             

    The first option enables networking, and the second sets the host name. A default gateway can also be specified here using the "GATEWAY=" option, but it is usually specified in the "ifcfg-<device>" scripts for devices now.  

    network-scripts/ifcfg-<device>  

    This contains the configuration options for a single interface.  


    For a device that uses DHCP, it may look like:  
    DEVICE=eth0
    BOOTPROTO=dhcp
    ONBOOT=yes               # Start at boot up?
    IPXPRIMARY_802_2="no"
    IPXACTIVE_802_2="no"
    IPXPRIMARY_802_3="no"
    IPXACTIVE_802_3="no"
    IPXPRIMARY_ETHERII="no"
    IPXACTIVE_ETHERII="no"
    IPXPRIMARY_SNAP="no"
    IPXACTIVE_SNAP="no"
    TYPE=Ethernet
    USERCTL=no               # Allow users to control this interface?
    NETWORK=192.168.33.0
    BROADCAST=192.168.33.255
    PEERDNS=no               # Should we modify /etc/resolv.conf if using DHCP or BOOTP?
                     

    Most of the items above should be self explanatory. The only required options for a client using DHCP are "DEVICE" and "BOOTPROTO".  

    For a device using a statically assigned IP, it will look similar to this.  
    DEVICE=eth0
    BOOTPROTO=static
    ONBOOT=yes               # Start at boot up?
    IPXPRIMARY_802_2="no"
    IPXACTIVE_802_2="no"
    IPXPRIMARY_802_3="no"
    IPXACTIVE_802_3="no"
    IPXPRIMARY_ETHERII="no"
    IPXACTIVE_ETHERII="no"
    IPXPRIMARY_SNAP="no"
    IPXACTIVE_SNAP="no"
    TYPE=Ethernet
    USERCTL=no               # Allow users to control this interface?
    NETWORK=192.168.33.0
    BROADCAST=192.168.33.255
    PEERDNS=no               # Should we modify /etc/resolv.conf if using msdns?
    IPADDR=192.168.33.50
    GATEWAY=192.168.33.1     # Default Gateway
    NETMASK=255.255.255.0
                     

    The only required options are "DEVICE" and "IPADDR". Most of the other options can be derived from the IPADDR if your network is configured based on network classes. If you aren't subnetting on an octet, a netmask is required.

    Manual Configuration  

    One way to configure an interface is to edit the above files directly with a text editor. After you are done editing them, execute an "ifdown" followed by an "ifup". This should reset your interfaces to the new values you've specified.  


    GUI Configuration  

    You can also use the "redhat-config-network" tool to configure your interfaces.  



    8.3 Configuring Routes  


    Configuration files  

    The configuration files for routing are also located under /etc/sysconfig.  


    static-routes  

    This file contains static routing information that should be added to the routing tables when interfaces are brought up. It has the following format:  


    <device> host|net <arguments to route command>  


    For example:  


    eth0 net 10.20.30.0 netmask 255.0.0.0 gw 192.168.1.50  


    Adds a route to network 10.20.30.0/255.0.0.0 using the gateway at 192.168.1.50 to device eth0.  


    network-scripts/ifcfg-<device>  

    For devices with static IPs, this file is typically used to specify the default gateway for the device (see Interface Configuration above).  


    Manual Configuration  

    Same as "Interface Manual Configuration" above.  


    GUI Configuration  

    Same as "Interface GUI Configuration" above.  



    8.4 Host Resolution  


    DNS  

    Host names can be resolved using DNS or through a local lookup file /etc/hosts. By default, /etc/hosts is consulted before performing a DNS lookup. However, the resolution order can be changed by modifying /etc/nsswitch.conf.  


    /etc/hosts format:  
    IP address      Host Name                  Aliases
             


    Example:  

    127.0.0.1       localhost
    192.168.1.1     gateway.somedomain.com    gateway   gate gw
    192.168.1.20    somehost.somedomain.com   somehost  some
    192.168.1.25    otherhost.somedomain.com  otherhost
             

    /etc/resolv.conf  

    This contains the ip addresses of up to 3 DNS servers that will be consulted when trying to perform host name lookups.  


    Format:  

    nameserver  192.168.1.2
    nameserver  192.168.1.3
    domain somedomain.com
    search somedomain.com otherdomain.com
             

    The "domain" options specifies the local domain. If a host lookup is performed and a FQDN isn't specified, this domain is appended to the host name to create the FQDN. The "search" options specifies the order in which the domains should be queried if a host lookup is requested without specifying a FQDN. The "domain" and "search" options are mutually exclusive. If both are specified, the last one given is used.  

    NIS  

    COMPLETE ME!  


    LDAP  

    COMPLETE ME!  

    9. Other System Administration


    9.1 Date/Time  


    redhat-config-time  

    a.k.a redhat-config-date, dateconfig
    GUI based.
    Set system time/date.
    Select timezone.
    Enable Network Time Protocol (NTP).
    Set whether hardware clock is set to UTC.

    timeconfig  

    TUI based.
    Select timezone.
    Set whether hardware clock is set to UTC.

    date  

    CLI based.
    Set system date/time.

    hwclock  

    Used to query/set hardware clock.
    Can sync the hardware clock to the system clock and vice-versa.
    Hardware clock used at boot up to set system clock, then never used again during normal operation.
    Hardware clock is synced to the system clock at shutdown.


    9.2 Keyboard  


    kbdconfig  

    TUI based.
    Sets the default keyboard map.
    Value stored in /etc/syconfig/keyboard (KEYTABLE="us").

    kbdrate  

    Sets keyboard repeat rate and delay:  


    kbdrate -r30 -d0  


    Sets the repeat rate to 30 characters per second (the max) and a repeat delay of 250 ms (lowest possible).  



    9.3 Mouse  


    mouseconfig  

    Configures file links and modifies configuration files necessary to use a mouse.
    TUI or CLI
    Modifies X Configuration file
    CLI Options:  
    --modifyx       # Modify X configuration file
    --device <dev>  # Specify device to use for mouse
    --noprobe       # No automatic probing is done
    --emulthree     # Enable 3 button emulation
    --kickstart     # Forces mouseconfig to run in non-interactive mode and
                    # probe for as much information about the mouse as possible
             


    Xconfigurator  

    See section on X for more information.  



    9.4 Sound  


    sndconfig  

    TUI based.
    Options:  
    --noprobe        # Prevent probing of PnP cards
    --noautoconfig  # Allow user to choose settings for card
             



    9.5 RH System configuration files  


    RH stores many sys config files under /etc/sysconfig:  


    Note: The following is taken from the sysconfig.txt file provided in Red Hat's initscripts (version 6.40) package. Obsolete options have been removed.  


    /etc/sysconfig/authconfig  

      used by authconfig to store information about the system's user
      information and authentication setup; changes made to this file
      have no effect until the next time authconfig is run

        USEHESIOD=no
          Whether or not the hesiod naming service is in use.  If not set,
          authconfig examines the passwd setting in /etc/nsswitch.conf.
        USELDAP=no
          Whether or not LDAP is used as a naming service.  If not set,
          authconfig examines the passwd setting in /etc/nsswitch.conf.
        USENIS=no
          Whether or not NIS is in use.  If not set, authconfig examines
          the passwd setting in /etc/nsswitch.conf.

        USEKERBEROS=no
          Whether or not Kerberos is in use.  If not set, authconfig examines
          the settings in /etc/pam.d/system-auth.
        USELDAPAUTH=no
          Whether or not LDAP is being used for authentication.  If not set,
          authconfig examines the settings in /etc/pam.d/system-auth.  Note
          that this option is separate from USELDAP, and that neither implies
          the other.
        USEMD5=no
          Whether or not MD5-based hashing should be used when setting passwords.
          If not set, authconfig examines the settings in /etc/pam.d/system-auth.
          This option affects authentication using both local files and LDAP.
        USESHADOW=no
          Whether or not shadow passwords are in use.  If not set, authconfig
          checks for the existence of /etc/shadow.
        USESMBAUTH=no
          Whether or not SMB authentication is in use.  If not set, authconfig
          examines the settings in /etc/pam.d/system-auth.

    /etc/sysconfig/autofsck  
      does not normally exist; if it does, it can influence a choice
      whether or not to fsck after a crash

        AUTOFSCK_TIMEOUT=5
          Number of seconds to wait for console user to make a choice
        AUTOFSCK_DEF_CHECK=no
          If the user does not respond, choose whether or not to fsck

    /etc/sysconfig/clock:  
        UTC=true indicates that the clock is set to UTC; anything
          else indicates that it is set to local time
        ARC=true on alpha only indicates the ARC console's
          42-year time offset is in effect; otherwise the normal
          Unix epoch is assumed
        ZONE="filename" indicates the zone file under /usr/share/zoneinfo
          that /etc/localtime is a copy of, for example:
            ZONE="US/Eastern"

    /etc/sysconfig/desktop:  
      DESKTOP=GNOME|KDE|AnotherLevel
         This determines the display manager started by /etc/X11/prefdm

    /etc/sysconfig/init:  
      BOOTUP=<some boot up mode>
         BOOTUP=color means new (as of RH6.0) boot display.
         BOOTUP=verbose means old style display
         Anything else means new display, but without ANSI-formatting
      LOGLEVEL=<a number>
         Sets the initial console logging level for the kernel.
         The default is 7. 8 means everything (including debugging);
         1 means nothing except kernel panics. syslogd will override
         this once it starts.
      RES_COL=<a number>
         Column of the screen to start status labels at. Defaults to 60
      MOVE_TO_COL=<a command>
         A command to move the cursor to $RES_COL. Defaults to nasty
         ANSI sequences output by echo -e.
      SETCOLOR_SUCCESS=<a command>
         A command to set the color to a color indicating success.
         Defaults to nasty ANSI sequences output by echo -e setting
         the color to green.
      SETCOLOR_FAILURE=<a command>
         A command to set the color to a color indicating failure.
         Defaults to nasty ANSI sequences output by echo -e setting
         the color to red.
      SETCOLOR_WARNING=<a command>
         A command to set the color to a color indicating warning.
         Defaults to nasty ANSI sequences output by echo -e setting
         the color to yellow.
      SETCOLOR_NORMAL=<a command>
         A command to set the color to 'normal'. Defaults to nasty
         ANSI sequences output by echo -e.
      PROMPT=yes|no
         Set to 'no' to disable the key check for interactive mode.

    /etc/sysconfig/keyboard:  
      KEYTABLE=<keytable file>
         for example: KEYTABLE="/usr/lib/kbd/keytables/us.map"

         If you dump a keymap (using 'dumpkeys') to
            /etc/sysconfig/console/default.kmap
         it will be loaded on bootup before file systems are mounted/checked.
         This could be useful if you need to emergency type the root password.
         This has to be a dumped keymap, as opposed to copying the shipped
         keymap files, as the shipped files include other maps from the
         /usr/lib/kbd/keytables directory.

      KEYBOARDTYPE=sun|pc
        on SPARC only, sun means a sun keyboard is attached on /dev/kbd,
        pc means a PS/2 keyboard is on ps/2 port.

    /etc/sysconfig/mouse:  
      MOUSETYPE=microsoft|mouseman|mousesystems|ps/2|msbm|logibm|atibm|
        logitech|mmseries|mmhittab
      XEMU3=yes|no (emulate three buttons with two buttons whenever
        necessary, most notably in X)
      DEVICE=<a device node> (the device of the mouse)

      In addition, /dev/mouse points to the mouse device.

    /etc/sysconfig/network:  
      NETWORKING=yes|no
      HOSTNAME=<fqdn by default, but whatever hostname you want>
      GATEWAY=<gateway IP>
      GATEWAYDEV=<gateway device> (e.g. eth0)
      NISDOMAIN=<nis domain name>
      IPX=yes|no
      IPXAUTOPRIMARY=on|off (note, that MUST be on|off, not yes|no)
      IPXAUTOFRAME=on|off (again, not yes|no)
      IPXINTERNALNETNUM=<netnum>
      IPXINTERNALNODENUM=<nodenum>

      NETWORKING_IPV6=yes|no
        Enable or disable global IPv6 initialization
      IPV6FORWARDING=yes|no
        Enable or disable global forwarding of incoming IPv6 packes
        on all interfaces.
        Note: Actual packet forwarding cannot be controlled per-device.
      IPV6INIT=yes|no
        Enable or disable IPv6 configuration for all interfaces.
        Use with caution!

      IPV6_AUTOCONF=yes|no
        Sets the default for device-based autoconfiguration.
        Default: yes if IPV6FORWARDING=no, no if IPV6FORWARDING=yes
      IPV6_ROUTER=yes|no
        Sets the default for device-based Host/Router behaviour.
        Default: yes if IPV6FORWARDING=yes, no if IPV6FORWARDING=no
      IPV6_AUTOTUNNEL=yes|no
        Controls automatic IPv6 tunneling.

      IPV6_TUNNELMODE=IP|NBMA [OPTIONAL: IP by default]
        Mode of tunnel setup
        IP: separate tunnel device mode (now recommeded)
        NBMA: NBMA-styled tunnel mode (now mostly obsolete)

      All IPv6 options can be overridden in interface-specific configuration.

      All the IPX stuff is optional, and should default to off.

    /etc/sysconfig/static-routes:  
      Contains lines of the form:

        <device> host|net <arguments to route command>

      <device> may be a device name to have the route brought up and
      down with the device, or "any" to have the correct devices calculated
      at run time.

      For example:

      eth0 host 192.168.2.2 eth0

      adds a host route through eth0 to 192.168.2.2, while

      any net 192.168.2.0 netmask 255.255.255.0 ppp0

      adds a network route to the 192.168.2.0 network through ppp0.

    /etc/sysconfig/static-routes-ipv6:  
      Contains lines of the form:

        <device> ipv6network ipv6gateway
        <tunneldevice> ipv6network

      <device> must be a device name to have the route brought up and
      down with the device

      For example:

      eth0   fec0:0:0:2::/64                         fec0:0:0:1:0:0:0:20
       adds a route for IPv6 network fec0:0:0:2::/64 through fec0:0:0:1:0:0:0:20

      eth0    2000::/3                              3ffe:400:100:f101::1
      eth0    3ffe::/16                             3ffe:400:100:f101::1
       so-called "default" route for clients

      sit1    2000::/3
      sit1    3ffe::/16
       adds routes through virtual tunnel sit1

    /etc/sysconfig/routed:  
      SILENT=yes|no
      EXPORT_GATEWAY=yes|no

    /etc/sysconfig/rawdevices:  
      This is used for setting up raw device to block device mappings.
      It has the format:
            <rawdev> <major> <minor>
            <rawdev> <blockdev>
      For example:
         /dev/raw/raw1 /dev/sda1
         /dev/raw/raw2 8 5

    /etc/sysconfig/pcmcia:  
      PCMCIA=yes|no
      PCIC=i82365|tcic
      PCIC_OPTS=<socket driver (i82365 or tcic) timing parameters>
      CORE_OPTS=<pcmcia_core options>
      CARDMGR_OPTS=<cardmgr options>

    /etc/sysconfig/amd:  
      ADIR=/.automount  (normally never changed)
      MOUNTPTS='/net /etc/amd.conf'  (standard automount stuff)
      AMDOPTS=  (extra options for AMD)

    /etc/sysconfig/tape:  
      DEV=/dev/nst0
        Tape device.  Use the non-rewinding one for these scripts.

        For SCSI tapes this is /dev/nst#, where # is the number of the
        tape drive you want to use.  If you only have one then use
        nst0.

        For IDE tapes you use /dev/ht#, where # is the number of the tape
        drive you want to use (usually ht0).

        For floppy tape drives use /dev/ftape.

      ADMIN=root
        Person to mail to if the backup fails for any reason

      SLEEP=5
        Time to sleep between tape operations.  Some drives need a bit
        more than others, but 5 seems to work for 8mm, 4mm, and DLT

      BLOCKSIZE=32768
        This worked fine for 8mm, then 4mm, and now DLT.  An optimal
        setting is probably however much data your drive writes at one
        time.

      SHORTDATE=$(date +%y:%m:%d:%H:%M)
        A short date string, used in backup log filenames.

      DAY=$(date +log-%y:%m:%d)
        This is used for the log file directory.

      DATE=$(date)
        Regular date string, used in log files.

      LOGROOT=/var/log/backup
        Root of the logging directory

      LIST=$LOGROOT/incremental-list
        This is the file name the incremental backup will use to store
        the incremental list.  It will be $LIST-{some number}.

      DOTCOUNT=$LOGROOT/.count
        For counting as you go to know which incremental list to use

      COUNTER=$LOGROOT/counter-file
        For rewinding when done...might not use.

      BACKUPTAB=/etc/backuptab
        The file in which we keep our list of backup(s) we want to make.

    /etc/sysconfig/sendmail:  
      DAEMON=yes|no
        yes implies -bd (i.e., listen on port 25 for new mail)
      QUEUE=1h
        given to sendmail as -q$QUEUE
        -q option is not given to sendmail if /etc/sysconfig/sendmail
        exists and QUEUE is empty or undefined.

    /etc/sysconfig/i18n  
      LANG= set locale for all categories, can be any two letter ISO
        language code
      LC_CTYPE= localedata configuration for classification and conversion
        of characters
      LC_COLLATE= localedata configuration for collation (sort order) of
        strings
      LC_MESSAGES= localedata configuration for translation of yes and no
        messages
      LC_NUMERIC= localedata configuration for non-monetary numeric data
      LC_MONETARY= localedata configuration for monetary data
      LC_TIME= localedata configuration for date and time
      LC_ALL= localedata configuration overriding all of the above
      LANGUAGE= can be a : separated list of ISO language codes
      LINGUAS= can be a ' ' separated list of ISO language codes

      The above variables are used in /etc/profile.d/lang.sh.

      SYSFONT= any font that is legal when used as
            /usr/bin/consolechars -f $SYSFONT ...
        (See console-tools package for consolechars command)

      UNIMAP= any SFM (screen font map, formerly called Unicode mapping
        table - see consolechars(8))
            /usr/bin/consolechars -f $SYSFONT --sfm $UNIMAP

      SYSFONTACM= any ACM (application charset map - see consolechars(8))
            /usr/bin/consolechars -f $SYSFONT --acm $SYSFONTACM

      The above is used by the /sbin/setsysfont command (which is run
      by rc.sysinit at boot time.)

    /etc/sysconfig/harddisks  

    /etc/sysconfig/harddiskhd[a-h] (for specific devices)  

      These options are used to tune (E)IDE hard drives -
      read the hdparm man page for more information

      USE_DMA=1
        Set this to 1 to enable DMA. This might cause some
        data corruption on certain chipset / hard drive
        combinations. USE WITH CAUTION AND BACKUP.
        This is used with the "-d" option

      MULTIPLE_IO=16
        Multiple sector I/O. a feature of most modern IDE hard drives,
        permitting the transfer of multiple sectors per I/O interrupt,
        rather than the usual one sector per interrupt.  When this feature
        is enabled, it typically reduces operating system overhead for disk
        I/O by 30-50%.  On many systems, it also provides increased data
        throughput of anywhere from 5% to 50%.  Some drives, however (most
        notably the WD Caviar series), seem to run slower with multiple mode
        enabled. Under rare circumstances, such failures can result in
        massive filesystem corruption. USE WITH CAUTION AND BACKUP.
        This is the sector count for multiple sector I/O - the "-m" option

      EIDE_32BIT=3
        (E)IDE 32-bit I/O support (to interface card). USE WITH CAUTION.

      LOOKAHEAD=1
        Enable drive read-lookahead (safe)

      EXTRA_PARAMS=<anything>
        Add any extra parameters you want to pass to hdparm here.

    /etc/sysconfig/network-scripts/ifup:  

    /etc/sysconfig/network-scripts/ifdown:
     楼主| 发表于 2003-1-12 10:38:15 | 显示全部楼层

    呵呵

    可能这是linuxsir内最长的贴子了,兄弟们好好学吧^-^
    有建议请在后面跟贴。谢谢!
    发表于 2003-1-15 11:51:08 | 显示全部楼层
    大哥你好
    我是
    http://www.certlinux.com的站長
    之前有得到你的同意轉載您的文章

    我前幾天把你的文章
    轉成繁體的PDF檔案

    如果您需要
    我將該檔案轉寄給您

    hu.fun@msa.hinet.net
     楼主| 发表于 2003-1-15 20:36:39 | 显示全部楼层

    好的

    请给我电邮一份,谢谢!
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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