Fedora 11

安​装​指​南​

在​x86,AMD64及​Intel® 64 架​构​上​安​装​Fedora 11

版 1.0

Fedora 文​档​项​目​


法律通告

Copyright © 2009 Red Hat, Inc. and others. This material may only be distributed subject to the terms and conditions set forth in the Open Publication License, V1.0, (the latest version is presently available at http://www.opencontent.org/openpub/).
Fedora and the Fedora Infinity Design logo are trademarks or registered trademarks of Red Hat, Inc., in the U.S. and other countries.
Red Hat and the Red Hat "Shadow Man" logo are registered trademarks of Red Hat Inc. in the United States and other countries.
All other trademarks and copyrights referred to are the property of their respective owners.
Documentation, as with software itself, may be subject to export control. Read about Fedora Project export controls at http://fedoraproject.org/wiki/Legal/Export.
摘要
提​供​安​装​过​程​文​档​

Preface
1. 文​档​约​定​
1.1. 排​版​约​定​
1.2. 抬​升​式​引​用​约​定​
1.3. 备​注​及​警​告​
2. 我​们​需​要​您​的​反​馈​!
简​介​
1. 背​景​
1.1. 关​于 Fedora
1.2. 取​得​更​多​的​帮​助​
2. 关​于​这​份​文​档​
2.1. 目​标​
2.2. 读​者​
1. 进​阶​者​指​南​
1.1. 概​观​
1.2. 下​载​文​件​
1.3. 安​装​前​准​备​
1.4. 安​装 Fedora
1.5. 安​装​后​设​置​
2. 初​学​者​
2.1. 如​何​下​载 Fedora?
2.1.1. 从​映​像​点​站​
2.1.2. 从 BitTorrent
2.2. 我​的​电​脑​属​于​哪​一​种​架​构​?
2.3. 我​需​要​下​载​哪​个​文​件​?
2.4. 如​何​制​作 Fedora 媒​体​
2.4.1. 制​作 CD 和 DVD 光​盘​
2.4.2. 制​作 USB 介​质​
2.5. 为​什​么​我​不​能​下​载 Fedora?
2.6. 我​如​何​才​能​启​动​安​装​程​序​?
I. Before you begin
3. 安​装​前​的​准​备​工​作​
3.1. 选​择​升​级​还​是​安​装​?
3.2. 您​的​硬​件​兼​容​吗​?
3.3. 你​有​足​够​的​磁​盘​空​间​吗​?
3.4. 您​可​以​使​用​光​盘​安​装​吗​?
3.4.1. 其​它​引​导​方​法​
3.4.2. 制​作​安​装​引​导​光​盘​
3.5. 筹​备​网​络​安​装​
3.5.1. 筹​备 FTP 和 HTTP 安​装​
3.5.2. 筹​备 NFS 安​装​
3.6. 筹​备​硬​盘​驱​动​器​安​装​
4. System Specifications List
5. 用​于 Intel 或 AMD 系​统​的​驱​动​介​质​
5.1. 为​什​么​需​要​驱​动​程​序​盘​
5.2. 驱​动​程​序​介​质​到​底​是​什​么​?
5.3. 如​何​获​取​驱​动​程​序​介​质​
5.3.1. 根​据​映​像​文​件​创​建​驱​动​程​序​盘​
5.4. 在​安​装​过​程​中​使​用​驱​动​程​序​映​像​
II. The installation process
6. 开​始​安​装​
6.1. 启​动​选​单​
6.2. 从​另​一​个​不​同​的​源​安​装​
6.3. 正​在​检​查​介​质​
6.3.1. 正​在​检​查 Live CD
6.3.2. 正​在​检​查 DVD
6.4. 使​用 PXE 从​网​络​启​动​
6.5. 图​形​和​文​本​界​面​
7. Installing on Intel and AMD Systems
7.1. The Graphical Installation Program User Interface
7.1.1. A Note about Virtual Consoles
7.2. 文​本​模​式​安​装​程​序​用​户​界​面​
7.2.1. 使​用​键​盘​来​导​航​
7.3. Starting the Installation Program
7.3.1. Booting the Installation Program on x86, AMD64, and Intel 64 Systems
7.3.2. Additional Boot Options
7.4. 选​择​安​装​方​法​
7.5. 从​光​盘​中​安​装​
7.5.1. 如​果​没​有​发​现 IDE 光​盘​怎​么​办​?
7.6. 从​硬​盘​安​装​
7.7. 执​行​网​络​安​装​
7.8. 通​过 NFS 安​装​
7.9. Installing via FTP or HTTP
7.10. 欢​迎​使​用​
7.11. Language Selection
7.12. Keyboard Configuration
7.13. Initializing the Hard Disk
7.14. 升​级​已​有​的​系​统​
7.14.1. 升​级​检​测​
7.14.2. 使​用​安​装​程​序​升​级​
7.14.3. 更​新​引​导​加​载​程​序​
7.15. Network Configuration
7.15.1. Manual configuration
7.16. 时​区​配​置​
7.17. 设​置​根​密​码​
7.18. Disk Partitioning Setup
7.18.1. RAID and Other Disk Devices
7.19. Advanced Storage Options
7.20. Create Default Layout
7.21. 为​您​的​系​统​分​区​
7.21.1. 硬​盘​的​图​形​化​表​示​
7.21.2. The partitioning screen
7.21.3. 分​区​字​段​
7.21.4. 推​荐​的​分​区​方​案​
7.21.5. 添​加​分​区​
7.21.6. 编​辑​分​区​
7.21.7. 删​除​分​区​
7.22. x86、​AMD64 和 Intel 64 系​统​的​引​导​装​载​程​序​(Boot Loader)的​配​置​
7.22.1. 高​级​引​导​装​载​程​序​配​置​
7.22.2. Rescue Mode
7.22.3. 其​它​可​选​的​引​导​装​载​程​序​
7.23. Package Group Selection
7.23.1. Installing from Additional Repositories
7.23.2. Customizing the Software Selection
7.24. 准​备​安​装​
7.24.1. 准​备​安​装
7.25. Installing Packages
7.26. 安​装​完​成​
8. 在 Intel 或 AMD 系​统​上​进​行​安​装​的​故​障​解​除​
8.1. You are unable to boot Fedora
8.1.1. 无​法​使​用 RAID 卡​来​引​导​
8.1.2. 系​统​显​示​了​信​号 11 错​误​
8.2. 安​装​起​始​部​分​的​问​题​
8.2.1. Problems with Booting into the Graphical Installation
8.3. 安​装​过​程​中​的​问​题​
8.3.1. No devices found to install Fedora Error Message
8.3.2. Saving traceback messages without removeable media
8.3.3. Trouble with Partition Tables
8.3.4. 使​用​剩​余​空​间​
8.3.5. 其​它​分​区​问​题​
8.3.6. 看​到 Python 错​误​
8.4. 安​装​后​的​问​题​
8.4.1. 在 x86 系​统​的 GRUB 图​形​化​屏​幕​中​遇​到​问​题​
8.4.2. 引​导​入​图​形​环​境​
8.4.3. 引​导​入 X 窗​口​系​统​(GUI)的​问​题​
8.4.4. X 服​务​器​崩​溃​和​非​根​用​户​的​问​题​
8.4.5. 登​录​时​的​问​题​
8.4.6. 你​的​内​存​不​能​够​被​识​别​吗​?
8.4.7. 您​的​打​印​机​无​法​工​作​
8.4.8. 配​置​声​卡​遇​到​问​题​
8.4.9. 基​于 Apache httpd 的​服​务​/Sendmail 在​启​动​时​挂​起​
III. Advanced installation options
9. 启​动​选​项​
9.1. 在​启​动​菜​单​下​配​置​安​装​系​统​
9.1.1. 指​定​语​言​
9.1.2. 配​置​界​面​
9.1.3. 更​新​anaconda
9.1.4. 指​定​安​装​方​法​
9.1.5. 手​动​配​置​网​络​设​置​
9.2. 允​许​远​程​访​问​安​装​系​统​
9.2.1. 允​许​用 VNC 远​程​访​问​
9.2.2. 连​接​安​装​系​统​到​一​个 VNC 监​听​程​序​
9.2.3. 允​许​用 Telnet 远​程​访​问​
9.3. 在​安​装​期​间​记​录​日​志​到​远​程​主​机​
9.3.1. 配​置​服​务​器​日​志​
9.4. 使​用 Kickstart 实​现​自​动​安​装​
9.5. 增​强​的​硬​件​支​持​
9.5.1. 用​驱​动​磁​盘​支​持​增​加​的​硬​件​
9.5.2. 越​过​自​动​硬​件​检​测​
9.6. 用​维​修​引​导​模​式​
9.6.1. 加​载​内​存 (RAM) 检​测​模​式​
9.6.2. 验​证​启​动​介​质​
9.6.3. 以​修​复​模​式​引​导​您​的​计​算​机​
9.6.4. 升​级​您​的​计​算​机​
10. 无​介​质​的​安​装​
10.1. 搜​索​引​导​文​件​
10.2. 编​辑 GRUB 配​置​
10.3. 引​导​安​装​
11. 配​置​一​个​安​装​服​务​器​
11.1. 配​置​cobbler
11.2. 设​置​发​布​目​录​
11.3. 映​射​网​络​位​置​
11.4. 导​入​发​行​版​
11.5. Manually configure a PXE server
11.5.1. Setting up the Network Server
11.5.2. PXE Boot Configuration
11.5.3. Adding PXE Hosts
11.5.4. TFTPD
11.5.5. 配​置 DHCP 服​务​器​
11.5.6. Adding a Custom Boot Message
11.5.7. Performing the PXE Installation
12. Installing Through VNC
12.1. VNC Viewer
12.2. VNC Modes in Anaconda
12.2.1. Direct Mode
12.2.2. Connect Mode
12.3. Installation Using VNC
12.3.1. Installation Example
12.3.2. Kickstart Considerations
12.3.3. 关​于​防​火​墙​
12.4. References
13. kickstart 安​装​
13.1. kickstart 安​装​是​什​么​?
13.2. 如​何​执​行 kickstart 安​装​
13.3. 创​建 kickstart 文​件​
13.4. kickstart 选​项​
13.4.1. 高​级​的​分​区​示​例​
13.5. Package Selection
13.6. 预​安​装​脚​本​
13.6.1. 范​例​
13.7. 安​装​后​脚​本​
13.7.1. 范​例​
13.8. 如​何​使 kickstart 文​件​可​被​利​用​
13.8.1. 创​建 kickstart 引​导​介​质​
13.8.2. 在​网​络​上​提​供 Kickstart 文​件​
13.9. 提​供​安​装​树​
13.10. 开​始 kickstart 安​装​
14. Kickstart Configurator
14.1. 基​本​配​置​
14.2. 安​装​方​法​
14.3. 引​导​装​载​程​序​选​项​
14.4. 分​区​信​息​
14.4.1. 创​建​分​区​
14.5. Network Configuration
14.6. 验​证​
14.7. 防​火​墙​配​置​
14.7.1. SELinux 配​置​
14.8. 显​示​配​置​
14.9. Package Selection
14.10. 预​安​装​脚​本​
14.11. 安​装​后​脚​本​
14.11.1. chroot 环​境​
14.11.2. 使​用​解​释​器​
14.12. 保​存​文​件​
IV. After installation
15. Firstboot
15.1. 许​可​协​议​
15.2. 系​统​用​户​
15.3. 日​期​和​时​间​
15.4. 硬​件​侧​写​
16. 下​一​步​做​什​么​
16.1. 更​新​您​的​系​统​
16.2. 完​成​升​级​
16.3. 切​换​到​图​形​登​录​
16.4. 订​阅 Fedora 通​告​和​新​闻​
16.5. 查​找​文​档​和​支​持​
16.6. 加​入 Fedora 社​区​
17. 基​本​系​统​恢​复​
17.1. 常​见​问​题​
17.1.1. Unable to Boot into Fedora
17.1.2. 硬​件​或​软​件​问​题​
17.1.3. Root Password
17.2. 引​导​救​援​模​式​
17.2.1. 重​新​安​装​引​导​装​载​程​序​
17.3. 引​导​单​用​户​模​式​
17.4. 引​导​紧​急​模​式​
18. 升​级​你​当​前​的​系​统​
18.1. 选​择​升​级​还​是​重​新​安​装​
18.2. 给​你​的​系​统​升​级​
19. Removing Fedora
19.1. Fedora is the only operating system on the computer
19.2. Your computer dual-boots Fedora and another operating system
19.2.1. Your computer dual-boots Fedora and a Microsoft Windows operating system
19.2.2. Your computer dual-boots Fedora and Mac OS X
19.2.3. Your computer dual-boots Fedora and a different Linux distribution
19.3. Replacing Fedora with MS-DOS or legacy versions of Microsoft Windows
V. Technical appendixes
A. 磁​盘​分​区​简​介​
A.1. 硬​盘​基​本​概​念​
A.1.1. 不​是​你​写​入​什​么​,而​是​你​怎​么​写​入​
A.1.2. 分​区​:将​一​个​驱​动​器​变​成​多​个​驱​动​器​
A.1.3. 分​区​内​的​分​区 — 扩​展​分​区​概​述​
A.1.4. Making Room For Fedora
A.1.5. 分​区​命​名​方​案​
A.1.6. 磁​盘​分​区​以​及​其​它​操​作​系​统​
A.1.7. 磁​盘​分​区​和​挂​载​点​
A.1.8. 多​少​个​分​区​?
B. ISCSI disks
B.1. iSCSI disks in anaconda
B.2. iSCSI disks during start up
C. 磁​盘​加​密​向​导​
C.1. 什​么​是​块​设​备​加​密​?
C.2. 使​用​dm-crypt/LUKS加​密​块​设​备
C.2.1. LUKS概​要
C.2.2. 安​装​完​成​后​我​如​何​访​问​加​密​的​设​备​?(系​统​启​动​)
C.2.3. 选​择​一​个​安​全​性​好​的​密​码
C.3. 在​Anaconda中​创​建​加​密​块​设​备
C.3.1. 可​以​加​密​什​么​类​型​的​块​设​备​?
C.3.2. Anaconda块​设​备​加​密​支​持​的​限​制
C.4. 安​装​完​成​后​在​系​统​上​创​建​加​密​的​块​设​备​。
C.4.1. 创​建​块​设​备
C.4.2. 可​选​项​:使​用​随​机​数​据​填​充​设​备​
C.4.3. 将​设​备​格​式​化​为​dm-crypt/LUKS加​密​设​备
C.4.4. 创​建​一​个​映​射​来​允​许​访​问​设​备​中​未​加​密​的​内​容
C.4.5. Create filesystems on the mapped device, or continue to build complex storage structures using the mapped device
C.4.6. Add the mapping information to /etc/crypttab
C.4.7. Add an entry to /etc/fstab
C.5. Common Post-Installation Tasks
C.5.1. Set a randomly generated key as an additional way to access an encrypted block device
C.5.2. Add a new passphrase to an existing device
C.5.3. Remove a passphrase or key from a device
D. Understanding LVM
E. GRUB 引​导​装​载​程​序​
E.1. GRUB
E.1.1. GRUB 和 x86 引​导​过​程​
E.1.2. GRUB 的​特​征​
E.2. Installing GRUB
E.3. GRUB 术​语​
E.3.1. 设​备​名​
E.3.2. 文​件​名​和​块​列​表​(Blocklist)
E.3.3. 根​文​件​系​统​和 GRUB
E.4. GRUB 界​面​
E.4.1. 界​面​装​载​顺​序​
E.5. GRUB 命​令​
E.6. GRUB 菜​单​配​置​文​件​
E.6.1. 配​置​文​件​结​构​
E.6.2. 配​置​文​件​指​令​
E.7. 在​引​导​时​改​变​运​行​级​别​
E.8. 其​它​资​料​
E.8.1. 安​装​了​的​文​档​
E.8.2. 有​用​的​网​站​
E.8.3. 相​关​书​籍​
F. 引​导​过​程​、​初​始​化​和​关​闭​
F.1. 引​导​过​程​
F.2. 对​引​导​过​程​的​详​细​介​绍​
F.2.1. BIOS
F.2.2. 引​导​装​载​程​序​
F.2.3. 内​核​
F.2.4. /sbin/init 程​序​
F.3. 在​引​导​时​运​行​其​他​的​程​序​
F.4. SysV Init 运​行​级​别​
F.4.1. 运​行​级​别​
F.4.2. 运​行​级​别​工​具​
F.5. 关​机​
G. 其​他​技​术​文​档​
H. Contributors and production methods
H.1. 贡​献​者​
H.2. Production methods
I. Revision History
索引

Preface

1. 文​档​约​定​

本​手​册​使​用​几​个​约​定​来​突​出​某​些​用​词​和​短​语​以​及​信​息​的​某​些​片​段​。​
在 PDF 版​本​以​及​纸​版​中​,本​手​册​使​用​在 Liberation 字​体​套​件​中​选​出​的​字​体​。​如​果​您​在​您​的​系​统​中​安​装​了 Liberation 字​体​套​件​,它​还​可​用​于 HTML 版​本​。​如​果​没​有​安​装​,则​会​显​示​可​替​换​的​类​似​字​体​。​请​注​意​:红​帽​企​业 Linux 5 以​及​其​后​的​版​本​默​认​包​含 Liberation 字​体​套​件​。​

1.1. 排​版​约​定​

我​们​使​用​四​种​排​版​约​定​突​出​特​定​用​词​和​短​语​。​这​些​约​定​及​其​使​用​环​境​如​下​。​
固​定​粗​体​
用​来​突​出​系​统​输​入​,其​中​包​括 shell 命​令​、​文​件​名​以​及​路​径​。​还​可​用​来​突​出​按​键​以​及​组​合​键​。​例​如​:
要​看​到​文​件​您​当​前​工​作​目​录​中​文​件 my_next_bestselling_novel 的​内​容​,请​在 shell 提​示​符​后​输​入 cat my_next_bestselling_novel 命​令​并​按 Enter 键​执​行​该​命​令​。​
以​上​内​容​包​括​一​个​文​件​名​,一​个 shell 命​令​以​及​一​个​按​键​,它​们​都​以​固​定​粗​体​形​式​出​现​,且​全​部​与​上​下​文​有​所​区​别​。​
组​合​键​可​通​过​使​用​连​字​符​连​接​组​合​键​的​每​个​部​分​来​与​按​键​区​别​。​例​如​:
Enter 执​行​该​命​令​。​
Ctrl+Alt+F1 切​换​到​第​一​个​虚​拟​终​端​。​Ctrl+Alt+F7 返​回​您​的 X-Windows 会​话​。​
第​一​句​突​出​的​是​要​按​的​特​定​按​键​。​第​二​句​突​出​了​两​个​三​按​键​组​合​,每​个​组​合​都​要​同​时​按​下​。​
如​果​讨​论​的​是​源​码​、​等​级​名​称​、​方​法​、​功​能​、​变​量​名​称​以​及​在​段​落​中​提​到​的​返​回​的​数​值​,那​么​都​会​以​上​述​形​式​出​现​,即​固​定​粗​体​。​例​如​:
与​文​件​相​关​的​等​级​包​括​用​于​文​件​系​统​的 filesystem、​用​于​文​件​的 file 以​及​用​于​目​录​的 dir。​每​个​等​级​都​有​其​自​身​相​关​的​权​限​。​
比​例​宽​度​粗​体​
这​是​指​在​系​统​中​遇​到​的​文​字​或​者​短​语​,其​中​包​括​应​用​程​序​名​称​、​对​话​框​文​本​、​标​记​的​按​钮​、​复​选​框​以​及​单​选​按​钮​标​签​、​菜​单​标​题​以​及​子​菜​单​标​题​。​例​如​:在​主​菜​单​栏​中​
选​择 系​统 > 属​性 > 鼠​标​启​动 Mouse Preferences。​在 按​钮​ 标​签​中​点​击​惯​用​左​手​鼠​标​ 复​选​框​并​点​击 关​闭​ 将​首​选​鼠​标​按​键​从​左​切​换​到​右​(让​鼠​标​适​合​左​手​使​用​)。​
要​在 gedit 文​件​中​插​入​一​个​特​殊​字​符​,请​在​主​菜​单​栏​中​选​择 应​用​程​序 > 附​件 > 字​符​映​射​表​。​下​面​请​在​字​符​映​射​表​ 主​菜​单​栏​中​选​择 搜​索 > 查​找​…,在​搜​索​ 字​段​输​入​字​符​名​称​,并​点​击 下​一​个​。​那​么​会​在 字​符​表​中​突​出​您​看​到​的​字​符​。​双​击​该​字​符​将​其​放​置​于 要​复​制​的​文​本​字​段​并​点​击 复​制​ 按​钮​。​现​在​返​回​您​的​文​档​,在 gedit 菜​单​栏​选​择 编​辑 > 粘​贴​。​
以​上​文​本​包​括​应​用​程​序​名​称​、​系​统​范​围​菜​单​名​称​及​项​目​、​特​定​应​用​程​序​菜​单​名​称​以​及​按​钮​和 GUI 界​面​中​的​文​本​,所​有​都​以​比​例​粗​体​出​现​并​与​上​下​文​区​别​。​
请​注​意​在​菜​单​及​其​子​菜​单​中​用​来​表​示​穿​越​的 >。​这​是​为​了​避​免​使​用​比​较​复​杂​的​方​法​,比​如​‘​在​主​菜​单​的 系​统​ 菜​单​中​的 首​选​项​ 菜​单​中​选​择​鼠​标​’​。​
固​定​粗​斜​体​ 或​者 比​例​粗​斜​体
无​论​固​定​粗​体​或​者​比​例​粗​体​,附​加​的​斜​体​表​明​是​可​替​换​或​者​变​量​文​本​。​斜​体​表​示​那​些​不​直​接​输​入​的​文​本​或​者​那​些​根​据​环​境​改​变​的​文​本​。​例​如​:
要​使​用 ssh 连​接​到​远​程​机​器​,请​在 shell 提​示​符​后​输​入 ssh username@domain.name。​如​果​远​程​机​器​是 example.com 且​您​在​该​其​机​器​中​的​用​户​名​为 john,请​输​入 ssh john@example.com。​
mount -o remount file-system 命​令​会​重​新​挂​载​命​名​的​文​件​系​统​。​例​如​:要​重​新​挂​载 /home 文​件​系​统​,则​命​令​为 mount -o remount /home。​
要​查​看​目​前​安​装​的​软​件​包​版​本​,请​使​用 rpm -q package 命​令​。​它​会​返​回​以​下​结​果​:package-version-release。​
请​注​意​以​上​文​字​中​的​粗​斜​体​字 — username、​domain.name、​file-system、​package、​version 和 release。​无​论​您​输​入​文​本​或​者​运​行​一​个​命​令​,还​是​该​系​统​显​示​的​文​本​,每​个​字​都​是​一​个​占​位​符​。​
不​考​虑​工​作​中​显​示​标​题​的​标​准​用​法​,斜​体​表​示​第​一​次​使​用​某​个​新​且​重​要​的​用​语​。​例​如​:
当 Apache HTTP 服​务​器​接​受​请​求​时​,它​会​分​派​子​进​程​或​者​线​程​对​其​进​行​处​理​。​这​组​子​进​程​或​者​线​程​就​是 服​务​器​池​(server-pool)。​在 Apache HTTP 服​务​器 2.0 中​,创​建​和​维​护​服​务​器​池​的​任​务​是​由​名​为 多​进​程​模​块​(Multi-Processing Modules)MPMs)的​模​块​负​责​的​。​和​其​它​模​块​不​同​,Apache HTTP 服​务​器​只​能​载​入 MPM 组​中​的​一​个​模​块​。​

1.2. 抬​升​式​引​用​约​定​

二​,一​般​是​多​行​,数​据​输​入​要​明​显​与​周​围​文​本​分​开​。​
将​发​送​到​终​端​的​输​入​设​置​为 Mono-spaced Roman 并​显​示​为​:
books        Desktop   documentation  drafts  mss    photos   stuff  svn
books_tests  Desktop1  downloads      images  notes  scripts  svgs
源​码​列​表​也​设​为 Mono-spaced Roman,但​以​下​面​的​形​式​出​现​和​突​出​:
package org.jboss.book.jca.ex1;

import javax.naming.InitialContext;

public class ExClient
{
   public static void main(String args[]) 
       throws Exception
   {
      InitialContext iniCtx = new InitialContext();
      Object         ref    = iniCtx.lookup("EchoBean");
      EchoHome       home   = (EchoHome) ref;
      Echo           echo   = home.create();

      System.out.println("Created Echo");

      System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
   }
   
}

1.3. 备​注​及​警​告​

最​后​,我​们​使​用​三​种​视​觉​形​式​来​突​出​那​些​可​能​被​忽​视​的​信​息​。​

备​注​

备​注​是​对​手​头​任​务​的​提​示​、​捷​径​或​者​另​外​的​解​决​方​法​。​忽​略​提​示​不​会​造​成​负​面​后​果​,但​您​可​能​会​错​过​一​个​更​省​事​的​诀​窍​。​

重​要​

重​要​框​中​的​内​容​是​那​些​容​易​错​过​的​事​情​:配​置​更​改​只​可​用​于​当​前​会​话​,或​者​在​应​用​更​新​前​要​重​启​服​务​。​忽​略​重​要​框​中​的​内​容​不​会​造​成​数​据​丢​失​但​可​能​会​让​您​抓​狂​。​

警​告​

警​告​是​不​应​被​忽​略​的​。​忽​略​警​告​信​息​很​可​能​导​致​数​据​丢​失​。​

2. 我​们​需​要​您​的​反​馈​!

提​交​报​告​时​,请​​​记​​​得​​​提​​​及​​​文​​​档​​​的​​​标​​​识​​​符​​​:Installation_Guide
如​​​果​​​你​​​有​​​改​​​进​​​本​​​文​​​档​​​的​​​建​​​议​​​,请​​​尽​​​量​​​将​​​其​​​明​​​确​​​化​​​。​​​如​​​果​​​你​​​发​​​现​​​了​​​错​​​误​​​,请​​​指​​​出​​​章​​​节​​​号​​​以​​​及​​​其​​​周​​​围​​​的​​​相​​​关​​​文​​​字​​​,以​​​便​​​我​​​们​​​尽​​​快​​​找​​​到​​​并​​​更​​​正​​​该​​​错​​​误​​​。​​​

简​介​

This guide covers installation of Fedora, a Linux distribution built on free and open source software. This manual helps you install Fedora on desktops, laptops, and servers. The installation system is easy to use even if you lack previous knowledge of Linux or computer networks. If you select default options, Fedora provides a complete desktop operating system, including productivity applications, Internet utilities, and desktop tools.
本​文​档​并​不​详​细​介​绍​安​装​程​序​的​全​部​特​性​。​

1. 背​景​

1.1. 关​于 Fedora

To find out more about Fedora, refer to http://fedoraproject.org/. To read other documentation on Fedora related topics, refer to http://docs.fedoraproject.org/.

1.2. 取​得​更​多​的​帮​助​

For information on additional help resources for Fedora, visit http://fedoraproject.org/wiki/Communicate.

2. 关​于​这​份​文​档​

2.1. 目​标​

这​份​文​档​帮​助​读​者​:
  1. 如​何​在​线​上​找​到 Fedora 发​行​版​
  2. 建​立​设​定​来​启​动 Fedora
  3. 理​解​和​应​用 Fedora 的​安​装​程​序​
  4. 完​成​安​装​后​的​设​定​

其​他​文​档​资​源​

This guide does not cover use of Fedora. To learn how to use an installed Fedora system, refer to http://docs.fedoraproject.org/ for other documentation.

2.2. 读​者​

This guide is intended for new and intermediate Fedora users. Advanced Fedora users with questions about detailed operation of expert installation features should consult the Anaconda development mailing list at http://www.redhat.com/archives/anaconda-devel-list/.

第 1 章 进​阶​者​指​南​

这​一​章​是​为​进​阶​者​准​备​的​,它​包​含​了 Fedora 的​安​装​过​程​。​请​注​意​这​一​章​接​下​来​会​包​含​很​多​笔​记​和​提​示​。​如​果​安​装​过​程​中​出​现​了​问​题​,请​查​阅​适​当​的​章​节​以​取​得​帮​助​。​

只​适​用​于​进​阶​者​

这​一​章​是​为​进​阶​者​准​备​的​,其​他​的​使​用​者​可​能​不​太​明​白​本​章​的​内​容​。​初​学​者​应​该​先​阅​读 第 2 章 初​学​者​。​

1.1. 概​观​

Fedora 的​安​装​过​程​非​常​简​单​,只​由​几​个​步​骤​组​成​:
  1. 下​载​文​件​并​制​成​可​启​动​的​媒​体​。​
  2. 准​备​一​个​可​安​装​的​系​统​。​
  3. 启​动​电​脑​并​执​行​安​装​程​序​。​
  4. 重​新​启​动​电​脑​并​执​行​设​置​。​

1.2. 下​载​文​件​

下​面​的​方​法​,任​选​其​一​:

确​认​您​的​下​载​

下​载​失​败​的​原​因​有​很​多​。​请​确​认​您​下​载​文​件​的 sha1sum。​
  1. 下​载​实​时 ISO 映​像​文​件​。​请​使​用​您​喜​欢​的​程​序​根​据 ISO 文​件​创​建 CD 介​质​。​您​还​可​用​使​用 livecd-tools 软​件​包​将​该​映​像​写​入​其​它​可​引​导​介​质​中​,比​如 USB 闪​存​盘​。​要​将​这​个​发​行​本​安​装​到​您​的​硬​盘​中​,请​在​登​录​后​使​用​桌​面​的​快​捷​图​标​。​
  2. 有​关​设​置​网​络​引​导​服​务​器​以​便​由​此​安​装 Fedora 的​详​情​请​参​考 第 11 章 配​置​一​个​安​装​服​务​器​。​

1.4. 安​装 Fedora

使​用​预​期​介​质​引​导​,并​选​择​合​适​的​硬​件​选​项​和​安​装​模​式​。​引​导​选​项​详​情​请​参​考 第 9 章 启​动​选​项​。​如​果​您​是​从 Live CD 启​动​,请​在​桌​面​上​选​择 "安​装​到​硬​盘​" 以​执​行​安​装​程​序​。​如​果​您​是​从​小​容​量​的​介​质​或​者​下​载​的​内​核​启​动​,请​选​择​网​络​或​者​硬​盘​资​源​进​行​安​装​。​
请​执​行​安​装​程​式​的​所​有​步​骤​。​在​您​执​行​最​后​确​认​之​前​,安​装​程​式​不​会​改​变​您​的​系​统​。​当​安​装​过​程​完​成​后​,重​新​启​动​您​的​电​脑​。​

1.5. 安​装​后​设​置​

当​系​统​完​成​动​后​,它​会​要​求​您​作​一​些​基​本​设​置​,您​可​以​根​据​您​的​硬​件​作​一​些​适​合​的​设​置​,然​后​继​续​登​入​的​步​骤​。​

第 2 章 初​学​者​

This chapter explains how to get the files you need to install and run Fedora on your computer. Concepts in this chapter may be new, especially if this is your first free and open source operating system. If you have any trouble with this chapter, find help by visiting the Fedora Forums at http://www.fedoraforum.org/.

下​载​链​接​

To follow a Web-based guide to downloading, visit http://get.fedoraproject.org/. For guidance on which architecture to download, refer to 第 2.2 节 “我​的​电​脑​属​于​哪​一​种​架​构​?”.

2.1. 如​何​下​载 Fedora?

The Fedora Project distributes Fedora in many ways, mostly free of cost and downloaded over the Internet. The most common distribution method is CD and DVD media. There are several types of CD and DVD media available, including:
  • A full set of the software on DVD media
  • Live images you can use to try Fedora, and then install to your system if you so choose
  • 用​于​通​过​互​联​网​链​接​进​行​安​装​的​小​容​量​启​动​光​盘​或​闪​存​盘​
  • 一​张 DVD 光​盘​,包​含 Fedora 源​代​码​
Most users want the Fedora Live image or the full set of installable software on DVD or CDs. The reduced bootable images are suitable for use with a fast Internet connection and install Fedora on one computer. Source code discs are not used for installing Fedora, but are resources for experienced users and software developers.
从​网​络​下​载 Fedora 软​件​是​完​全​免​费​的​。​

2.1.1. 从​映​像​点​站​

Mirrors publish Fedora software under a well-organized hierarchy of folders. For example, the Fedora 11 distribution normally appears in the directory fedora/linux/releases/11/. This directory contains a folder for each architecture supported by that release of Fedora. CD and DVD media files appear inside that folder, in a folder called iso/. For example, you can find the file for the DVD distribution of Fedora 11 for x86_64 at fedora/linux/releases/11/Fedora/x86_64/iso/Fedora-11-x86_64-DVD.iso.

2.1.2. 从 BitTorrent

BitTorrent is a way to download information in cooperation with other computers. Each computer cooperating in the group downloads pieces of the information in a particular torrent from other peers in the group. Computers that have finished downloading all the data in a torrent remain in the swarm to seed, or provide data to other peers. If you download using BitTorrent, as a courtesy you should seed the torrent at least until you have uploaded the same amount of data you downloaded.
If your computer does not have software installed for BitTorrent, visit the BitTorrent home page at http://www.bittorrent.com/download/ to download it. BitTorrent client software is available for Windows, Mac OS, Linux, and many other operating systems.
You do not need to find a special mirror for BitTorrent files. The BitTorrent protocol ensures that your computer participates in a nearby group. To download and use the Fedora BitTorrent files, visit http://torrent.fedoraproject.org/.

小​容​量​开​机​映​像​

目​前​不​能​通​过 BitTorrent 下​载​小​容​量​的 CD 和​闪​存​盘​映​像​。​

2.3. 我​需​要​下​载​哪​个​文​件​?

You have several options to download Fedora. Read the options below to decide the best one for you.
Each file available for download in a Fedora distribution includes the architecture type in the file name. For example, the file for the DVD distribution of Fedora 11 for x86_64 is named Fedora-11-x86_64-DVD.iso. Refer to 第 2.2 节 “我​的​电​脑​属​于​哪​一​种​架​构​?” if you are unsure of your computer's architecture.
  1. DVD 上​的​完​整​套​件​
    If you have plenty of time, a fast Internet connection, and wish a broader choice of software on the install media, download the full DVD version. Once burned to DVD, the media is bootable and includes an installation program. The DVD version contains a mode to perform rescue operations on your Fedora system in an emergency. You can download the DVD version directly from a mirror, or via BitTorrent.
  2. 实​时​映​像​
    If you want to try Fedora before you install it on your computer, download the Live image version. If your computer supports booting from CD or USB, you can boot the operating system without making any changes to your hard disk. The Live image also provides an Install to Hard Disk desktop shortcut. If you decide you like what you see, and want to install it, simply activate the selection to copy Fedora to your hard disk. You can download the Live image directly from a mirror, or using BitTorrent.
  3. 小​容​量​启​动​媒​体​
    如​果​您​有​高​速​网​络​连​接​而​又​不​想​下​载​整​个​发​行​本​,您​可​以​下​载​小​容​量​的​引​导​映​像​。​Fedora 在​光​盘​中​提​供​了​最​小​引​导​环​境​。​当​您​使​用​最​小​引​导​介​质​启​动​您​的​系​统​后​, 就​可​通​过​互​联​网​直​接​安​装 Fedora。​虽​然​这​个​方​法​仍​需​要​从​互​联​网​中​下​载​一​定​数​量​的​数​据​,但​总​要​比​完​整​发​行​本​介​质​的​文​小​要​少​得​多​。​完​成​安​装​后​,您​可​以​根​据​需​要​在​您​的​系​统​中​添​加​或​者​删​除​软​件​。​

    下​载​的​容​量​

    Installing the default software for Fedora over the Internet requires more time than the Live image, but less time than the entire DVD distribution. Actual results depend on the software you select and network traffic conditions.
The following table explains where to find the desired files on a mirror site. Replace arch with the architecture of the computer being installed.
Media type File locations
DVD 上​的​完​整​套​件​ fedora/linux/releases/11/Fedora/arch/iso/Fedora-11-arch-DVD.iso
实​时​映​像​ fedora/linux/releases/11/Live/arch/iso/Fedora-11-arch-Live.iso, fedora/linux/releases/11/Live/arch/iso/Fedora-11-KDE-arch-Live.iso
小​容​量​启​动​光​盘​ fedora/linux/releases/11/Fedora/arch/os/images/boot.iso
表 2.2. Locating files

2.4. 如​何​制​作 Fedora 媒​体​

A Fedora ISO file can be turned into either CD or DVD discs. You can turn Fedora Live ISO files into bootable USB media, as well as a CD or DVD.

2.4.1. 制​作 CD 和 DVD 光​盘​

To learn how to turn ISO images into CD or DVD media, refer to http://docs.fedoraproject.org/readme-burning-isos/.

2.4.2. 制​作 USB 介​质​

To make bootable USB media, use a Fedora Live image. Use either a Windows or Linux system to make the bootable USB media.

USB 映​像​写​入​是​无​害​的​

Writing the Live image to the USB media is nondestructive. Any existing data on the media is not harmed.
It is always a good idea to back up important data before performing sensitive disk operations.
To begin, make sure there is sufficient free space available on the USB media. There is no need to repartition or reformat your media. It is always a good idea to back up important data before performing sensitive disk operations.

2.4.2.1. USB Image Creation from Windows

  1. Download the Windows liveusb-creator program at http://fedorahosted.org/liveusb-creator.
  2. 按​照​网​页​以​及 liveusb-creator 程​序​给​出​的​步​骤​生​成​可​引​导 USB 介​质​。​

2.4.2.2. USB Image Creation in Linux

USB 介​质​通​常​是​闪​存​设​备​,有​时​也​称​为 U 盘​;或​者​外​部​连​接​的​硬​盘​设​备​。​几​乎​所​有​这​种​类​型​的​介​质​都​是​以 vfat 文​件​系​统​进​行​格​式​化​的​。​您​可​以​创​建 ext2、​ext3 或​者 vfat 格​式​的​可​引​导 USB 介​质​。​

ext4 and Btrfs

The GRUB bootloader does not support the ext4 or Btrfs file systems. You cannot create bootable USB media on media formatted as ext4 or Btrfs.

非​常​规 USB 介​质​

在​很​少​情​况​下​,比​如​特​殊​格​式​化​或​者​分​区​的 USB 介​质​,映​像​写​入​会​失​败​。​
  1. 第 2.3 节 “我​需​要​下​载​哪​个​文​件​?” 所​述​下​载​实​时 ISO 文​件​。​
  2. 在​您​的​系​统​中​安​装 livecd-tools 软​件​包​。​对​于 Fedora 系​统​,请​使​用​以​下​命​令​:
    su -c 'yum -y install livecd-tools'
    
  3. 插​入​您​的 USB 介​质​。​
  4. 找​到​您​的 USB 介​质​的​设​备​名​称​。​如​果​该​介​质​有​一​个​卷​名​,您​可​在 /dev/disk/by-label 中​,或​者​使​用 findfs 查​找​该​名​称​:
    su -c 'findfs LABEL="MyLabel"'
    
    如​果​该​介​质​没​有​卷​名​,或​者​您​不​知​道​,请​查​看 /var/log/messages 日​志​:
    su -c 'less /var/log/messages'
    
  5. 请​使​用 livecd-iso-to-disk 命​令​将 ISO 映​像​写​入​该​介​质​:
    su -c 'livecd-iso-to-disk the_image.iso /dev/sdX1'
    
    请​使​用 USB 介​质​中​分​区​的​设​备​名​称​替​换 sdX1。​大​都​是​闪​存​驱​动​器​和​外​置​硬​盘​只​使​用​一​个​分​区​。​如​果​您​改​变​了​这​个​行​为​或​者​使​用​奇​怪​分​区​的​介​质​,您​需​要​咨​询​有​关​人​士​以​获​得​帮​助​。​

2.5. 为​什​么​我​不​能​下​载 Fedora?

If you do not have a fast Internet connection, or if you have a problem creating boot media, downloading may not be an option. Fedora DVD and CD distribution media is available from a number of online sources around the world at a minimal cost. Use your favorite Web search engine to locate a vendor, or refer to http://fedoraproject.org/wiki/Distribution.

2.6. 我​如​何​才​能​启​动​安​装​程​序​?

要​从​最​小​引​导​介​质​、​实​时​映​像​或​者​发​行​本 DVD 中​启​动​安​装​程​序​,请​遵​照​以​下​步​骤​:
You may need to press a specific key or combination of keys to boot from the media, or configure your system's Basic Input/Output System, or BIOS, to boot from the media. On most computers you must select the boot or BIOS option promptly after turning on the computer. Most Windows-compatible computer systems use a special key such as F1, F2, F12, or Del to start the BIOS configuration menu. On Apple computers, the C key boots the system from the DVD drive. On older Apple hardware you may need to press Cmd +Opt+Shift+Del to boot from DVD drive.

配​置 BIOS

如​果​您​不​确​定​您​的​计​算​机​支​持​哪​些​功​能​,不​知​道​如​何​配​置 BIOS,可​以​查​看​厂​商​提​供​的​文​档​。​详​细​的​设​置​过​程​以​及​硬​件​规​范​和​配​置​超​出​了​本​文​档​的​范​围​。​

部分 I. Before you begin

This part of the Fedora Installation Guide covers decisions that you should make and resources that you should gather before installing Fedora, including:
  • the decision whether to upgrade an existing installation of Fedora or install a new copy.
  • hardware considerations, and hardware details that you may need during installation.
  • preparing to install Fedora over a network.
  • preparing driver media.

第 3 章 安​装​前​的​准​备​工​作​

3.1. 选​择​升​级​还​是​安​装​?

到​底​是​升​级​还​是​安​装​,请​参​考 第 18 章 升​级​你​当​前​的​系​统​。​

3.3. 你​有​足​够​的​磁​盘​空​间​吗​?

The disk space used by Fedora must be separate from the disk space used by other OSes you may have installed on your system, such as Windows, OS/2, or even a different version of Linux. For x86, AMD64, and Intel® 64 systems, at least two partitions (/ and swap) must be dedicated to Fedora.
在​开​始​安​装​进​程​之​前​,你​必​须​:
  • have enough unpartitioned[1] disk space for the installation of Fedora, or
  • have one or more partitions that may be deleted, thereby freeing up enough disk space to install Fedora.
要​更​清​楚​地​了​解​您​真​正​需​要​多​少​空​间​,请​参​阅 第 7.21.4 节 “推​荐​的​分​区​方​案​” 中​所​讨​论​的​推​荐​分​区​大​小​。​
If you are not sure that you meet these conditions, or if you want to know how to create free disk space for your Fedora installation, refer to 附录 A, 磁​盘​分​区​简​介​.

3.4. 您​可​以​使​用​光​盘​安​装​吗​?

There are several methods that can be used to install Fedora.
Installing from a CD-ROM or DVD requires that you have a Fedora 11 CD-ROM or DVD, and you have a DVD/CD-ROM drive on a system that supports booting from it.

3.5. 筹​备​网​络​安​装​

Note

如​果​你​执​行​的​是​基​于​网​络​的​安​装​,请​确​定​安​装​光​盘​(或​其​它​类​型​的​光​盘​)不​在​系​统​的​光​盘​驱​动​器​内​。​否​则​可​能​会​导​致​预​计​不​到​的​错​误​。​
The Fedora installation media must be available for either a network installation (via NFS, FTP, or HTTP) or installation via local storage. Use the following steps if you are performing an NFS, FTP, or HTTP installation.
通​过​网​络​安​装​所​要​使​用​的 NFS、​FTP、​HTTP 服​务​器​必​须​是​一​台​能​够​提​供​安​装​光​盘​上​的​完​整​内​容​的​单​独​机​器​。​

Note

The Fedora installation program has the ability to test the integrity of the installation media. It works with the CD / DVD, hard drive ISO, and NFS ISO installation methods. We recommend that you test all installation media before starting the installation process, and before reporting any installation-related bugs (many of the bugs reported are actually due to improperly-burned CDs). To use this test, type the following command at the boot: prompt:
linux mediacheck

Note

In the following examples, the directory on the installation staging server that will contain the installation files will be specified as /location/of/disk/space. The directory that will be made publicly available via FTP, NFS, or HTTP will be specified as /publicly/available/directory. For example, /location/of/disk/space may be a directory you create called /var/isos. /publicly/available/directory might be /var/www/html/f11, for an HTTP install.
要​从​安​装​光​盘​中​把​文​件​复​制​到​充​当​安​装​服​务​器​的​机​器​上​,执​行​以​下​步​骤​:
  • Create an iso image from the installation disk(s) using the following command (for DVDs):
    dd if=/dev/dvd of=/location/of/disk/space/f11.iso
    这​里​的 dvd 指​的​是 DVD 驱​动​设​备​:
    For instructions on how to prepare a network installation using CD-ROMs, refer to the instructions on the README-en file in disk1.

3.5.1. 筹​备 FTP 和 HTTP 安​装​

Extract the files from the iso image of the installation DVD or the iso images of the installation CDs and place them in a directory that is shared over FTP or HTTP.
Next, make sure that the directory is shared via FTP or HTTP, and verify client access. You can check to see whether the directory is accessible from the server itself, and then from another machine on the same subnet that you will be installing to.

3.5.2. 筹​备 NFS 安​装​

对​于 NFS 安​装​来​说​,没​有​必​要​挂​载 iso 映​像​。​使 iso 映​像​通​过 NFS 可​用​就​足​够​了​。​你​可​以​把 iso 映​像​移​到 NFS 的​输​出​目​录​来​使​它​可​用​。​
  • For DVD:
    mv /location/of/disk/space/f11.iso /publicly/available/directory/
  • For CDROMs:
    mv /location/of/disk/space/f11-disk*.iso /publicly/available/directory/
Ensure that the /publicly/available/directory directory is exported via NFS via an entry in /etc/exports.
要​输​出​到​指​定​的​系​统​:
/publicly/available/directory client.ip.address(ro,no_root_squash)
要​输​出​到​所​有​系​统​里​,使​用​如​下​的​设​置​:
/publicly/available/directory *(ro,no_root_squash)
Start the NFS daemon (on a Fedora system, use /sbin/service nfs start). If NFS is already running, reload the configuration file (on a Fedora system use /sbin/service nfs reload).
Hard drive installations require the use of the ISO (or DVD/CD-ROM) images. An ISO image is a file containing an exact copy of a DVD/CD-ROM image. After placing the required ISO images (the binary Fedora DVD/CD-ROMs) in a directory, choose to install from the hard drive. You can then point the installation program at that directory to perform the installation.
要​筹​备​系​统​进​行​硬​盘​驱​动​器​安​装​,你​必​须​使​用​以​下​方​法​之​一​来​设​置​系​统​:
  • 使​用​一​组​光​盘​集​合 — 从​每​个​安​装​光​盘​(或 DVD)中​创​建​光​盘 ISO 映​像​文​件​。​对​于​每​个​光​盘​,在 Linux 系​统​上​执​行​以​下​命​令​(对​于 DVD 只​执​行​一​次​):
    dd if=/dev/cdrom of=/tmp/file-name.iso
    
  • 使​用 ISO 映​像 — 把​这​些​映​像​传​输​到​要​安​装​的​系​统​上​。​
    在​试​图​安​装​前​,请​校​验 ISO 映​像​的​完​整​性​。​这​会​帮​助​你​避​免​硬​盘​安​装​过​程​中​经​常​会​遇​到​的​问​题​。​要​在​执​行​安​装​前​校​验 ISO 映​像​的​完​整​性​,请​使​用 md5sum 程​序​(该​程​序​有​适​用​于​各​类​操​作​系​统​的​版​本​)。​md5sum 程​序​应​该​可​以​在​提​供 ISO 映​像​的​同​一​服​务​器​上​找​到​。​

Note

The Fedora installation program has the ability to test the integrity of the installation media. It works with the CD / DVD, hard drive ISO, and NFS ISO installation methods. We recommend that you test all installation media before starting the installation process, and before reporting any installation-related bugs (many of the bugs reported are actually due to improperly-burned CDs). To use this test, type the following command at the boot: prompt:
linux mediacheck
Additionally, if a file called updates.img exists in the location from which you install, it is used for updates to anaconda, the installation program. Refer to the file install-methods.txt in the anaconda RPM package for detailed information on the various ways to install Fedora, as well as how to apply the installation program updates.


[1] Unpartitioned disk space means that available disk space on the hard drive(s) you are installing to has not been divided into sections for data. When you partition a disk, each partition behaves like a separate disk drive.

第 4 章 System Specifications List

However, when performing certain types of installation, some specific details might be useful or even essential.
  • If you plan to use a customized partition layout, record:
    • The model numbers, sizes, types, and interfaces of the hard drives attached to the system. For example, Seagate ST3320613AS 320 GB on SATA0, Western Digital WD7500AAKS 750 GB on SATA1. This will allow you to identify specific hard drives during the partitioning process.
  • If you are installing Fedora as an additional operating system on an existing system, record:
    • The mount points of the existing partitions on the system. For example, /boot on sda1, / on sda2, and /home on sdb1. This will allow you to identify specific partitions during the partitioning process.
  • If you plan to install from an image on a local hard drive:
  • If you plan to install from a network location, or install on an iSCSI target:
    • The make and model numbers of the network adapters on your system. For example, Netgear GA311. This will allow you to identify adapters when manually configuring the network.
    • IP、​DHCP 和 BOOTP 地​址​
    • Netmask
    • Gateway IP address
    • One or more name server IP addresses (DNS)
    如​果​你​不​熟​悉​以​上​的​联​网​需​求​或​术​语​,请​联​系​你​的​网​络​管​理​员​。​
  • If you plan to install from a network location:
  • If you plan to install on an iSCSI target:
  • If your computer is part of a domain:
    • You should verify that the domain name will be supplied by the DHCP server. If not, you will need to input the domain name manually during installation.

第 5 章 用​于 Intel® 或 AMD 系​统​的​驱​动​介​质​

5.1. 为​什​么​需​要​驱​动​程​序​盘​

While the Fedora installation program is loading, a screen may appear asking you for driver media. The driver media screen is most often seen in the following scenarios:
  • There is no driver available for a piece of hardware that is necessary for installation to proceed.
  • If you run the installation program by entering linux dd at the installation boot prompt.

5.2. 驱​动​程​序​介​质​到​底​是​什​么​?

驱​动​程​序​介​质​能​够​为​安​装​程​序​可​能​支​持​也​可​能​不​支​持​的​硬​件​添​加​支​持​。​它​可​以​是​由​红​帽​制​作​的​驱​动​软​盘​或​者​映​像​文​件​,也​可​以​根​据​在​互​联​网​上​发​现​的​驱​动​程​序​自​制​,还​可​以​是​硬​件​制​造​商​配​给​硬​件​的​软​盘​或​光​盘​。​
Driver media is used if you need access to a particular device to install Fedora. Drivers can be used for non-standard, very new, or uncommon devices.

Note

If an unsupported device is not needed to install Fedora on your system, continue with the installation and add support for the new piece of hardware once the installation is complete.

5.3. 如​何​获​取​驱​动​程​序​介​质​

Driver images may be available from a hardware or software vendor's website. If you suspect that your system may require one of these drivers, you should create a driver diskette or CD-ROM before beginning your Fedora installation.

Note

你​还​可​能​通​过​一​个​网​络​文​件​来​使​用​驱​动​程​序​映​像​。​你​可​以​使​用 linux dd=url 命​令​来​替​代 linux dd 引​导​命​令​,其​中​的 url 是​驱​动​程​序​映​像​所​在​的 HTTP、​FTP、​或 NFS 地​址​。​

部分 II. The installation process

This part of the Fedora Installation Guide details the installation process itself, from various methods of booting the installer up to the point where the computer must restart to finalize the installation. This part of the manual also includes a chapter on troubleshooting problems with the installation process.

目录

6. 开​始​安​装​
6.1. 启​动​选​单​
6.2. 从​另​一​个​不​同​的​源​安​装​
6.3. 正​在​检​查​介​质​
6.3.1. 正​在​检​查 Live CD
6.3.2. 正​在​检​查 DVD
6.4. 使​用 PXE 从​网​络​启​动​
6.5. 图​形​和​文​本​界​面​
7. Installing on Intel and AMD Systems
7.1. The Graphical Installation Program User Interface
7.1.1. A Note about Virtual Consoles
7.2. 文​本​模​式​安​装​程​序​用​户​界​面​
7.2.1. 使​用​键​盘​来​导​航​
7.3. Starting the Installation Program
7.3.1. Booting the Installation Program on x86, AMD64, and Intel 64 Systems
7.3.2. Additional Boot Options
7.4. 选​择​安​装​方​法​
7.5. 从​光​盘​中​安​装​
7.5.1. 如​果​没​有​发​现 IDE 光​盘​怎​么​办​?
7.6. 从​硬​盘​安​装​
7.7. 执​行​网​络​安​装​
7.8. 通​过 NFS 安​装​
7.9. Installing via FTP or HTTP
7.10. 欢​迎​使​用​
7.11. Language Selection
7.12. Keyboard Configuration
7.13. Initializing the Hard Disk
7.14. 升​级​已​有​的​系​统​
7.14.1. 升​级​检​测​
7.14.2. 使​用​安​装​程​序​升​级​
7.14.3. 更​新​引​导​加​载​程​序​
7.15. Network Configuration
7.15.1. Manual configuration
7.16. 时​区​配​置​
7.17. 设​置​根​密​码​
7.18. Disk Partitioning Setup
7.18.1. RAID and Other Disk Devices
7.19. Advanced Storage Options
7.20. Create Default Layout
7.21. 为​您​的​系​统​分​区​
7.21.1. 硬​盘​的​图​形​化​表​示​
7.21.2. The partitioning screen
7.21.3. 分​区​字​段​
7.21.4. 推​荐​的​分​区​方​案​
7.21.5. 添​加​分​区​
7.21.6. 编​辑​分​区​
7.21.7. 删​除​分​区​
7.22. x86、​AMD64 和 Intel 64 系​统​的​引​导​装​载​程​序​(Boot Loader)的​配​置​
7.22.1. 高​级​引​导​装​载​程​序​配​置​
7.22.2. Rescue Mode
7.22.3. 其​它​可​选​的​引​导​装​载​程​序​
7.23. Package Group Selection
7.23.1. Installing from Additional Repositories
7.23.2. Customizing the Software Selection
7.24. 准​备​安​装​
7.24.1. 准​备​安​装
7.25. Installing Packages
7.26. 安​装​完​成​
8. 在 Intel 或 AMD 系​统​上​进​行​安​装​的​故​障​解​除​
8.1. You are unable to boot Fedora
8.1.1. 无​法​使​用 RAID 卡​来​引​导​
8.1.2. 系​统​显​示​了​信​号 11 错​误​
8.2. 安​装​起​始​部​分​的​问​题​
8.2.1. Problems with Booting into the Graphical Installation
8.3. 安​装​过​程​中​的​问​题​
8.3.1. No devices found to install Fedora Error Message
8.3.2. Saving traceback messages without removeable media
8.3.3. Trouble with Partition Tables
8.3.4. 使​用​剩​余​空​间​
8.3.5. 其​它​分​区​问​题​
8.3.6. 看​到 Python 错​误​
8.4. 安​装​后​的​问​题​
8.4.1. 在 x86 系​统​的 GRUB 图​形​化​屏​幕​中​遇​到​问​题​
8.4.2. 引​导​入​图​形​环​境​
8.4.3. 引​导​入 X 窗​口​系​统​(GUI)的​问​题​
8.4.4. X 服​务​器​崩​溃​和​非​根​用​户​的​问​题​
8.4.5. 登​录​时​的​问​题​
8.4.6. 你​的​内​存​不​能​够​被​识​别​吗​?
8.4.7. 您​的​打​印​机​无​法​工​作​
8.4.8. 配​置​声​卡​遇​到​问​题​
8.4.9. 基​于 Apache httpd 的​服​务​/Sendmail 在​启​动​时​挂​起​

第 6 章 开​始​安​装​

取​消​安​装​

To abort the installation, either press Ctrl +Alt+Del or power off your computer with the power switch. You may abort the installation process without consequence at any time prior to selecting Write changes to disk on the Write partitioning to disk screen. Fedora makes no permanent changes to your computer until that point. Please be aware that stopping the installation after partitioning has begun can leave your computer unusable.

6.1. 启​动​选​单​

启​动​媒​体​会​显​示​一​个​图​形​的​启​动​选​单​。​如​果​您​在 60 秒​内​没​有​按​下​任​何​键​,那​么​预​设​的​选​项​将​会​执​行​,也​可​以​直​接​按​下 Enter 来​执​行​预​设​的​选​项​。​如​果​要​使​用​不​同​的​选​项​,请​使​用​键​盘​上​的​方​向​键​来​操​作​,当​完​成​后​按​下 Enter 键​。​如​果​您​想​自​订​启​动​选​项​,请​按​下 Tab 键​。​

启​动​选​项​

取​得​一​份​启​动​选​项​的​列​表​,请​访​问 第 9 章 启​动​选​项​。​
When using Fedora Live media, press any key during the initial boot countdown to bring up the Boot Options menu. The boot options include:
  • 启​动​
    这​是​预​设​的​选​项​。​如​果​您​选​择​这​个​选​项​,就​只​有​核​心​和​用​于​启​动​的​程​序​会​载​入​记​忆​体​,所​以​启​动​的​时​间​会​较​少​。​但​启​动​其​他​程​序​会​使​用​较​多​的​时​间​来​载​入​。​这​个​选​项​可​用​于​记​忆​体​容​量​小​的​电​脑​。​
  • 校​验​并​启​动​
    这​个​选​项​在​您​启​动​光​盘​之​前​先​验​证​光​盘​的​完​整​性​。​请​参​考 第 6.3 节 “正​在​检​查​介​质​” 以​获​得​更​多​资​料​。​
  • 内​存​测​试​
    这​个​选​项​将​在​你​系​统​上​运​行​彻​底​的​内​存​测​试​。​要​获​得​更​多​信​息​,参​考 第 9.6.1 节 “加​载​内​存 (RAM) 检​测​模​式​”。​
  • 从​本​地​驱​动​盘​启​动​
    该​选​项​从​第​一​个​已​安​装​磁​盘​上​启​动​系​统​。​如​果​你​偶​然​启​动​了​本​光​盘​,使​用​该​选​项​可​立​即​从​硬​盘​启​动​而​不​启​动​安​装​程​序​。​
如​果​您​是​从 DVD,救​援​光​盘​或​小​容​量​的​启​动​媒​体​启​动​,会​包​含​以​下​的​选​项​:
  • 安​装​或​升​级​已​有​的​系​统​
    该​选​项​为​默​认​。​选​择​该​选​项​将​使​用​图​形​安​装​程​序​安​装 Fedora 到​你​的​计​算​机​系​统​。​
  • 以​基​本​显​卡​驱​动​安​装​系​统​
    This option allows you to install Fedora in graphical mode even if the installation program is unable to load the correct driver for your video card. If your screen appears distorted or goes blank when using the the Install or upgrade an existing system option, restart your computer and try this option instead.
  • 救​援​已​安​装​系​统​
    选​择​这​个​选​项​将​用​你​已​安​装​的​(但​无​法​正​常​启​动​的​) Fedora 系​统​修​复​某​个​问​题​。​尽​管 Fedora 是​一​个​具​有​优​越​稳​定​性​的​计​算​平​台​,仍​然​有​可​能​偶​尔​的​发​生​无​法​启​动​的​情​况​。​这​个​救​援​环​境​包​含​允​许​你​修​复​大​部​分​此​类​问​题​的​工​具​程​序​。​
  • 从​本​地​驱​动​盘​启​动​
    (as for Live CD)
  • 内​存​测​试​
    (as for Live CD)

6.2. 从​另​一​个​不​同​的​源​安​装​

All boot media except the distribution DVD present a menu that allows you to choose the installation source, such as the network or a hard disk. If you are booting the distribution DVD and do not want to install from the DVD, hit Tab at the boot menu. Add a space and the option linux askmethod to the end of the line that appears below the menu.
你​可​以​通​过​存​放​在​硬​盘​上​的 ISO 映​像​文​件​,或​使​用 NFS, FTP, 或 HTTP 模​式​的​某​个​网​络​来​安​装 Fedora。​有​经​验​的​用​户​经​常​使​用​以​上​方​法​中​的​一​种​,因​为​从​硬​盘​或​网​络​服​务​器​中​读​取​数​据​要​比​从​光​盘​或 DVD 盘​中​快​。​
下​列​表​格​会​简​要​介​绍​不​同​的​引​导​模​式​及​每​一​个​推​荐​的​安​装​方​式​:
Boot method 安​装​方​法​
DVD DVD,网​络​,或​硬​盘​
最​小​的​启​动​光​盘​或 U 盘​,救​援​光​盘​ 网​络​或​硬​盘​
Live CD 或 U 盘​ 安​装​到​硬​盘​程​序​
表 6.1. Boot methods and installation methods

第 7.4 节 “选​择​安​装​方​法​” contains detailed information about installing from alternate locations.

6.3. 正​在​检​查​介​质​

分​发​的 DVD 介​质​和 Live 光​盘​介​质​提​供​一​个​选​项​以​检​查​介​质​的​完​整​性​。​当​在​家​用​电​脑​设​备​创​建​光​盘​或 DVD 介​质​时​有​时​会​发​生​刻​录​错​误​。​安​装​程​序​选​定​的​软​件​包​数​据​中​的​某​个​错​误​可​能​将​导​致​安​装​失​败​。​要​最​小​化​数​据​错​误​而​影​响​安​装​的​机​率​,请​在​安​装​前​检​查​介​质​。​

6.3.1. 正​在​检​查 Live CD

如​果​你​从 Live 光​盘​启​动​,从​启​动​菜​单​选​择 校​验​并​启​动​。​校​验​过​程​在​启​动​过​程​中​自​动​运​行​,如​果​校​验​成​功​,Live 光​盘​将​继​续​加​载​。​如​果​校​验​失​败​,用​你​先​前​下​载​的 ISO 映​像​创​建​一​个​新​的 Live 光​盘​。​

6.3.2. 正​在​检​查 DVD

如​果​你​从 Fedora 分​发​的 DVD 引​导​,在​你​选​择​安​装 Fedora 之​后​会​出​现​检​验​介​质​的​选​项​。​如​果​校​验​成​功​,安​装​过​程​将​正​常​进​行​。​如​果​失​败​,请​用​你​之​前​下​载​的 ISO 映​像​创​建​一​张​新​的 DVD。​

6.4. 使​用 PXE 从​网​络​启​动​

配​置​计​算​机​为​从​网​络​接​口​启​动​。​这​个​选​项​在 BIOS 中​,可​能​被​标​记​为 Network BootBoot Services。​一​旦​您​正​确​地​配​置​了 PXE 启​动​,电​脑​将​不​需​要​其​他​介​质​启​动 Fedora 安​装​系​统​。​
要​通​过 PXE 服​务​器​启​动​计​算​机​:
  1. 确​认​网​络​电​缆​已​插​好​。​网​卡​的​连​接​指​示​灯​会​亮​起​,即​使​计​算​机​没​有​打​开​电​源​。​
  2. 打​开​计​算​机​电​源​。​
  3. 接​下​来​会​出​现​一​个​菜​单​屏​幕​。​按​下​相​应​于​所​需​要​的​选​项​的​数​字​键​。​

PXE 出​错​处​理​

如​果​您​的​计​算​机​没​有​从​网​络​服​务​器​启​动​,检​查 BIOS 是​否​配​置​为​从​正​确​的​网​络​接​口​启​动​。​一​些 BIOS 将​网​络​接​口​标​记​为​可​能​的​启​动​设​备​,但​是​并​不​支​持 PXE 标​准​。​查​看​您​的​硬​件​手​册​来​获​取​更​多​信​息​。​

多​重​NICs和​PXE安​装

Some servers with multiple network interfaces may not assign eth0 to the first network interface as BIOS knows it, which can cause the installer to try using a different network interface than was used by PXE. To change this behavior, use the following in pxelinux.cfg/* config files:
IPAPPEND 2
APPEND ksdevice=bootif
The configuration options above causes the installer to use the same network interface as BIOS and PXE use. You can also use the following option:
ksdevice=link
This option causes the installer to use the first network device it finds that is linked to a network switch.

6.5. 图​形​和​文​本​界​面​

Fedora 11 supports graphical and text-based installations. However, the installer image must either fit in RAM or appear on local storage, such as the installation DVD or Live Media. Therefore, only systems with more than 192 MB of RAM or that boot from the installation DVD or Live Media can use the graphical installer. Systems with 192 MB RAM or less automatically scale back to using the text-based installer. Note that you must still have a minimum of 64 MB of RAM for installation to proceed in text mode. If you prefer to use the text-based installer, type linux text at the boot: prompt.
如​果​发​生​下​列​状​况​之​一​,安​装​程​序​将​使​用​文​本​模​式​:
  • 安​装​无​法​识​别​您​系​统​中​的​显​示​硬​件​。​
  • 你​电​脑​的​内​存​少​于 192 MB。​
  • 从​启​动​菜​单​中​选​择​文​本​模​式​安​装​
The text screens provide most of the same functions as the standard screens, although disk partitioning is simplified, and bootloader configuration and package selection are handled automatically in text mode. If you choose to install Fedora in text mode, you can still configure your system to use a graphical interface after installation.

使​用​图​形​界​面​

Installing in text mode does not prevent you from using a graphical interface on your system once it is installed. If you have trouble configuring your system for graphical interface use, consult other sources for troubleshooting help as shown in 第 1.2 节 “取​得​更​多​的​帮​助​”.

安​装​过​程​至​少​需​要​64MB内​存​

如​果​您​的​计​算​机​不​足​64MB内​存​,安​装​将​停​止​。​

第 7 章 Installing on Intel® and AMD Systems

7.1. The Graphical Installation Program User Interface
7.1.1. A Note about Virtual Consoles
7.2. 文​本​模​式​安​装​程​序​用​户​界​面​
7.2.1. 使​用​键​盘​来​导​航​
7.3. Starting the Installation Program
7.3.1. Booting the Installation Program on x86, AMD64, and Intel 64 Systems
7.3.2. Additional Boot Options
7.4. 选​择​安​装​方​法​
7.5. 从​光​盘​中​安​装​
7.5.1. 如​果​没​有​发​现 IDE 光​盘​怎​么​办​?
7.6. 从​硬​盘​安​装​
7.7. 执​行​网​络​安​装​
7.8. 通​过 NFS 安​装​
7.9. Installing via FTP or HTTP
7.10. 欢​迎​使​用​
7.11. Language Selection
7.12. Keyboard Configuration
7.13. Initializing the Hard Disk
7.14. 升​级​已​有​的​系​统​
7.14.1. 升​级​检​测​
7.14.2. 使​用​安​装​程​序​升​级​
7.14.3. 更​新​引​导​加​载​程​序​
7.15. Network Configuration
7.15.1. Manual configuration
7.16. 时​区​配​置​
7.17. 设​置​根​密​码​
7.18. Disk Partitioning Setup
7.18.1. RAID and Other Disk Devices
7.19. Advanced Storage Options
7.20. Create Default Layout
7.21. 为​您​的​系​统​分​区​
7.21.1. 硬​盘​的​图​形​化​表​示​
7.21.2. The partitioning screen
7.21.3. 分​区​字​段​
7.21.4. 推​荐​的​分​区​方​案​
7.21.5. 添​加​分​区​
7.21.6. 编​辑​分​区​
7.21.7. 删​除​分​区​
7.22. x86、​AMD64 和 Intel 64 系​统​的​引​导​装​载​程​序​(Boot Loader)的​配​置​
7.22.1. 高​级​引​导​装​载​程​序​配​置​
7.22.2. Rescue Mode
7.22.3. 其​它​可​选​的​引​导​装​载​程​序​
7.23. Package Group Selection
7.23.1. Installing from Additional Repositories
7.23.2. Customizing the Software Selection
7.24. 准​备​安​装​
7.24.1. 准​备​安​装
7.25. Installing Packages
7.26. 安​装​完​成​
This chapter explains how to perform a Fedora installation from the DVD/CD-ROM, using the graphical, mouse-based installation program. The following topics are discussed:
  • 逐​渐​熟​悉​安​装​程​序​的​用​户​界​面​
  • 启​动​安​装​程​序​
  • 选​择​安​装​方​法​
  • 安​装​中​的​配​置​步​骤​(语​言​、​键​盘​、​鼠​标​、​分​区​等​等​)
  • 结​束​安​装​

7.1. The Graphical Installation Program User Interface

如​果​你​从​前​使​用​过​图​形​化​用​户​界​面​(graphical user interface,GUI),你​对​这​一​进​程​会​比​较​熟​悉​;你​只​需​使​用​鼠​标​在​屏​幕​间​翻​阅​,“​点​击​”​按​钮​,或​者​输​入​文​本​字​段​。​
你​还​可​以​使​用​键​盘​在​安​装​中​浏​览​各​屏​幕​。​Tab键​允​许​你​在​屏​幕​中​移​动​;上​下​箭​头​键​允​许​你​在​列​表​中​移​动​;+和​-符​号​键​允​许​你​扩​展​或​紧​缩​列​表​;Space和​Enter键​选​择​或​取​消​选​择​被​突​出​显​示​的​项​目​。​你​还​可​以​使​用 Alt+X 键​组​合​来​点​击​按​钮​或​选​择​其​它​屏​幕​,这​里​的 X 代​表​屏​幕​中​带​下​划​线​的​字​母​。​

Note

If you are using an x86, AMD64, or Intel® 64 system, and you do not wish to use the GUI installation program, the text mode installation program is also available. To start the text mode installation program, press the Esc key while the Fedora boot menu is displayed, then use the following command at the boot: prompt:
linux text
Refer to 第 6.1 节 “启​动​选​单​” for a description of the Fedora boot menu and to 第 7.2 节 “文​本​模​式​安​装​程​序​用​户​界​面​” for a brief overview of text mode installation instructions.
It is highly recommended that installs be performed using the GUI installation program. The GUI installation program offers the full functionality of the Fedora installation program, including LVM configuration which is not available during a text mode installation.
必​须​使​用​文​本​模​式​安​装​程​序​的​用​户​可​以​遵​循​图​形​化​安​装​说​明​来​获​得​所​需​信​息​。​

7.1.1. A Note about Virtual Consoles

The Fedora installation program offers more than the dialog boxes of the installation process. Several kinds of diagnostic messages are available to you, as well as a way to enter commands from a shell prompt. The installation program displays these messages on five virtual consoles, among which you can switch using a single keystroke combination.
虚​拟​控​制​台​是​非​图​形​化​环​境​中​的 shell 提​示​,从​物​理​机​器​中​而​不​是​远​程​地​进​入​。​你​可​以​同​时​进​入​多​个​虚​拟​控​制​台​。​
一​般​来​说​,除​非​你​试​图​诊​断​安​装​问​题​,你​没​有​理​由​离​开​默​认​的​控​制​台​(图​形​化​安​装​是​第​六​号​虚​拟​控​制​台​)。​
终​端​ 击​键​ 内​容​
1 ctrl+alt+f1 installation dialog
2 ctrl+alt+f2 shell提​示​符​
3 ctrl+alt+f3 安​装​日​志​(安​装​程​序​的​信​息​)
4 ctrl+alt+f4 系​统​相​关​信​息​
5 ctrl+alt+f5 其​它​信​息​
6 ctrl+alt+f6 图​形​化​显​示​
表 7.1. 控​制​台​,击​键​,和​内​容​

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

注意

如​果​您​的​系​统​有​图​形​化​显​示​,但​是​图​形​化​安​装​失​败​,请​尝​试​用​xdriver=vesa选​项​启​动​–;参​考 第 9 章 启​动​选​项​
The Fedora text mode installation program uses a screen-based interface that includes most of the on-screen widgets commonly found on graphical user interfaces. 图 7.1 “在​「​引​导​装​载​程​序​配​置​」​中​所​见​的​安​装​程​序​控​件​”, and 图 7.2 “Installation Program Widgets as seen in the partitioning screen”, illustrate the screens that appear during the installation process.
The cursor is used to select (and interact with) a particular widget. As the cursor is moved from widget to widget, it may cause the widget to change color, or the cursor itself may only appear positioned in or next to the widget.

Note

While text mode installations are not explicitly documented, those using the text mode installation program can easily follow the GUI installation instructions. However, because text mode presents you with a simpler, more streamlined insatallation process, certain options that are available in graphical mode are not also available in text mode. These differences are noted in the description of the installation process in this guide, and include:
  • customizing the partition layout.
  • customizing the bootloader configuration.
  • selecting packages during installation.
Note also that manipulation of LVM (Logical Volume Management) disk volumes is only possible in graphical mode. In text mode it is only possible to view and accept the default LVM setup.

Note

Not every language supported in graphical installation mode is also supported in text mode. Specifically, languages written with a character set other than the Latin or Cyrillic alphabets are not available in text mode. If you choose a language written with a character set that is not supported in text mode, the installation program will present you with the English versions of the screens.
在​「​引​导​装​载​程​序​配​置​」​中​所​见​的​安​装​程​序​控​件​
在​「​引​导​装​载​程​序​配​置​」​中​所​见​的​安​装​程​序​控​件​
图 7.1. 在​「​引​导​装​载​程​序​配​置​」​中​所​见​的​安​装​程​序​控​件​

Legend
  1. 窗​口 — 在​整​个​安​装​进​程​中​,你​会​不​时​地​在​屏​幕​上​看​到​窗​口​(本​书​中​通​常​把​它​称​为​对​话​框​,dialog)。​有​时​,一​个​窗​口​会​重​叠​在​另​一​个​窗​口​之​上​;在​这​种​情​况​下​,你​只​能​与​最​上​面​的​窗​口​交​流​。​当​该​窗​口​使​用​完​毕​,它​就​会​消​失​,允​许​你​继​续​使​用​下​面​的​窗​口​。​
  2. 复​选​箱 — 复​选​箱​允​许​你​选​择​或​取​消​选​择​某​项​功​能​。​箱​内​要​么​显​示​一​个​星​号​(已​选​),要​么​是​一​个​空​格​(未​选​)。​当​光​标​位​于​复​选​箱​内​,按 Space 键​来​选​择​一​个​未​选​的​功​能​或​取​消​一​个​已​选​的​功​能​。​
  3. 文​本​输​入​行 — 文​本​输​入​行​是​你​可​以​输​入​安​装​程​序​所​要​求​信​息​的​区​域​。​当​光​标​停​在​文​本​输​入​行​时​,你​可​以​在​那​一​行​中​输​入​并​(或​)编​辑​信​息​。​
Installation Program Widgets as seen in the partitioning screen
Installation Program Widgets as seen in the partitioning screen
图 7.2. Installation Program Widgets as seen in the partitioning screen

Legend
  1. 文​本​构​件 — 文​本​构​件​是​屏​幕​上​用​于​显​示​文​本​的​区​域​。​有​时​,文​本​构​件​可​能​还​会​含​有​其​它​构​件​,如​复​选​箱​。​如​果​文​本​构​件​所​含​的​信​息​超​出​为​它​保​留​的​空​间​所​能​显​示​的​,一​个​滚​动​条​就​会​出​现​;如​果​你​将​光​标​定​位​于​文​本​构​件​之​内​,你​可​以​使​用​向​上​和​向​下​ 箭​头​键​来​在​所​有​信​息​中​上​下​滚​动​。​你​在​滚​动​条​上​的​当​前​位​置​被​显​示​为​一​个 # 字​符​,它​会​在​你​拖​拉​滚​动​条​时​移​上​移​下​。​
  2. 滚​动​条 — 滚​动​条​出​现​在​窗​口​的​侧​面​或​底​部​,它​用​来​控​制​窗​框​内​显​示​的​文​档​或​列​表​部​分​。​滚​动​条​使​你​能​够​轻​而​易​举​地​查​看​文​件​的​任​意​部​分​。​
  3. 按​钮​构​件 — 按​钮​构​件​是​与​安​装​程​序​交​流​的​主​要​方​法​。​通​过 Tab 键​和 Enter 键​使​用​这​些​按​钮​,你​可​在​安​装​程​序​的​屏​幕​中​逐​步​推​进​。​当​按​钮​被​突​出​显​示​时​,它​们​可​以​被​选​择​。​

7.2.1. 使​用​键​盘​来​导​航​

在​安​装​对​话​框​之​间​的​切​换​是​通​过​一​组​简​单​的​击​键​来​达​到​的​。​要​移​动​光​标​,使​用 向​左​、​向​右​、​向​上​、​和​向​下​箭​头​键​。​使​用 TabShift-Tab 键​来​在​屏​幕​上​的​每​个​构​件​间​向​前​或​向​后​循​环​。​多​数​屏​幕​在​底​部​显​示​了​一​个​可​用​光​标​定​位​键​的​摘​要​。​
要​“​按​”​一​个​按​钮​,将​光​标​定​位​在​按​钮​之​上​(例​如​,使​用 Tab 键​),然​后​按 SpaceEnter 键​。​要​从​一​列​项​目​中​选​择​一​项​,将​光​标​移​至​你​要​选​择​的​项​目​,然​后​按 Enter 键​。​要​选​择​一​个​带​复​选​箱​的​项​目​,将​光​标​移​至​复​选​箱​内​,然​后​按 Space 键​来​选​择​这​个​项​目​。​要​取​消​选​择​,再​按​一​次 Space 键​。​
F12 来​接​受​当​前​值​,并​继​续​到​下​一​个​对​话​框​;这​相​当​于​按​「​确​定​」​按​钮​。​

Warning

除​非​一​个​对​话​框​在​等​待​你​的​输​入​,在​安​装​进​程​中​不​要​随​意​按​键​(这​么​做​可​能​会​导​致​无​法​预​料​的​行​为​)。​
To start, first make sure that you have all necessary resources for the installation. If you have already read through 第 3 章 安​装​前​的​准​备​工​作​, and followed the instructions, you should be ready to start the installation process. When you have verified that you are ready to begin, boot the installation program using the Fedora DVD or CD-ROM #1 or any boot media that you have created.

7.3.1. Booting the Installation Program on x86, AMD64, and Intel® 64 Systems

您​可​使​用​以​下​介​质​(依​赖​于​您​系​统​所​能​支​持​的​)之​一​来​启​动​安​装​程​序​:
To create a boot CD-ROM or to prepare your USB pen drive for installation, refer to 第 3.4.2 节 “制​作​安​装​引​导​光​盘​”.
放​入​启​动​介​质​然​后​重​启​。​BIOS设​置​需​改​为​从​CD-ROM或​USB启​动​。​

Note

要​修​改​x86,AMD64或​Intel® 64 system平​台​的​BIOS设​置​,请​注​意​计​算​机​刚​启​动​时​的​信​息​。​有​行​文​字​会​告​诉​您​按​哪​个​键​进​入​BIOS设​置​。​
Once you have entered your BIOS setup program, find the section where you can alter your boot sequence. The default is often C, A or A, C (depending on whether you boot from your hard drive [C] or a diskette drive [A]). Change this sequence so that the CD-ROM is first in your boot order and that C or A (whichever is your typical boot default) is second. This instructs the computer to first look at the CD-ROM drive for bootable media; if it does not find bootable media on the CD-ROM drive, it then checks your hard drive or diskette drive.
保​存​更​改​后​退​出​BIOS。​有​关​更​多​信​息​请​参​考​计​算​机​随​机​附​送​的​说​明​书​。​
短​暂​停​顿​后​,将​出​现​带​有​boot:提​示​的​屏​幕​。​该​屏​幕​内​容​包​含​多​个​启​动​选​项​。​每​个​选​项​又​包​含​一​个​或​多​个​帮​助​屏​幕​。​要​进​入​帮​助​屏​幕​,请​根​据​屏​幕​下​方​提​示​按​合​适​的​键​。​
当​您​启​动​安​装​程​序​时​,注​意​一​下​两​条​:
  • 一​旦​boot:提​示​符​出​现​,在​一​分​钟​内​不​做​操​作​的​话​安​装​程​序​将​自​动​启​动​。​要​禁​用​此​特​性​,按​帮​助​屏​幕​的​功​能​键​。​
  • If you press a help screen function key, there is a slight delay while the help screen is read from the boot media.
Normally, you only need to press Enter to boot. Be sure to watch the boot messages to review if the Linux kernel detects your hardware. If your hardware is properly detected, continue to the next section. If it does not properly detect your hardware, you may need to restart the installation and use one of the boot options provided in 第 9 章 启​动​选​项​.

7.3.2. Additional Boot Options

While it is easiest to boot using a CD-ROM or DVD and perform a graphical installation, sometimes there are installation scenarios where booting in a different manner may be needed. This section discusses additional boot options available for Fedora.
To pass options to the boot loader on an x86, AMD64, or Intel® 64 system, use the instructions as provided in the boot loader option samples below.

Note

Refer to 第 9 章 启​动​选​项​ for additional boot options not covered in this section.

7.4. 选​择​安​装​方​法​

你​想​使​用​哪​一​种​安​装​方​法​?可​用​的​安​装​方​法​如​下​所​列​:
If you booted the distribution DVD and did not use the alternate installation source option askmethod, the next stage loads automatically from the DVD. Proceed to 第 7.10 节 “欢​迎​使​用​”.

CD/DVD Activity

If you boot any Fedora installation media, the installation program loads its next stage from that disc. This happens regardless of which installation method you choose, unless you eject the disc before you proceed. The installation program still downloads package data from the source you choose.

7.5. 从​光​盘​中​安​装​

To install Fedora from a DVD/CD-ROM, place the DVD or CD #1 in your DVD/CD-ROM drive and boot your system from the DVD/CD-ROM. Even if you booted from alternative media, you can still install Fedora from CD or DVD media.
安​装​程​序​将​会​检​测​你​的​系​统​,并​试​图​识​别​你​的​光​盘​驱​动​器​。​它​会​开​始​寻​找​一​个 IDE(又​称 ATAPI)光​盘​驱​动​器​。​
如​果​你​的​光​盘​驱​动​器​没​有​被​检​测​到​,而​且​它​是​一​个 SCSI 光​盘​,安​装​程​序​将​会​请​你​选​择​一​个 SCSI 驱​动​程​序​。​选​择​与​你​的​适​配​器​最​接​近​的​驱​动​程​序​。​如​果​必​要​,你​可​以​为​驱​动​程​序​指​定​选​项​,然​而​,多​数​驱​动​程​序​会​被​你​的 SCSI 适​配​器​自​动​检​测​到​。​
The Select Partition screen applies only if you are installing from a disk partition (that is, if you selected Hard Drive in the Installation Method dialog). This dialog allows you to name the disk partition and directory from which you are installing Fedora.
The ISO files must be located on a hard drive that is either internal to the computer, or attached to the machine by USB. In addition the install.img file from within the ISO files must be copied to a directory named images Use this option to install Fedora on computers that are without a network connection or CD/DVD drives.
按​以​下​步​骤​从​ISO中​提​取​install.img
mount -t iso9660 /path/to/Fedora11.iso /mnt/point -o loop,ro
  cp -pr /mnt/point/images /path/images/
  umount /mnt/point
从​硬​盘​安​装​之​前​,先​检​查​分​区​类​型​以​保​证​Fedora可​以​读​取​。​要​在​Windows下​查​看​分​区​类​型​,请​使​用​磁​盘​管​理​工​具​。​要​在​Linux下​查​看​,使​用​fdisk。​

无​法​从​LVM分​区​安​装​

您​不​能​在​LVM(逻​辑​卷​管​理​)管​理​的​分​区​上​使​用​ISO文​件​。​
硬​盘​驱​动​器​安​装​的​选​择​分​区​对​话​框​
硬​盘​驱​动​器​安​装​的​选​择​分​区​对​话​框​。​
图 7.3. 硬​盘​驱​动​器​安​装​的​选​择​分​区​对​话​框​

从​可​用​的​分​区​列​表​中​选​择​含​有​ISO文​件​的​分​区​。​内​置​IDE,SATA,SCSI和​USB设​备​名​字​以​/dev/sd开​头​。​每​个​独​立​驱​动​器​都​有​对​应​的​字​母​,例​如​/dev/sda。​驱​动​器​上​的​分​区​按​数​字​排​列​,例​如​/dev/sda1。​
同​时​指​定​镜​像​所​在​目​录​。​输​入​含​有​ISO镜​像​文​件​的​完​整​路​径​。​下​面​列​表​中​显​示​了​一​些​如​何​输​入​此​信​息​的​例​子​。​
Partition type 卷​ 到​文​件​的​原​始​路​径​ 要​使​用​的​目​录​
VFAT D:\ D:\Downloads\F11 /Downloads/F11
ext2, ext3, ext4 /home /home/user1/F11 /user1/F11
表 7.2. 不​同​分​区​类​型​的​ISO镜​像​位​置​

如​果​ISO镜​像​位​于​分​区​的​根​(顶​级​)目​录​下​,则​输​入​/。​如​果​ISO镜​像​位​于​挂​载​分​区​的​子​目​录​中​,则​输​入​那​个​分​区​中​包​含​ISO镜​像​的​目​录​名​。​例​如​,ISO镜​像​所​在​分​区​通​常​挂​载​为​/home/,镜​像​位​于​/home/new/下​,那​么​您​需​输​入​/new/。​

使​用​前​导 斜​杠​‘​/’​

没​有​以​“​/”​斜​杠​打​头​将​导​致​安​装​失​败​。​

7.7. 执​行​网​络​安​装​

The installation program is network-aware and can use network settings for a number of functions. For instance, you can install Fedora from a network server using FTP, HTTP, or NFS protocols. You can also instruct the installation program to consult additional software repositories later in the process.
如​果​你​要​执​行​的​是​网​络​安​装​,「​配​置 TCP/IP」​对​话​框​就​会​出​现​。​该​对​话​框​向​你​询​问 IP 和​其​它​网​络​地​址​。​你​可​以​选​择​通​过 DHCP 或​手​工​地​配​置​设​备​的 IP 地​址​和​子​网​掩​码​。​
默​认​情​况​下​,安​装​程​序​使​用 DHCP 自​动​提​供​网​络​设​置​。​如​果​您​使​用 cable 或​者 DSL 调​制​解​调​器​、​路​由​器​、​防​火​墙​或​者​其​它​网​络​硬​件​与​互​联​网​沟​通​,那​么 DHCP 是​一​个​合​适​的​选​项​。​如​果​您​的​网​络​没​有 DHCP 服​务​器​,那​么​请​取​消​对 使​用​动​态 IP 配​置​(DHCP)的​选​择​。​
输​入​在​安​装​过​程​中​使​用​的 IP 地​址​,然​后​按 Enter 键​。​
TCP/IP 配​置​
配​置​用​于​安​装​的​网​络​设​备​地​址​。​
图 7.4. TCP/IP 配​置​

安​装​完​成​后​,将​会​把​这​些​设​置​转​移​至​您​的​系​统​中​。​
您​可​以​从​Web,FTP,本​地​或​Internet上​的​NFS服​务​器​上​安​装​。​您​也​可​以​从​您​自​己​的​镜​像​或​由​社​区​成​员​维​护​的​公​共​镜​像​上​安​装​Fedora。​为​了​保​证​连​接​尽​可​能​的​快​和​稳​定​,请​使​用​离​你​较​近​的​服​务​器​。​
The Fedora Project maintains a list of Web and FTP public mirrors, sorted by region, at http://fedoraproject.org/wiki/Mirrors. To determine the complete directory path for the installation files, add /11/Fedora/architecture/os/ to the path shown on the web page. A correct mirror location for an i386 system resembles the URL http://mirror.example.com/pub/fedora/linux/releases/11/Fedora/i386/os.

7.8. 通​过 NFS 安​装​

NFS 对​话​框​只​在​你​从 NFS 服​务​器​中​安​装​时​才​会​出​现​(如​果​你​在​「​安​装​方​法​」​中​选​择​了​「​NFS 映​像​」​的​话​)。​
输​入​你​的 NFS 服​务​器​的​域​名​或 IP 地​址​。​譬​如​,如​果​你​是​从 example.com 域​的 eastcoast 主​机​上​安​装​的​话​,在​「​NFS 服​务​器​」​ 字​段​中​输​入 eastcoast.example.com。​
接​下​来​,输​入​导​出​目​录​的​名​称​。​如​果​你​遵​循​了 第 3.5 节 “筹​备​网​络​安​装​” 中​描​述​的​设​置​步​骤​,你​将​应​该​输​入​目​录 /export/directory/。​
If the NFS server is exporting a mirror of the Fedora installation tree, enter the directory which contains the root of the installation tree. You will enter an Installation Key later on in the process which will determine which subdirectories are used to install from. If everything was specified properly, a message appears indicating that the installation program for Fedora is running.
NFS 设​置​对​话​框​
NFS 设​置​对​话​框​。​
图 7.5. NFS 设​置​对​话​框​

If the NFS server is exporting the ISO images of the Fedora CD-ROMs, enter the directory which contains the ISO images.
Next, the Welcome dialog appears.
你​在​这​里​选​择​的​语​言​将​成​为​操​作​系​统​的​缺​省​语​言​。​选​择​恰​当​的​语​言​会​在​稍​后​的​安​装​中​帮​助​你​定​位​时​区​。​安​装​程​序​将​会​试​图​根​据​你​在​这​个​屏​幕​上​所​指​定​的​信​息​来​选​择​恰​当​的​时​区​。​
To add support for additional languages, customize the installation at the package selection stage. For more information, refer to 第 7.23.2.2 节 “Additional Language Support”.
Language Selection
语​言​选​择​屏​幕​。​
图 7.7. Language Selection

当​你​选​定​了​恰​当​的​语​言​后​,点​击​「​下​一​步​」​ 来​继​续​。​
如​果​您​选​择​用​安​装​程​序​升​级​系​统​,所​有​的​同​Fedora软​件​冲​突​的​非​Fedora软​件​都​会​被​覆​盖​。​在​开​始​更​新​之​前​,请​制​作​系​统​当​前​已​安​装​软​件​包​的​列​表​,以​备​参​考​。​
rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE} %{ARCH}\n' > ~/old-pkglist.txt
完​成​安​装​之​后​,对​照​列​表​找​出​需​要​重​新​编​译​或​者​从​非​Fedora软​件​源​下​载​的​软​件​。​
下​一​步​,备​份​所​有​的​系​统​配​置​数​据​。​
su -c 'tar czf /tmp/etc-`date +%F`.tar.gz /etc' su -c 'mv /tmp/etc-*.tar.gz /home'
Make a complete backup of any important data before performing an upgrade. Important data may include the contents of your entire /home directory as well as content from services such as an Apache, FTP, or SQL server, or a source code management system. Although upgrades are not destructive, if you perform one improperly there is a small possibility of data loss.

存​储​备​份​

注​意​上​面​的​例​子​里​,我​们​把​所​有​的​备​份​资​料​都​存​储​到​了​/home目​录​里​。​如​果​您​的​/home不​是​一​个​单​独​的​分​区​,您​应​该​严​格​按​照​下​述​步​骤​操​作​! 请​把​您​的​备​份​存​储​到​另​外​一​个​设​备​里​,比​如​CD/DVD盘​片​或​者​外​置​硬​盘​。​
需​要​关​于​升​级​的​更​多​信​息​,请​参​考 第 16.2 节 “完​成​升​级​”。​

7.14.3. 更​新​引​导​加​载​程​序​

如​果​已​有​的​引​导​加​载​程​序​是​由​某​个 Linux 发​行​版​安​装​的​,安​装​程​序​可​以​修​改​它​为​引​导​新​的 Fedora 系​统​。​要​更​新​已​有​的 Linux 引​导​加​载​程​序​,选​择 Update boot loader configuration(升​级​引​导​加​载​程​序​配​置​)。​当​您​升​级​已​有​的 Fedora; 或 Red Hat Linux 安​装​的​时​候​,这​是​默​认​选​项​。​
GRUB 是 Fedora 的​标​准​引​导​加​载​程​序​。​如​果​您​的​计​算​机​使​用​另​外​一​种​引​导​加​载​程​序​,类​似 BootMagic™,System Commander™ 或​由 Microsoft Windows 安​装​的​加​载​程​序​,Fedora 将​无​法​更​新​它​们​。​这​种​情​况​下​,选​择 Skip boot loader updating(跳​过​引​导​装​载​程​序​升​级​)。​在​安​装​程​序​结​束​之​后​,参​考​那​些​产​品​的​说​明​书​来​查​找​帮​助​。​
只​有​当​您​确​定​要​替​换​现​有​的​引​导​加​载​程​序​的​时​候​,才​能​在​升​级​过​程​中​选​择​安​装​新​的​引​导​加​载​程​序​。​如​果​您​安​装​了​新​的​引​导​加​载​程​序​,在​仔​细​配​置​新​的​引​导​加​载​程​序​之​前​,可​能​无​法​启​动​这​台​机​器​上​其​他​的​操​作​系​统​。​选​择 Create new boot loader configuration(创​建​新​的​引​导​装​载​程​序​配​置​) 来​删​除​已​有​的​引​导​加​载​程​序​并​安​装 GRUB。​
做​出​选​择​之​后​,点​击 下​一​步​ 来​继​续​。​

7.15. Network Configuration

Fedora contains support for both IPv4 and IPv6. However, by default, the installation program configures network interfaces on your computer for IPv4, and to use DHCP via NetworkManager. Currently NetworkManager does not support IPv6. If your network only supports IPv6 you should use system-config-network after installation to configure your network interfaces.
Setup prompts you to supply a host name and domain name for this computer, in the format hostname.domainname. Many networks have a DHCP (Dynamic Host Configuration Protocol) service that automatically supplies connected systems with a domain name, leaving the user to enter a hostname.
Setting the hostname
Setting the hostname
图 7.11. Setting the hostname

To set up a network that is behind an Internet firewall or router, you may want to use hostname.localdomain for your Fedora system. If you have more than one computer on this network, you should give each one a separate host name in this domain.

有​效​的​主​机​名​

可​以​为​系​统​起​任​何​名​字​,只​要​完​整​的​名​称​是​唯​一​的​。​主​机​名​只​能​包​含​字​母​,数​字​和​连​字​符​。​
Specify a time zone even if you plan to use NTP (Network Time Protocol) to maintain the accuracy of the system clock.
通​过​选​择​最​接​近​你​的​计​算​机​的​物​理​位​置​的​城​市​来​设​置​时​区​。​你​可​以​点​击​地​图​来​定​位​某​一​特​定​地​区​。​
Specify a time zone even if you plan to use NTP (Network Time Protocol) to maintain the accuracy of the system clock.
选​择​时​区​的​方​法​有​两​种​:
  • 用​鼠​标​在​互​动​地​图​上​点​击​指​定​城​市​(用​黄​点​表​示​)。​一​个​红​色​的 X 符​号​会​出​现​来​标​明​你​的​选​择​。​
  • 你​还​可​以​在​屏​幕​底​部​的​列​表​中​选​择​时​区​。​使​用​鼠​标​点​击​位​置​来​突​出​显​示​你​的​选​择​。​
配​置​时​区​
时​区​配​置​屏​幕​。​
图 7.13. 配​置​时​区​

If Fedora is the only operating system on your computer, select System clock uses UTC. The system clock is a piece of hardware on your computer system. Fedora uses the timezone setting to determine the offset between the local time and UTC on the system clock. This behavior is standard for UNIX-like operating systems.

Windows and the System Clock

Do not enable the System clock uses UTC option if your machine also runs Microsoft Windows. Microsoft operating systems change the BIOS clock to match local time rather than UTC. This may cause unexpected behavior under Fedora.

Note

要​在​安​装​完​成​后​改​变​时​区​配​置​,你​可​以​使​用​「​时​间​和​日​期​属​性​工​具​」​。​
在 shell 提​示​下​键​入 system-config-date 命​令​来​启​动​「​时​间​和​日​期​属​性​工​具​」​。​如​果​您​不​是​根​用​户​,它​会​提​示​您​输​入​根​密​码​后​再​继​续​。​
如​果​要​在​文​本​模​式​下​运​行​「​时​间​和​日​期​属​性​工​具​」​,你​可​以​使​用 timeconfig 命​令​。​
Select Next to proceed.
Setting up a root account and password is one of the most important steps during your installation. Your root account is similar to the administrator account used on Microsoft Windows machines. The root account is used to install packages, upgrade RPMs, and perform most system maintenance. Logging in as root gives you complete control over your system.

Note

根​用​户​(又​称​超​级​用​户​)对​整​个​系​统​有​完​全​的​控​制​权​;因​此​,最​好​只​有​在​执​行​系​统​维​护​或​管​理​时​使​用​根​用​户​登​录​。​
Root Password
设​置​您​的​root密​码​。​
图 7.14. Root Password

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

Note

要​变​成​根​用​户​,在​终​端​机​窗​口​的 shell 提​示​下​键​入 su - ,并​按 回​车​ 键​,然​后​输​入​根​密​码​并​按 回​车​ 键​。​
The installation program prompts you to set a root password[2] for your system. You cannot proceed to the next stage of the installation process without entering a root password.
根​口​令​必​须​至​少​包​括​六​个​字​符​;你​键​入​的​口​令​不​会​在​屏​幕​上​显​示​。​你​必​须​把​口​令​输​入​两​次​;如​果​两​个​口​令​不​匹​配​,安​装​程​序​将​会​请​你​重​新​输​入​口​令​。​
你​应​该​把​根​口​令​设​为​你​可​以​记​住​但​又​不​容​易​被​别​人​猜​到​的​组​合​。​你​的​名​字​、​电​话​号​码​、 qwertypasswordroot123456、​以​及 anteater 都​是​典​型​的​坏​口​令​。​好​口​令​混​合​使​用​数​字​、​大​小​写​字​母​,并​且​不​包​含​任​何​词​典​中​的​现​成​词​汇​。​例​如​:Aard387vark420BMttNT。​请​记​住​,口​令​是​区​分​大​小​写​的​。​如​果​你​笔​录​下​你​的​口​令​,请​将​之​保​存​在​一​个​安​全​的​地​方​。​然​而​,我​们​建​议​你​不​要​笔​录​任​何​你​创​建​的​口​令​。​

Note

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

Note

在​完​成​安​装​后​,你​如​果​想​修​改​根​密​码​,可​以​使​用​「​根​密​码​工​具​」​。​
在 shell 提​示​下​键​入 system-config-rootpassword 命​令​来​启​动​「​根​密​码​工​具​」​。​如​果​您​不​是​根​用​户​,它​会​提​示​您​输​入​根​密​码​后​再​继​续​。​
在​Root密​码​中​输​入​root密​码​。​为​安​全​起​见​Fedora将​字​符​显​示​为​星​号​。​Confirm中​再​次​输​入​密​码​以​保​证​输​入​无​误​。​设​置​好​root密​码​后​,选​择​下​一​步​继​续​。​

7.18. Disk Partitioning Setup

On this screen you can choose to create the default layout or choose to manual partition using the Create custom layout option.
前​面​三​个​选​项​允​许​你​不​必​亲​自​为​驱​动​器​分​区​而​执​行​自​动​安​装​。​如​果​你​对​在​系​统​上​分​区​信​心​不​足​,建​议​你​不​要​选​择​手​工​分​区​,而​是​让​安​装​程​序​自​动​为​你​分​区​。​
你​也​可​以​为​安​装​配​置 iSCSI 目​标​,或​者​在​这​个​屏​幕​上​点​击​「​高​级​存​储​配​置​」​按​钮​来​禁​用 dmraid 设​备​。​详​情​请​参​考 第 7.19 节 “Advanced Storage Options ”。​

Warning

The PackageKit update software downloads updated packages to /var/cache/yum/ by default. If you partition the system manually, and create a separate /var/ partition, be sure to create the partition large enough (3.0 GB or more) to download package updates.
Disk Partitioning Setup
选​择​自​动​分​区​或​手​工​分​区​。​
图 7.15. Disk Partitioning Setup

If you choose to create a custom layout, refer to 第 7.21 节 “为​您​的​系​统​分​区​”.

Warning

如​果​你​在​安​装​过​程​的​「​磁​盘​分​区​设​置​」​阶​段​看​到​一​则​和​如​下​相​似​的​消​息​:
"无​法​读 hda 设​备​上​的​分​区​表​。​要​创​建​新​分​区​,分​区​表​必​须​被​初​始​化​这​将​破​坏​这​个​设​备​上​的​所​有​数​据​。​"
you may not have a partition table on that drive or the partition table on the drive may not be recognizable by the partitioning software used in the installation program.
使​用​过 EZ-BIOS 之​类​程​序​的​用​户​可​能​遇​到​过​相​似​的​问​题​,从​而​导​致​了​数​据​丢​失​(假​定​安​装​前​没​有​进​行​备​份​)。​
No matter what type of installation you are performing, backups of the existing data on your systems should always be made.

7.19. Advanced Storage Options

Advanced Storage Options
高​级​存​储​选​项​。​
图 7.16. Advanced Storage Options

To configure an ISCSI target invoke the 'Configure ISCSI Parameters' dialog by selecting 'Add ISCSI target' and clicking on the 'Add Drive' button. Fill in the details for the ISCSI target IP and provide a unique ISCSI initiator name to identify this system. If the ISCSI target uses CHAP (Challenge Handshake Authentication Protocol) for authentication, enter the CHAP username and password. If your enviroment uses 2-way CHAP (also called "Mutual CHAP"), also enter the reverse CHAP username and password. Click the 'Add target' button to attempt connection to the ISCSI target using this information.
配​置 ISCSI 参​数​
配​置 ISCSI 参​数​。​
图 7.17. 配​置 ISCSI 参​数​

请​注​意​,如​果​你​输​入​了​错​误​的​信​息​,你​可​以​用​不​同​的 ISCSI 目​标 IP 地​址​进​行​尝​试​,但​是​为​了​修​改 ISCSI 启​动​器​的​名​字​,你​将​需​要​重​新​启​动​这​个​安​装​。​

7.20. Create Default Layout

自​动​分​区​在​有​关​哪​些​数​据​要​从​系​统​中​删​除​(若​适​用​)这​一​方​面​允​许​你​有​控​制​权​。​可​供​你​选​择​的​选​项​有​:
  • 「​删​除​选​定​驱​动​器​上​的​所​有​分​区​并​按​缺​省​的​格​式​创​建​分​区​」​ — 选​择​这​一​选​项​来​删​除​你​的​硬​盘​驱​动​器​上​的​所​有​分​区​(这​包​括​由​其​它​操​作​系​统​创​建​的​分​区​,如 Windows VFAT 或 NTFS 分​区​)。​

    Warning

    If you select this option, all data on the selected hard drive(s) is removed by the installation program. Do not select this option if you have information that you want to keep on the hard drive(s) where you are installing Fedora.
  • 「​删​除​选​定​驱​动​器​上​的​所​有 Linux 分​区​并​按​缺​省​的​格​式​创​建​分​区​」​ — 选​择​该​选​项​来​只​删​除 Linux 分​区​(在​以​前​安​装 Linux 时​创​建​的​分​区​)。​这​将​不​会​影​响​你​的​硬​盘​驱​动​器​上​可​能​会​有​的​其​它​分​区​,例​如​:VFAT 或 FAT32 分​区​。​
  • 「​使​用​选​定​磁​盘​上​的​空​闲​空​间​并​按​缺​省​的​格​式​创​建​分​区​」​ — 选​择​这​一​选​项​来​保​留​你​当​前​的​数​据​和​分​区​,假​设​你​的​硬​盘​驱​动​器​上​有​足​够​的​可​用​空​闲​空​间​的​话​。​
Create Default Layout
自​动​分​区​。​
图 7.18. Create Default Layout

Using your mouse, choose the storage drive(s) on which you want Fedora to be installed. If you have two or more drives, you can choose which drive(s) should contain this installation. Unselected drives, and any data on them, are not touched.

Warning

备​份​系​统​上​的​所​有​数​据​是​明​智​之​举​。​例​如​,如​果​你​要​升​级​或​创​建​一​个​双​引​导​系​统​,你​应​该​备​份​这​个​硬​盘​驱​动​器​上​你​想​保​存​的​数​据​。​有​时​候​错​误​难​免​会​发​生​,甚​至​会​导​致​所​有​数​据​丢​失​。​

Note

如​果​你​有​一​个 RAID 卡​,请​留​意​,某​些 BIOS 不​支​持​从 RAID 卡​中​引​导​。​在​这​类​情​况​下​,/boot/ 分​区​一​定​要​在 RAID 阵​列​之​外​的​分​区​上​创​建​,比​如​在​一​个​分​开​的​硬​盘​驱​动​器​上​。​用​有​问​题​的 RAID 卡​来​创​建​分​区​,有​必​要​使​用​一​个​内​部​硬​盘​驱​动​器​。​
/boot/ 分​区​也​是​软​件 RAID 设​置​所​必​需​的​。​
如​果​你​已​选​定​要​自​动​为​你​的​系​统​分​区​,你​应​该​选​择​「​复​审​」​,然​后​手​工​地​编​辑 /boot/ 分​区​。​
选​择​加​密​系​统​ 来​加​密​除​/boot分​区​之​外​的​所​有​分​区​。​
使​用​高​级​存​储​选​项​选​项​,如​果​:
  • 您​打​算​将​Fedora安​装​到​通​过​iSCSI协​议​连​接​的​驱​动​器​上​。​选​择​高​级​存​储​选​项​,选​择​添​加​iSCSI目​标​,然​后​选​择​添​加​驱​动​器​。​输​入​IP地​址​和​iSCSI初​始​名​称​,选​择​添​加​驱​动​器​。​
  • 您​想​要​禁​用​启​动​时​检​测​到​的​dmraid设​备​。​
To review and make any necessary changes to the partitions created by automatic partitioning, select the Review option. After selecting Review and clicking Next to move forward, the partitions created for you by anaconda appear. You can make modifications to these partitions if they do not meet your needs.

Installing in text mode

如​果​在​字​符​模​式​下​安​装​Fedora,您​只​能​使​用​本​节​所​讲​的​默​认​分​区​设​置​。​因​此​尽​管​您​可​以​选​择​使​用​整​个​驱​动​器​,删​除​已​由​Linux分​区​或​使​用​空​闲​空​间​,但​是​您​不​能​修​改​分​区​设​置​。​也​就​是​说​您​不​能​在​安​装​程​序​自​动​添​加​或​删​除​的​分​区​或​文​件​系​统​之​外​添​加​删​除​分​区​或​文​件​系​统​。​如​果​安​装​时​需​要​自​定​义​分​区​设​置​,您​应​该​通​过​VNC连​接​或​kickstart来​运​行​图​形​化​安​装​。​
另​外​,像​LVM,加​密​文​件​系​统​和​可​重​调​文​件​系​统​等​高​级​选​项​仅​在​图​形​模​式​和​kickstart中​提​供​。​
当​你​选​好​之​后​,点​击​「​下​一​步​」​来​继​续​。​
If you chose one of the automatic partitioning options and selected Review, you can either accept the current partition settings (click Next), or modify the setup manually in the partitioning screen.

注意

Please note that in the text mode installation it is not possible to work with LVM (Logical Volumes) beyond viewing the existing setup. LVM can only be set up during graphical installation.
If you chose to create a custom layout, you must tell the installation program where to install Fedora. This is done by defining mount points for one or more disk partitions in which Fedora is installed. You may also need to create and/or delete partitions at this time.

Note

如​果​你​还​没​有​计​划​怎​么​设​置​分​区​,你​可​以​参​考 附录 A, 磁​盘​分​区​简​介​第 7.21.4 节 “推​荐​的​分​区​方​案​”。​至​少​,你​需​要​一​个​大​小​合​适​的​根​分​区​和​两​倍​于​系​统​物​理​内​存​的​交​换​分​区​。​Itanium 系​统​的​用​户​应​该​有​一​个​大​约 100 MB 的 FAT (VFAT) 格​式​的 /boot/efi/ 分​区​、​至​少 512 MB 的​交​换​分​区​和​大​小​合​适​的​根​分​区​(/)。​
Partitioning on x86, AMD64, and Intel 64 Systems
The main partitioning screen.
图 7.19. Partitioning on x86, AMD64, and Intel® 64 Systems

With the exception of certain esoteric situations, anaconda can handle the partitioning requirements for a typical installation.

7.21.1. 硬​盘​的​图​形​化​表​示​

The partitioning screen offers a graphical representation of your hard drive(s).
单​击​鼠​标​来​突​出​显​示​图​形​化​表​示​中​的​某​一​字​段​。​双​击​来​编​辑​某​个​现​存​的​分​区​或​从​现​存​空​闲​空​间​中​创​建​分​区​。​
在​显​示​之​上​,你​会​看​到​「​Drive」​名​称​(如 /dev/hda),「​Geom」​(显​示​了​硬​盘​的​几​何​属​性​,包​括​了​三​个​数​字​分​别​代​表​硬​盘​汇​报​的​柱​面​、​磁​头​和​扇​区​数​量​),以​及​被​安​装​程​序​检​测​到​的​硬​盘​驱​动​器​「​Model」​。​

7.21.2. The partitioning screen

These buttons are used to change the attributes of a partition (for example the file system type and mount point) and also to create RAID devices. Buttons on this screen are also used to accept the changes you have made, or to exit the partitioning screen. For further explanation, take a look at each button in order:

7.21.3. 分​区​字​段​

在​分​区​层​次​之​上​是​代​表​你​正​创​建​的​分​区​的​信​息​的​标​签​。​这​些​标​签​定​义​如​下​:
  • 「​设​备​」​:该​字​段​显​示​分​区​的​设​备​名​。​
  • 「​挂​载​点​/RAID/Volume」​:挂​载​点​是​文​件​卷​在​目​录​层​次​内​存​在​的​位​置​;文​件​卷​在​该​位​置​上​被​“​挂​载​”​。​该​字​段​标​明​分​区​将​被​挂​载​的​位​置​。​如​果​某​个​分​区​存​在​,但​还​没​有​设​立​,那​么​你​需​要​为​其​定​义​挂​载​点​。​双​击​分​区​或​点​击​「​编​辑​」​按​钮​来​为​其​定​义​挂​载​点​。​
  • Type: This field shows the partition's file system type (for example, ext2, ext3, ext4, or vfat).
  • 「​格​式​化​」​:该​字​段​显​示​了​正​创​建​的​分​区​是​否​会​被​格​式​化​。​
  • 「​大​小 (MB)」​:该​字​段​显​示​了​分​区​的​大​小​(MB)。​
  • 「​开​始​」​:该​字​段​显​示​了​分​区​在​你​的​硬​盘​上​开​始​的​柱​面​。​
  • 「​结​束​」​:该​字​段​显​示​了​分​区​在​你​的​硬​盘​上​结​束​的​柱​面​。​
「​隐​藏 RAID 设​备​/LVM 卷​组​成​员​」​:如​果​你​不​想​看​到​创​建​的 RAID 设​备​或 LVM 卷​组​成​员​,选​择​该​选​项​。​

7.21.4. 推​荐​的​分​区​方​案​

7.21.4.1. x86、​AMD64 和 Intel® 64 位​系​统​

除​非​你​另​有​原​因​,我​们​推​荐​你​为​基​于 x86、​AMD64 和 Intel® 64 位​系​统​创​建​以​下​分​区​
  • A swap partition
  • A /boot partition
  • A / partition
  • A swap partition (at least 256 MB)
    Swap partitions are used to support virtual memory. In other words, data is written to a swap partition when there is not enough RAM to store the data your system is processing. In addition, certain power management features store all of the memory for a suspended system in the available swap partitions.
    如​果​你​不​确​定​创​建​多​大​的​交​换​分​区​,你​可​以​指​定​两​倍​于​系​统​物​理​内​存​的​大​小​。​分​区​类​型​必​须​是 swap。​
    创​建​大​小​合​适​的​交​换​空​间​依​赖​于​以​下​几​个​因​素​(按​重​要​性​依​次​排​列​):
    • 在​机​器​上​运​行​的​应​用​程​序​。​
    • 机​器​上​安​装​的​物​理​内​存​数​量​。​
    • 操​作​系​统​的​版​本​。​
    物​理​内​存​低​于 2GB 时​,交​换​空​间​应​该​是​两​倍​于​物​理​内​存​大​小​。​对​于​任​何​高​于 2GB 的​内​存​,则​为​相​同​数​量​,但​绝​不​能​少​于 32MB。​
    所​以​,如​果​:
    M = 内​存​的 GB 数​,S = 交​换​空​间​的 GB 数​,然​后​
    If M < 2
            S = M *2
    Else
            S = M + 2
    
    使​用​这​个​公​式​,物​理​内​存​为 2GB 的​系​统​应​该​有 4GB 的​交​换​空​间​,物​理​内​存​为 3GB 的​系​统​应​该​有 5GB 交​换​空​间​。​创​建​一​个​较​大​的​交​换​分​区​在​你​计​划​将​来​升​级​内​存​的​时​候​特​别​有​帮​助​。​
    对​于​具​备​超​大​内​存​的​系​统​(超​过 32GB),你​可​能​能​够​使​用​一​个​较​小​的​交​换​分​区​(物​理​内​存​的​一​倍​或​更​少​)。​
  • A /boot/ partition (100 MB)
    The partition mounted on /boot/ contains the operating system kernel (which allows your system to boot Fedora), along with files used during the bootstrap process. Due to limitations, creating a native ext3 partition to hold these files is required. For most users, a 100 MB boot partition is sufficient.

    ext4 and Btrfs

    The GRUB bootloader does not support the ext4 or Btrfs file systems. You cannot use an ext4 or Btrfs partition for /boot/.

    Note

    如​果​你​的​硬​盘​大​于 1024 个​柱​面​(而​且​你​的​系​统​至​少​是​在​两​年​前​制​造​的​),而​且​你​想​让 /(根​)分​区​使​用​硬​盘​上​的​所​有​剩​余​空​间​,你​可​能​需​要​创​建​一​个 /boot 分​区​。​

    Note

    如​果​你​有​一​张 RAID 卡​,请​注​意​某​些 BIOS 不​支​持​从 RAID 卡​中​引​导​。​在​这​种​情​况​下​,/boot/ 分​区​必​须​在 RAID 阵​列​之​外​被​创​建​,如​在​一​个​单​独​的​硬​盘​驱​动​器​上​创​建​。​
  • A root partition (3.0 GB - 5.0 GB)
    This is where "/" (the root directory) is located. In this setup, all files (except those stored in /boot) are on the root partition.
    A 3.0 GB partition allows you to install a minimal installation, while a 5.0 GB root partition lets you perform a full installation, choosing all package groups.

    Root and /root

    The / (or root) partition is the top of the directory structure. The /root directory/root (sometimes pronounced "slash-root") directory is the home directory of the user account for system administration.
If you create many partitions instead of one large / partition, upgrades become easier. Refer to the description of Disk Druid's Edit option in 第 7.21.2 节 “The partitioning screen” for more information.
The following table summarizes minimum partition sizes for the partitions containing the listed directories. You do not have to make a separate partition for each of these directories. For instance, if the partition containing /foo must be at least 500 MB, and you do not make a separate /foo partition, then the / (root) partition must be at least 500 MB.
Directory Minimum size
/ 250 MB
/usr 250 MB, but avoid placing this on a separate partition
/tmp 50 MB
/var 384 MB
/home 100 MB
/boot 75 MB
表 7.3. Minimum partition sizes

Leave Excess Capacity Unallocated

Only assign storage capacity to those partitions you require immediately. You may allocate free space at any time, to meet needs as they occur. To learn about a more flexible method for storage management, refer to 附录 D, Understanding LVM.
If you are not sure how best to configure the partitions for your computer, accept the default partition layout.
7.21.4.1.1. Advice on Partitions
最​佳​分​区​设​置​取​决​于​Linux系​统​的​用​途​。​以​下​关​于​如​何​分​配​磁​盘​空​间​的​提​示​可​能​对​您​有​所​帮​助​。​
  • 如​果​您​和​其​他​用​户​想​在​系​统​上​存​储​数​据​,可​以​在​卷​组​中​为​/home目​录​创​建​一​个​独​立​的​分​区​。​有​了​独​立​的​/home分​区​后​,升​级​或​重​装​Fedora时​就​不​再​需​要​删​除​用​户​的​文​件​了​。​
  • Each kernel installed on your system requires approximately 10 MB on the /boot partition. Unless you plan to install a great many kernels, the default partition size of 100 MB for /boot should suffice.

    ext4 and Btrfs

    The GRUB bootloader does not support the ext4 or Btrfs file systems. You cannot use an ext4 or btrfs partition for /boot.
  • /var目​录​包​含​了​大​量​的​安​装​程​序​文​件​,包​括​Apacheweb服​务​器​。​同​时​它​也​存​放​下​载​的​更​新​包​。​确​保​/var目​录​所​在​分​区​有​足​够​的​空​间​来​保​存​下​载​的​更​新​和​您​的​其​它​内​容​。​

    Pending Updates

    由​于​Fedora是​一​个​不​断​更​新​的​软​件​包​集​合​,因​此​发​行​周​期​之​后​晚​一​些​时​间​会​提​供​大​量​的​更​新​。​您​以​后​可​以​为​安​装​源​添​加​一​个​更​新​仓​库​来​最​小​化​这​个​过​程​。​参​考​第 7.23.1 节 “Installing from Additional Repositories”了​解​更​多​信​息​。​
  • Fedora系​统​中​/usr目​录​存​放​主​要​软​件​。​对​于​安​装​默​认​的​软​件​包​来​说​,至​少​需​要​4GB空​间​。​如​果​您​是​程​序​开​发​员​或​打​算​用​Fedora学​习​软​件​开​发​,则​需​要​8GB以​上​的​空​间​。​

    Do not place /usr on a separate partition

    如​果​/usr是​/之​外​一​个​独​立​分​区​的​话​,启​动​过​程​会​变​得​更​加​复​杂​,某​些​情​况​下​(如​在​iSCSI设​备​上​安​装​)可​能​还​会​不​工​作​。​
  • 考​虑​一​下​在​LVM卷​组​中​保​留​一​点​未​分​配​空​间​。​在​您​想​要​调​整​分​区​但​又​不​想​删​除​其​它​分​区​的​数​据​时​,这​是​个​办​法​。​
  • 若​您​将​子​目​录​分​配​到​各​个​分​区​中​,那​么​在​安​装​新​版​Fedora时​您​就​可​以​保​留​这​些​子​目​录​中​的​内​容​。​例​如​在​/var/lib/mysql中​运​行​MySQL数​据​库​,如​果​以​后​打​算​重​装​那​么​就​应​该​把​该​目​录​单​独​分​一​个​区​。​
以​下​是​针​对​一​个​80GB新​硬​盘​,1GB内​存​的​分​区​方​案​。​注​意​为​了​以​后​的​调​整​,大​概​10GB的​卷​组​空​间​没​有​分​配​。​

Example Usage

这​个​方​案​并​不​是​所​有​情​形​下​最​好​的​。​
Partition Size and type
/boot 100 MB ext3 partition
swap 2 GB swap
LVM物​理​卷​ 保​留​空​间​,做​为​一​个​LVM卷​组​
表 7.4. Example partition setup

物​理​卷​分​配​到​默​认​的​卷​组​中​并​被​分​为​以​下​逻​辑​卷​:
Partition Size and type
/ 13 GB ext4
/var 4 GB ext4
/home 50 GB ext4
表 7.5. 示​例​分​区​设​置​:LVM物​理​卷​

例 7.1. Example partition setup

7.21.5. 添​加​分​区​

Note

你​必​须​为​本​次​按​装​指​定​至​少​一​个​分​区​。​详​情​请​见 附录 A, 磁​盘​分​区​简​介​。​
创​建​一​个​新​分​区​
创​建​一​个​新​分​区​。​
图 7.24. 创​建​一​个​新​分​区​

  • 「​挂​载​点​」​:输​入​分​区​的​挂​载​点​。​譬​如​,如​果​这​个​分​区​是​根​分​区​,输​入 /;如​果​是 /boot 分​区​,输​入 /boot ,等​等​。​你​还​可​以​使​用​拉​下​菜​单​来​为​你​的​分​区​选​择​正​确​的​挂​载​点​。​而​对​于​交​换​空​间​分​区​,则​不​应​该​设​置​挂​载​点 - 把​文​件​系​统​类​型​设​置​为 swap 就​足​够​了​。​
  • 「​文​件​系​统​类​型​」​:用​下​拉​菜​单​为​这​个​分​区​选​择​合​适​的​文​件​系​统​类​型​。​关​于​文​件​系​统​的​更​多​信​息​,请​参​阅 第 7.21.5.1 节 “文​件​系​统​类​型​”。​
  • 「​允​许​的​驱​动​器​」​:这​个​字​段​包​括​在​你​的​系​统​上​安​装​的​硬​盘​列​表​。​如​果​某​个​硬​盘​的​复​选​框​被​突​出​显​示​,则​表​示​可​以​在​该​硬​盘​上​创​建​想​要​的​分​区​。​如​果​那​个​复​选​框​没​有​打​勾​,那​么​这​个​分​区​将​绝​不​会​在​该​硬​盘​上​创​建​。​通​过​不​同​的​复​选​框​设​置​,你​可​使 anaconda 在​你​需​要​的​地​方​放​置​分​区​,或​让 anaconda 来​决​定​应​该​放​置​分​区​的​地​方​。​
  • 「​大​小​(MB)」​:输​入​分​区​的​大​小​(MB)。​注​意​,该​字​段​从 100MB 开​始​;若​不​改​变​,创​建​的​分​区​将​只​有 100MB。​
  • 「​其​它​大​小​选​项​」​:选​择​是​否​要​将​分​区​保​持​为​固​定​大​小​、​允​许​它​“​增​长​”​(使​用​硬​盘​驱​动​器​上​的​可​用​空​间​)到​某​一​程​度​,或​允​许​它​“​增​长​”​到​使​用​全​部​硬​盘​驱​动​器​上​可​用​的​剩​余​空​间​。​
    如​果​你​选​择 「​指​定​空​间​大​小​(MB)」​,你​必​须​在​这​个​选​项​右​侧​的​字​段​内​给​出​大​小​限​制​。​这​会​允​许​你​在​你​的​硬​盘​驱​动​器​上​保​留​一​定​的​空​间​为​将​来​使​用​。​
  • 「​强​制​为​主​分​区​」​:选​择​你​创​建​的​分​区​是​否​是​磁​盘​的​四​个​主​分​区​之​一​。​如​果​没​有​选​定​,这​个​分​区​将​被​创​建​为​逻​辑​分​区​。​详​情​请​参​考 第 A.1.3 节 “分​区​内​的​分​区 — 扩​展​分​区​概​述​”。​
  • 「​确​定​」​:当​你​对​设​置​满​意​并​想​创​建​分​区​的​时​候​,选​择​「​确​定​」​按​钮​。​
  • 「​取​消​」​:如​果​你​不​想​创​建​这​个​分​区​,选​择​「​取​消​」​按​钮​。​

7.21.5.1. 文​件​系​统​类​型​

Fedora允​许​您​根​据​分​区​将​使​用​的​文​件​系​统​来​创​建​不​同​的​分​区​类​型​。​下​面​是​对​不​同​文​件​系​统​以​及​它​们​的​使​用​方​法​的​简​单​描​述​。​

7.22. x86、​AMD64 和 Intel® 64 系​统​的​引​导​装​载​程​序​(Boot Loader)的​配​置​

如​果​不​使​用​引​导​介​质​来​引​导​你​的​系​统​,你​通​常​需​要​安​装​一​个​引​导​装​载​程​序​。​引​导​装​载​程​序​是​计​算​机​启​动​时​所​运​行​的​第​一​个​软​件​,它​的​责​任​是​载​入​操​作​系​统​内​核​软​件​并​把​控​制​权​转​交​给​它​。​然​后​,内​核​再​初​始​化​操​作​系​统​的​其​他​部​分​。​

Installing in text mode

If you install Fedora in text mode, the installer configures the bootloader automatically and you cannot customize bootloader settings during the installation process.
GRUB(GRand Unified Bootloader)是​一​个​默​认​安​装​的​功​能​强​大​的​引​导​装​载​程​序​。​GRUB 能​够​通​过​连​锁​载​入​(chain-loading)来​装​载​多​种​免​费​和​专​有​操​作​系​统​(连​锁​载​入​是​通​过​载​入​另​一​个​引​导​装​载​程​序​来​载​入 DOS 或 Windows 之​类​不​被​支​持​的​操​作​系​统​的​机​制​)。​

The GRUB boot menu

The GRUB menu defaults to being hidden, except on dual-boot systems. To show the GRUB menu during system boot, press and hold the Shift key before the kernel is loaded. (Any other key works as well but the Shift key is the safest to use.)
引​导​装​载​程​序​配​置​
配​置​你​想​引​导​系​统​的​方​法​。​
图 7.25. 引​导​装​载​程​序​配​置​

您​的​系​统​可​能​已​经​安​装​了​一​个​引​导​加​载​程​序​。​一​个​操​作​系​统​会​安​装​自​己​首​选​的​引​导​加​载​程​序​,或​者​您​安​装​了​第​三​方​的​引​导​加​载​程​序​。​如​果​您​的​引​导​加​载​程​序​无​法​识​别 Linux 分​区​,可​能​就​无​法​引​导 Fedora。​使​用 GRUB 作​为​您​的​引​导​加​载​程​序​,可​以​引​导 Linux 和​大​多​数​其​他​操​作​系​统​。​按​照​这​章​的​描​述​来​安​装 GRUB。​

Installing GRUB

如​果​您​安​装 GRUB,它​将​覆​盖​已​有​的​引​导​加​载​程​序​。​
By default, the installation program installs GRUB in the master boot record or MBR, of the device for the root file system. To decline installation of a new boot loader, unselect Install boot loader on /dev/sda.

Warning

如​果​由​于​某​种​原​因​你​选​择​不​安​装 GRUB,你​将​无​法​直​接​引​导​系​统​,你​必​须​得​使​用​另​一​种​引​导​方​法​(如​商​用​引​导​装​载​程​序​)。​只​有​当​你​确​定​另​有​引​导​系​统​的​方​法​时​才​使​用​该​选​项​!
如​果​您​已​经​安​装​了​其​他​操​作​系​统​,Fedora 尝​试​自​动​检​测​并​配​置 GRUB 来​引​导​它​们​。​如​果 GRUB 没​有​检​测​到​它​们​的​话​,您​可​以​手​动​配​置​任​何​其​他​的​操​作​系​统​。​
要​添​加​,删​除​或​改​变​探​测​到​的​操​作​系​统​设​置​,使​用​该​选​项​。​
Add
选​择 增​加​ 按​钮​来​在 GRUB 中​包​括​其​他​的​操​作​系​统​。​
在​下​拉​菜​单​中​,选​择​包​含​可​启​动​的​操​作​系​统​的​分​区​,然​后​为​这​个​项​目​命​名​。​GRUB 将​在​启​动​菜​单​中​显​示​这​个​名​称​。​
Edit
要​修​改 GRUB 启​动​管​理​器​的​一​个​项​目​,选​择​它​然​后​按​下 编​辑​ 按​钮​。​
Delete
要​从 GRUB 启​动​菜​单​中​删​除​一​个​项​目​,选​择​它​然​后​按​下​界​面​中​的 删​除​ 按​钮​。​
在​你​想​要​的​引​导​分​区​旁​边​选​择​「​默​认​」​来​选​择​你​默​认​的​可​引​导​操​作​系​统​。​你​选​定​了​默​认​引​导​映​像​后​,安​装​才​会​继​续​。​

Note

「​标​签​」​列​中​列​出​的​信​息​是​你​在​引​导​所​需​操​作​系​统​时​必​须​在​非​图​形​化​引​导​装​载​程​序​的​引​导​提​示​下​输​入​的​信​息​。​
一​旦​你​已​载​入 GRUB 引​导​屏​幕​,使​用​箭​头​键​来​选​择​引​导​标​签​,键​入 e 来​编​辑​。​你​将​会​看​到​所​选​引​导​标​签​配​置​文​件​中​的​项​目​列​表​。​
在​别​人​可​以​亲​身​访​问​你​的​服​务​器​的​情​况​下​,引​导​装​载​程​序​密​码​为​你​提​供​了​一​种​安​全​机​制​。​
如​果​你​打​算​安​装​引​导​装​载​程​序​,你​应​该​创​建​一​个​密​码​来​保​护​你​的​系​统​。​若​没​有​引​导​装​载​程​序​密​码​,能​够​进​入​你​的​系​统​的​用​户​将​可​以​向​内​核​传​递​选​项​,从​而​减​弱​你​的​系​统​安​全​性​;若​使​用​了​引​导​装​载​程​序​密​码​,用​户​必​须​先​输​入​密​码​才​能​选​择​非​标​准​的​引​导​选​项​。​然​而​,能​够​从​物​理​角​度​使​用​你​的​机​器​的​用​户​仍​可​以​从​软​盘​、​光​盘​、​或 USB 介​质​(若 BIOS 支​持​)引​导​。​包​括​引​导​装​载​程​序​密​码​的​保​安​计​划​还​应​该​解​决​其​它​引​导​方​法​带​来​的​安​全​问​题​。​

不​使​用 GRUB 密​码​

如​果​您​的​系​统​只​有​一​个​可​被​信​任​的​操​作​员​,或​控​制​台​的​访​问​在​物​理​上​很​安​全​,您​可​能​不​需​要 GRUB 密​码​。​然​而​,如​果​一​个​不​可​信​的​人​能​物​理​访​问​您​的​电​脑​键​盘​和​显​示​器​。 他​将​能​够​重​新​引​导​系​统​然​后​访​问 GRUB。​这​时​密​码​将​很​有​用​。​
如​果​你​选​择​要​使​用​引​导​装​载​程​序​密​码​来​增​进​你​的​系​统​安​全​性​,请​确​定​选​择​标​为​「​使​用​引​导​装​载​程​序​密​码​」​的​复​选​框​。​
一​旦​选​毕​,输​入​密​码​并​确​认​。​
GRUB 将​密​码​以​加​密​形​式​存​储​,因​此​不​会​ 被​读​取​或​非​法​取​得​。​如​果​您​忘​记​了​引​导​密​码​,就​按​照​通​常​的​方​式​启​动​,然​后​修​改 /boot/grub/grub.conf 中​的​密​码​一​项​。​如​果​您​无​法​启​动​,那​么​可​以​用​第​一​张 Fedora 安​装​光​盘​以 "rescue" 模​式​来​进​入​系​统​,重​置 GRUB 密​码​。​
如​果​您​一​定​要​修​改 GRUB 密​码​,使​用 grub-md5-crypt 实​用​工​具​。​关​于​如​何​使​用​这​个​工​具​,可​以​在​终​端​下​用​命​令 man grub-md5-crypt 来​查​看​手​册​。​
要​配​置​更​高​级​的​引​导​装​载​程​序​选​项​,如​改​变​磁​盘​顺​序​或​往​内​核​传​入​参​数​,在​点​击​「​下​一​步​」​之​前​,你​要​确​保​已​经​选​中​了​「​配​置​高​级​引​导​装​载​程​序​选​项​」​。​

7.22.1. 高​级​引​导​装​载​程​序​配​置​

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

Note

如​果​你​有​一​个 RAID 卡​,请​留​意​某​些 BIOS 不​支​持​从 RAID 卡​引​导​。​在​这​类​情​况​下​,引​导​装​载​程​序​不​应​该​被​安​装​在 RAID 阵​列​的 MBR 上​。​引​导​装​载​程​序​应​该​被​安​装​在​创​建 /boot 分​区​所​在​的​同​一​驱​动​器​上​的 MBR。​
If your system only uses Fedora, you should choose the MBR.
如​果​你​想​重​新​排​列​驱​动​器​顺​序​,或​者​你​的 BIOS 所​返​回​的​驱​动​器​顺​序​不​正​确​,点​击​「​改​变​驱​动​器​顺​序​」​按​钮​。​如​果​你​有​多​个 SCSI 适​配​器​或​者​兼​有 SCSI 和 IDE 适​配​器​,并​想​从 SCSI 设​备​中​引​导​,改​变​驱​动​器​顺​序​可​能​会​发​挥​作​用​。​
你​已​经​完​成​了​多​数​安​装​选​择​,现​在​就​可​以​确​认​要​为​系​统​选​择​默​认​软​件​包​还​是​定​制​软​件​包​。​
The Package Installation Defaults screen appears and details the default package set for your Fedora installation. This screen varies depending on the version of Fedora you are installing.

Installing from a Live Image

If you install from a Fedora Live image, you cannot make package selections. This installation method transfers a copy of the Live image rather than installing packages from a repository. To change the package selection, complete the installation, then use the Add/Remove Software application to make desired changes.

Installing in text mode

If you install Fedora in text mode, you cannot make package selections. The installer automatically selects packages only from the base and core groups. These packages are sufficient to ensure that the system is operational at the end of the installation process, ready to install updates and new packages. To change the package selection, complete the installation, then use the Add/Remove Software application to make desired changes.
Package Group Selection
选​择​你​想​要​安​装​哪​些​软​件​包​组​。​
图 7.27. Package Group Selection

By default, the Fedora installation process loads a selection of software that is suitable for a desktop system. To include or remove software for common tasks, select the relevant items from the list:
Office and Productivity
This option provides the OpenOffice.org productivity suite, the Planner project management application, graphical tools such as the GIMP, and multimedia applications.
Software Development
This option provides the necessary tools to compile software on your Fedora system.
Web server
This option provides the Apache Web server.
要​选​择​组​件​,点​击​它​旁​边​的​复​选​框​(参​阅 图 7.27 “Package Group Selection”)。​
要​进​一​步​定​制​你​的​软​件​包​,选​择​屏​幕​上​的​「​现​在​定​制​」​选​项​。​点​击​「​下​一​步​」​会​把​你​带​到​「​选​择​软​件​包​组​」​屏​幕​。​

7.23.1. Installing from Additional Repositories

You can define additional repositories to increase the software available to your system during installation. A repository is a network location that stores software packages along with metadata that describes them. Many of the software packages used in Fedora require other software to be installed. The installer uses the metadata to ensure that these requirements are met for every piece of software you select for installation.
The basic options are:
  • The Installation Repo repository is automatically selected for you. This represents the collection of software available on your installation CD or DVD.
  • The Fedora 11 - i386 repository contains the complete collection of software that was released as Fedora 11, with the various pieces of software in their versions that were current at the time of release. If you are installing from the Fedora 11 DVD or set of CDs, this option does not offer you anything extra. However, if you are installing from a Fedora Live CD, this option provides access to far more software than is included on the disk. Note that the computer must have access to the internet to use this option.
  • The Fedora 11 - i386 - Updates repository contains the complete collection of software that was released as Fedora 11, with the various pieces of software in their most current stable versions. This option not only installs the software that you select, but makes sure that it is fully updated as well. Note that the computer must have access to the internet to use this option.
Adding a software repository
Enter the details of additional software repositories.
图 7.28. Adding a software repository

To include software from repositories other than the Fedora package collection, select Add additional software repositories. You may provide the location of a repository of third-party software. Depending on the configuration of that repository, you may be able to select non-Fedora software during installation.
To edit an existing software repository location, select the repository in the list and then select Modify repository.

Network Access Required

If you change the repository information during a non-network installation, such as from a Fedora DVD, the installer prompts you for network configuration information.
If you select Add additional software repositories, the Edit repository dialog appears. Provide a Repository name and the Repository URL for its location.

Fedora Software Mirrors

To find a Fedora software mirror near you, refer to http://fedoraproject.org/wiki/Mirrors.
Once you have located a mirror, to determine the URL to use, find the directory on the mirror that contains a directory named repodata. For instance, the "Everything" repository for Fedora is typically located in a directory tree releases/11/Everything/arch/os, where arch is a system architecture name.
Once you provide information for an additional repository, the installer reads the package metadata over the network. Software that is specially marked is then included in the package group selection system. See 第 7.23.2 节 “Customizing the Software Selection” for more information on selecting packages.

Backtracking Removes Repository Metadata

If you choose Back from the package selection screen, any extra repository data you may have entered is lost. This allows you to effectively cancel extra repositories. Currently there is no way to cancel only a single repository once entered.

7.23.2. Customizing the Software Selection

Select Customize now to specify the software packages for your final system in more detail. This option causes the installation process to display an additional customization screen when you select Next.

Installing Support for Additional Languages

Select Customize now to install support for additional languages. Refer to 第 7.23.2.2 节 “Additional Language Support” for more information on configuring language support.
软​件​包​组​细​节​
选​择​从​该​组​中​添​加​或​删​除​可​选​软​件​包​。​
图 7.29. 软​件​包​组​细​节​



[2] A root password is the administrative password for your Fedora system. You should only log in as root when needed for system maintenance. The root account does not operate within the restrictions placed on normal user accounts, so changes made as root can have implications for your entire system.

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

第 8 章 在 Intel® 或 AMD 系​统​上​进​行​安​装​的​故​障​解​除​

该​附​录​讨​论​一​些​常​见​的​安​装​问​题​以​及​它​们​的​解​决​办​法​。​

8.1. You are unable to boot Fedora

8.1.1. 无​法​使​用 RAID 卡​来​引​导​

如​果​你​无​法​执​行​安​装​并​且​无​法​正​确​引​导​系​统​,你​可​能​需​要​重​新​安​装​并​且​用​不​同​的​方​式​分​区​。​
某​些 BIOS 不​支​持​从 RAID 卡​引​导​。​在​安​装​的​结​束​部​分​,一​个​基​于​文​本​的​屏​幕​会​显​示​引​导​装​载​程​序​提​示​(例​如​:GRUB:)以​及​一​个​闪​动​的​光​标​。​如​果​情​况​如​此​,你​将​会​需​要​重​新​为​你​的​系​统​分​区​。​
不​论​你​选​择​的​是​自​动​分​区​还​是​手​工​分​区​,你​将​会​需​要​在 RAID 阵​列​之​外​,如​一​个​分​开​的​硬​盘​驱​动​器​上​,安​装 /boot 分​区​。​对​于​有​问​题​的 RAID 卡​,你​必​须​有​一​个​用​于​创​建​分​区​的​内​部​硬​盘​驱​动​器​。​
你​必​须​还​要​在 RAID 阵​列​外​的​一​个​驱​动​器​的 MBR 上​安​装​你​优​选​的​引​导​装​载​程​序​(GRUB 或 LILO)。​引​导​装​载​程​序​应​该​安​装​在​包​含 /boot/ 分​区​的​同​一​驱​动​器​上​。​
当​做​完​这​些​改​变​后​,你​应​该​可​以​结​束​安​装​并​使​用​合​适​的​方​法​引​导​系​统​。​
一​个​信​号 11 错​误​(通​常​被​称​为​分​段​错​误​)通​常​意​味​着​程​序​访​问​了​没​有​分​配​给​它​的​一​段​内​存​。​如​果​您​在​安​装​的​过​程​中​遇​到​了​一​个​致​命​的​信​号 11 错​误​,这​可​能​是​因​为​所​安​装​的​某​个​软​件​中​存​在​错​误​,或​者​是​硬​件​故​障​。​
If you receive a fatal signal 11 error during your installation, it is probably due to a hardware error in memory on your system's bus. Like other operating systems, Fedora places its own demands on your system's hardware. Some of this hardware may not be able to meet those demands, even if they work properly under another OS.
Ensure that you have the latest installation updates and images. Review the online errata to see if newer versions are available. If the latest images still fail, it may be due to a problem with your hardware. Commonly, these errors are in your memory or CPU-cache. A possible solution for this error is turning off the CPU-cache in the BIOS, if your system supports this. You could also try to swap your memory around in the motherboard slots to check if the problem is either slot or memory related.
Another option is to perform a media check on your installation CD-ROMs. Anaconda, the installation program, has the ability to test the integrity of the installation media. It works with the CD, DVD, hard drive ISO, and NFS ISO installation methods. Red Hat recommends that you test all installation media before starting the installation process, and before reporting any installation-related bugs (many of the bugs reported are actually due to improperly-burned CDs). To use this test, type the following command at the boot: prompt:
linux mediacheck
关​于​信​号 11 错​误​的​详​情​,请​参​阅​:
http://www.bitwizard.nl/sig11/

8.3. 安​装​过​程​中​的​问​题​

如​果​您​在​「​磁​盘​分​区​设​置​」​第 7.18 节 “Disk Partitioning Setup”)阶​段​后​遇​到​了​一​个​与​以​下​类​似​的​错​误​:
无​法​读 hda 设​备​上​的​分​区​表​。​要​创​建​新​分​区​,分​区​表​必​须​被​初​始​化​,这​将​破​坏​这​个​设​备​上​的​所​有​数​据​。​
you may not have a partition table on that drive or the partition table on the drive may not be recognizable by the partitioning software used in the installation program.
使​用​过 EZ-BIOS 之​类​程​序​的​用​户​遇​到​过​类​似​的​问​题​,这​个​问​题​导​致​了​无​法​被​恢​复​的​数​据​丢​失​(假​定​安​装​前​没​有​进​行​备​份​)。​
No matter what type of installation you are performing, backups of the existing data on your systems should always be made.
During some upgrades or installations of Fedora, the installation program (also known as anaconda) may fail with a Python or traceback error. This error may occur after the selection of individual packages or while trying to save the upgrade log in the /tmp/directory. The error may look similar to:
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/ 自​从​创​建​以​来​已​被​改​变​。​这​些​符​号​链​接​或​被​改​变​的​链​接​在​安​装​进​程​中​无​效​,因​此​安​装​程​序​无​法​在​其​中​写​入​信​息​而​失​败​。​
If you experience such an error, first try to download any available updates for anaconda. Updates for anaconda and instructions for using them can be found at:
http://fedoraproject.org/wiki/Anaconda/Updates
anaconda 的​网​站​也​是​一​个​有​用​的​参​考​,它​位​于​:
http://fedoraproject.org/wiki/Anaconda
你​还​可​以​搜​寻​与​这​一​问​题​有​关​的​错​误​报​告​。​要​搜​寻​红​帽​的​错​误​跟​踪​系​统​,请​访​问​:
http://bugzilla.redhat.com/bugzilla/

8.4. 安​装​后​的​问​题​

If you have installed the X Window System but are not seeing a graphical desktop environment once you log into your system, you can start the X Window System graphical interface using the command startx.
输​入​了​该​命​令​后​,按 Enter 键​,图​形​化​界​面​就​会​被​显​示​。​
不​过​请​注​意​,这​只​在​这​一​次​中​有​效​,并​不​会​改​变​未​来​的​登​录​进​程​。​
要​设​置​您​的​系​统​从​而​使​您​能​够​使​用​图​形​化​屏​幕​登​录​,您​必​须​编​辑 /etc/inittab 这​个​文​件​,只​需​改​变​运​行​级​别​部​分​中​的​一​个​数​字​即​可​。​编​辑​完​毕​后​,重​新​引​导​计​算​机​,您​下​次​登​录​时​就​会​看​到​图​形​化​登​录​提​示​。​
打​开 shell 提​示​。​如​果​您​登​录​的​是​您​的​用​户​账​号​,键​入 su 命​令​来​变​成​根​用​户​身​份​。​
现​在​,键​入 gedit /etc/inittab 来​使​用 gedit 编​辑​这​个​文​件​。​/etc/inittab 文​件​就​会​打​开​。​在​第​一​个​屏​幕​上​,您​会​看​到​类​似​以​下​的​部​分​:
# Default runlevel. The runlevels used are: 
#   0 - halt (Do NOT set initdefault to this) 
#   1 - Single user mode 
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking) 
#   3 - Full multiuser mode 
#   4 - unused 
#   5 - X11 
#   6 - reboot (Do NOT set initdefault to this) 
#  id:3:initdefault:
要​把​登​录​从​控​制​台​改​为​图​形​化​,您​需​要​把 id:3:initdefault: 这​一​行​中​的​数​字​从 3 改​为 5。​

Warning

请​只​把​默​认​的​运​行​级​别​数​字​从 3 改​为 5。​
你​改​后​的​那​一​行​应​该​类​似​:
 id:5:initdefault: 
当​您​对​所​做​改​变​满​意​后​,使​用 Ctrl+Q 键​组​合​来​保​存​并​退​出​该​文​件​。​您​会​看​到​一​条​消​息​询​问​您​是​否​要​保​存​所​做​改​变​。​点​击​「​保​存​」​。​
在​你​重​新​引​导​系​统​后​再​次​登​录​时​,你​就​会​看​到​图​形​化​登​录​提​示​。​
If you did not create a user account in the Setup Agent, log in as root and use the password you assigned to root.
如​果​您​没​有​记​住​根​口​令​,您​需​要​把​系​统​引​导​为 linux single。​
如​果​您​使​用​的​是​基​于 x86 的​系​统​,GRUB 是​您​所​安​装​的​引​导​装​载​程​序​,载​入​了 GRUB 引​导​屏​幕​后​,键​入 e 来​编​辑​。​您​会​看​到​您​所​选​定​的​引​导​标​签​的​配​置​文​件​中​的​项​目​列​表​。​
选​择​以 kernel 开​始​的​行​并​输​入 e 来​编​辑​这​个​启​动​项​。​
kernel 行​的​结​尾​处​,添​加​:
single
Press Enter to exit edit mode.
Once the boot loader screen has returned, type b to boot the system.
当​您​启​动​到​单​一​用​户​模​式​并​获​得​了 # 提​示​符​后​,您​需​要​输​入 passwd root,它​允​许​您​为​根​用​户​输​入​一​个​新​口​令​。​然​后​,您​可​以​输​入 shutdown -r now 来​使​用​新​的​根​用​户​口​令​重​新​启​动​这​个​系​统​。​
如​果​您​忘​记​了​您​的​用​户​帐​号​口​令​,您​必​须​变​成​根​用​户​。​要​变​成​根​用​户​,键​入 su - ,在​提​示​后​输​入​根​口​令​,然​后​键​入 passwd <username>。​这​将​会​允​许​您​为​某​一​指​定​的​用​户​帐​号​输​入​一​个​新​口​令​。​
If the graphical login screen does not appear, check your hardware for compatibility issues. Linuxquestions.org maintains a Hardware Compatibility List at:
http://www.linuxquestions.org/hcl/index.php

8.4.6. 你​的​内​存​不​能​够​被​识​别​吗​?

有​时​,内​核​不​能​识​别​您​的​全​部​内​存​(RAM)。​您​可​以​用 cat /proc/meminfo 命​令​来​校​验​。​
查​看​一​下​所​显​示​的​数​量​是​否​与​您​所​知​的​系​统​内​存​相​同​。​如​果​不​同​,在 /boot/grub/grub.conf 文​件​中​添​加​以​下​一​行​:
mem=xxM
xx 替​换​成​你​拥​有​的​内​存​数​量​(以 MB 为​单​位​)。​
/boot/grub/grub.conf 文​件​中​,以​上​的​例​子​与​下​面​相​似​:,
# NOTICE: You have a /boot partition. This means that 
#  all kernel paths are relative to /boot/ 
default=0 
timeout=30 
splashimage=(hd0,0)/grub/splash.xpm.gz 
 title Fedora (2.6.27.19-170.2.35.fc10.i686)
root (hd0,1)
kernel /vmlinuz-2.6.27.19-170.2.35.fc10.i686 ro root=UUID=04a07c13-e6bf-6d5a-b207-002689545705 mem=1024M
initrd /initrd-2.6.27.19-170.2.35.fc10.i686.img
重​新​引​导​后​,grub.conf 文​件​中​的​改​变​将​会​反​映​在​您​的​系​统​中​。​
当​您​已​载​入 GRUB 引​导​屏​幕​后​,键​入 e 来​编​辑​。 您​所​选​定​的​引​导​标​签​的​配​置​文​件​中​的​项​目​列​表​就​会​在​您​面​前​出​现​。​
选​择​开​头​为 kernel 的​行​,然​后​键​入 e 来​编​辑​这​一​引​导​项​目​。​
kernel 行​的​末​尾​,添​加​:
mem=xxM
这​里​的 xx 与​你​系​统​的​内​存​数​量​相​同​。​
Press Enter to exit edit mode.
Once the boot loader screen has returned, type b to boot the system.
Itanium users must enter boot commands with elilo followed by the boot command.
请​记​住​将 xx 替​换​成​您​系​统​的​内​存​数​量​。​按 Enter 键​来​引​导​。​

目录

9. 启​动​选​项​
9.1. 在​启​动​菜​单​下​配​置​安​装​系​统​
9.1.1. 指​定​语​言​
9.1.2. 配​置​界​面​
9.1.3. 更​新​anaconda
9.1.4. 指​定​安​装​方​法​
9.1.5. 手​动​配​置​网​络​设​置​
9.2. 允​许​远​程​访​问​安​装​系​统​
9.2.1. 允​许​用 VNC 远​程​访​问​
9.2.2. 连​接​安​装​系​统​到​一​个 VNC 监​听​程​序​
9.2.3. 允​许​用 Telnet 远​程​访​问​
9.3. 在​安​装​期​间​记​录​日​志​到​远​程​主​机​
9.3.1. 配​置​服​务​器​日​志​
9.4. 使​用 Kickstart 实​现​自​动​安​装​
9.5. 增​强​的​硬​件​支​持​
9.5.1. 用​驱​动​磁​盘​支​持​增​加​的​硬​件​
9.5.2. 越​过​自​动​硬​件​检​测​
9.6. 用​维​修​引​导​模​式​
9.6.1. 加​载​内​存 (RAM) 检​测​模​式​
9.6.2. 验​证​启​动​介​质​
9.6.3. 以​修​复​模​式​引​导​您​的​计​算​机​
9.6.4. 升​级​您​的​计​算​机​
10. 无​介​质​的​安​装​
10.1. 搜​索​引​导​文​件​
10.2. 编​辑 GRUB 配​置​
10.3. 引​导​安​装​
11. 配​置​一​个​安​装​服​务​器​
11.1. 配​置​cobbler
11.2. 设​置​发​布​目​录​
11.3. 映​射​网​络​位​置​
11.4. 导​入​发​行​版​
11.5. Manually configure a PXE server
11.5.1. Setting up the Network Server
11.5.2. PXE Boot Configuration
11.5.3. Adding PXE Hosts
11.5.4. TFTPD
11.5.5. 配​置 DHCP 服​务​器​
11.5.6. Adding a Custom Boot Message
11.5.7. Performing the PXE Installation
12. Installing Through VNC
12.1. VNC Viewer
12.2. VNC Modes in Anaconda
12.2.1. Direct Mode
12.2.2. Connect Mode
12.3. Installation Using VNC
12.3.1. Installation Example
12.3.2. Kickstart Considerations
12.3.3. 关​于​防​火​墙​
12.4. References
13. kickstart 安​装​
13.1. kickstart 安​装​是​什​么​?
13.2. 如​何​执​行 kickstart 安​装​
13.3. 创​建 kickstart 文​件​
13.4. kickstart 选​项​
13.4.1. 高​级​的​分​区​示​例​
13.5. Package Selection
13.6. 预​安​装​脚​本​
13.6.1. 范​例​
13.7. 安​装​后​脚​本​
13.7.1. 范​例​
13.8. 如​何​使 kickstart 文​件​可​被​利​用​
13.8.1. 创​建 kickstart 引​导​介​质​
13.8.2. 在​网​络​上​提​供 Kickstart 文​件​
13.9. 提​供​安​装​树​
13.10. 开​始 kickstart 安​装​
14. Kickstart Configurator
14.1. 基​本​配​置​
14.2. 安​装​方​法​
14.3. 引​导​装​载​程​序​选​项​
14.4. 分​区​信​息​
14.4.1. 创​建​分​区​
14.5. Network Configuration
14.6. 验​证​
14.7. 防​火​墙​配​置​
14.7.1. SELinux 配​置​
14.8. 显​示​配​置​
14.9. Package Selection
14.10. 预​安​装​脚​本​
14.11. 安​装​后​脚​本​
14.11.1. chroot 环​境​
14.11.2. 使​用​解​释​器​
14.12. 保​存​文​件​

第 9 章 启​动​选​项​

Fedora 安​装​系​统​包​括​一​系​列​管​理​程​序​的​功​能​和​选​项​。​要​使​用​引​导​选​项​,在 boot: 提​示​符​下​输​入 linux option。​
如​果​您​需​要​指​定​多​个​选​项​,用​空​格​分​开​它​们​。​例​如​:
linux 选​项​1 选​项​2 选​项​3

Anaconda 启​动​选​项​

Anaconda 安​装​程​序​有​许​多​的​启​动​选​项​,绝​大​多​数​都​列​在 http://fedoraproject.org/wiki/Anaconda/Options 维​基​网​页​中​。​

内​核​启​动​选​项​

The http://fedoraproject.org/wiki/KernelCommonProblems page lists many common kernel boot options. The full list of kernel options is in the file /usr/share/doc/kernel-doc-version/Documentation/kernel-parameters.txt, which is installed with the kernel-doc package.

Rescue Mode

Fedora 安​装​和 救​援​光​盘​ 任​何​一​个​都​能​以 救​援​模​式​ 启​动​,或​加​载​安​装​系​统​。​关​于​救​援​光​盘​和​救​援​模​式​的​更​多​信​息​,请​参​考 第 9.6.3 节 “以​修​复​模​式​引​导​您​的​计​算​机​”。​

9.1. 在​启​动​菜​单​下​配​置​安​装​系​统​

您​能​用​启​动​菜​单​来​指​定​安​装​系​统​的​许​多​设​置​,包​括​:
  • language
  • 显​示​分​辨​率​
  • 界​面​类​型​
  • Installation method
  • 网​络​设​置​

9.1.1. 指​定​语​言​

要​设​定​安​装​过​程​和​最​终​系​统​的​语​言​,用​lang选​项​指​定​语​言​的​ISO编​码​。​用​keymap选​项​配​置​正​确​的​键​盘​布​局​。​
例​如​, ISO 编​码 el_GRgr 分​别​是​希​腊​语​和​希​腊​键​盘​布​局​:
linux lang=el_GR keymap=gr

9.1.5. 手​动​配​置​网​络​设​置​

默​认​情​况​下​, 安​装​系​统​用​DHCP来​自​动​获​得​正​确​的​网​络​设​置​。​要​手​动​配​置​自​己​的​网​络​设​置​, 在 Configure TCP/IP(配​置 TCP/IP) 屏​幕​, 或 boot: 提​示​符​下​任​选​其​一​输​入​。 在​提​示​符​下​,您​可​以​为​安​装​系​统​指​定 ip 地​址​, netmaskgateway, 和 dns 服​务​器​设​置​。​如​果​您​在 boot: 提​示​符​下​指​定​网​络​配​置​,这​些​设​置​将​用​在​安​装​过​程​中​,而 Configure TCP/IP(配​置 TCP/IP) 屏​幕​不​会​出​现​。​
这​个​例​子​是​为​一​个​用​192.168.1.10作​为​IP地​址​的​安​装​系​统​来​配​置​网​络​设​置​:
linux ip=192.168.1.10 子​网​掩​码​=255.255.255.0 网​关​=192.168.1.1 dns=192.168.1.2,192.168.1.3

配​置​安​装​系​统​

Use the Network Configuration screen to specify the network settings for the new system. Refer to 第 7.15.1 节 “Manual configuration” for more information on configuring the network settings for the installed system.

9.2. 允​许​远​程​访​问​安​装​系​统​

You may access either graphical or text interfaces for the installation system from any other system. Access to a text mode display requires telnet, which is installed by default on Fedora systems. To remotely access the graphical display of an installation system, use client software that supports the VNC (Virtual Network Computing) display protocol. A number of providers offer VNC clients for Microsoft Windows and Mac OS, as well as UNIX-based systems.
linux syslog=192.168.1.20:514
linux ks=location/kickstart-file.cfg
Kickstart source Option format
CD 或 DVD 驱​动​器​ ks=cdrom:/directory/ks.cfg
Hard Drive ks=hd:/device/directory/ks.cfg
其​它​设​备​ ks=file:/device/directory/ks.cfg
HTTP Server ks=http://server.mydomain.com/directory/ks.cfg
FTP Server ks=ftp://server.mydomain.com/directory/ks.cfg
NFS Server ks=nfs:server.mydomain.com:/directory/ks.cfg
表 9.2. Kickstart sources

要​从​一​个​网​络​服​务​器​上​的​脚​本​或​应​用​中​获​得 Kickstart 文​件​,用 ks= 选​项​指​定​这​个​应​用​的 URL 链​接​。​如​果​您​增​加 kssendmac 选​项​,请​求​也​将​发​送 HTTP 报​头​到​网​络​应​用​程​序​。​您​的​应​用​程​序​能​用​这​个​报​头​来​识​别​电​脑​。​这​行​发​送​一​个​带​报​头​的​请​求​给​应​用​程​序​http://server.mydomain.com/kickstart.cgi
linux ks=http://server.mydomain.com/kickstart.cgi kssendmac

9.5. 增​强​的​硬​件​支​持​

默​认​情​况​下​, Fedora 尝​试​自​动​检​测​和​配​置​您​电​脑​上​所​有​支​持​的​部​件​。​Fedora 用​操​作​系​统​自​带​的​软​件 drivers支​持​普​遍​使​用​的​大​部​分​硬​件​。​要​支​持​其​他​设​备​您​需​要​在​安​装​期​间​或​稍​后​提​供​一​个​附​加​驱​动​。​

9.5.1. 用​驱​动​磁​盘​支​持​增​加​的​硬​件​

安​装​系​统​能​从​磁​盘​,优​盘​,或​网​络​服​务​器​加​载​驱​动​来​配​置​支​持​的​一​个​新​设​备​。​在​完​成​安​装​之​后​,取​出​任​何​驱​动​盘​并​保​存​以​备​稍​后​使​用​。​
dd if=drivers.img of=/dev/fd0
linux dd
Image source Option format
选​择​一​个​驱​动​器​和​设​备​。​ dd
HTTP Server dd=http://server.mydomain.com/directory/drivers.img
FTP Server dd=ftp://server.mydomain.com/directory/drivers.img
NFS Server dd=nfs:server.mydomain.com:/directory/drivers.img
表 9.3. Driver disk image sources

9.5.2. 越​过​自​动​硬​件​检​测​

对​于​一​些​设​备​自​动​硬​件​配​置​的​模​块​可​能​失​败​,或​者​导​致​不​稳​定​。​在​这​种​情​况​下​,您​可​能​需​要​禁​止​这​个​设​备​类​型​的​自​动​配​置​,然​后​在​安​装​过​程​完​成​后​采​用​附​加​步​骤​手​动​配​置​这​个​设​备​。​

检​查​发​行​注​记​

参​考​发​行​注​记​获​得​特​殊​设​备​已​知​问​题​的​信​息​。​
要​越​过​自​动​硬​件​检​测​,用​下​面​的​一​个​或​更​多​选​项​:
Compatibility Option
禁​止​所​有​硬​件​检​测​ noprobe
禁​止​图​形​,键​盘​,和​鼠​标​检​测​ headless
禁​用​将​键​盘​和​鼠​标​信​息​传​递​给​安​装​的​第​二​步​ nopass
为​视​频​使​用​基​本​的 VESA 驱​动​ xdriver=vesa
安​装​过​程​中​禁​止​shell访​问​虚​拟​终​端​2 noshell
禁​用​高​级​电​源​配​置​界​面​(ACPI) acpi=off
禁​用​计​算​机​检​查​例​外​(MCE)CPU自​检​。​ nomce
在​AMD64架​构​下​禁​用​非​均​匀​内​存​访​问​ numa-off
强​制​内​核​探​测​指​定​数​额​的​内​存​,xxx以​MB为​单​位​。​ mem=xxxm
仅​为 IDE 和 SATA 驱​动​器​启​用 DMA libata.dma=1
禁​止 BIOS-assisted RAID nodmraid
禁​止​火​线​设​备​检​测​ nofirewire
禁​止​并​行​端​口​检​测​ noparport
禁​止 PC 卡 (PCMCIA) 设​备​检​测​ nopcmcia
禁​止 USB 存​储​设​备​检​测​ nousbstorage
禁​止​所​有 USB 设​备​检​测​ nousb
禁​止​所​有​网​络​设​备​探​测​ nonet
表 9.4. 硬​件​选​项​

附​加​屏​幕​

isa 选​项​让​系​统​在​安​装​过​程​的​开​始​显​示​一​个​附​加​文​本​界​面​。​用​这​个​屏​幕​配​置​您​电​脑​上​的 ISA 设​备​。​

重要

其​它​内​核​启​动​项​对​anaconda没​有​特​别​意​义​,并​且​对​安​装​过​程​无​影​响​。​然​而​如​果​使​用​这​些​选​项​启​动​系​统​,anaconda会​将​它​们​保​存​到​引​导​器​配​置​文​件​中​。​

9.6. 用​维​修​引​导​模​式​

9.6.1. 加​载​内​存 (RAM) 检​测​模​式​

内​存​模​块​的​错​误​可​能​导​致​系​统​突​然​停​止​响​应​或​崩​溃​。​有​时​,内​存​模​块​错​误​只​会​在​特​定​的​软​件​组​合​中​出​现​。​因​此​,您​应​当​在​第​一​次​安​装 Fedora 系​统​前​测​试​内​存​,即​使​它​以​前​可​以​运​行​其​他​操​作​系​统​。​
这​部​分​讨​论​如​何​在​您​的​系​统​中​在​不​生​成​附​加​物​理​介​质​的​情​况​下​安​装 Fedora。​另​外​,您​可​以​使​用​现​有 GRUB 引​导​装​载​程​序​启​动​安​装​程​序​。​

linux 需​要​的​

这​个​过​程​假​设​您​有​使​用 Fedora 或​者​其​它​相​关 Linux 发​行​本​以​及 GRUB 的​经​验​。​它​还​假​设​您​是​一​个​有 Linux 使​用​经​验​的​用​户​。​

10.1. 搜​索​引​导​文​件​

要​执​行​无​介​质​安​装​或​者 PXE 服​务​器​安​装​,您​的​系​统​必​须​在​本​地​安​装​两​个​文​件​,一​个​内​核​和​一​个​初​始 RAM 磁​盘​。​
  1. Download a Live image or DVD distribution, or to locate an installation mirror, visit http://mirrors.fedoraproject.org/publiclist/Fedora/11/.
  2. 请​使​用​以​下​方​法​之​一​定​位 isolinux/ 文​件​夹​:
    • 如​果​您​选​择​下​载​映​像​,请​使​用​适​当​的​桌​面​工​具​打​开​。​如​果​您​正​在​使​用 Fedora,请​双​击​该​文​件​用 Archive Manager 打​开​它​。​打​开 isolinux/ 文​件​夹​。​
    • If you chose not to download a whole image because you wish to install via the network, locate the desired release. In general, once you find a suitable mirror, browse to the releases/11/Fedora/arch/os/isolinux/ folder.

    可​用​安​装​类​型​

    如​果​您​下​载​了​一​个​映​像​,您​可​能​接​下​来​选​择​基​于​硬​盘​的​安​装​或​者​网​络​安​装​。​如​果​您​只​从​一​个​镜​像​中​下​载​选​择​的​文​件​,您​可​能​只​能​执​行​网​络​安​装​。​
  3. 从​选​择​的​源​中​将 vmlinuzinitrd.img 复​制​到 /boot/ 目​录​,将​其​重​新​命​名​为 vmlinuz-installinitrd.img-install。​您​必​须​有 root 权​限​以​便​可​将​文​件​写​入 /boot/ 目​录​。​

10.2. 编​辑 GRUB 配​置​

GRUB 引​导​装​载​程​序​使​用​配​置​文​件 /boot/grub/grub.conf。​要​将 GRUB 配​置​为​从​新​的​文​件​引​导​,请​在 /boot/grub/grub.conf 中​添​加​一​个​指​向​它​们​的​引​导​字​段​。​
最​小​的​引​导​字​段​类​似​如​下​:
title Installation
        root (hd0,0)
        kernel /vmlinuz-install
        initrd /initrd.img-install
您​可​能​希​望​在​引​导​字​段 kernel 行​最​后​添​加​选​项​。​这​些​选​项​会​在​用​户​通​常​互​动​设​定​的 Anaconda 设​置​初​步​选​项​。​可​用​安​装​程​序​引​导​选​项​列​表​请​参​考 第 9 章 启​动​选​项​。​
以​下​选​项​通​常​用​于​无​介​质​安​装​中​:
  • ip=
  • method=
  • lang=
  • keymap=
  • ksdevice=(如​果​安​装​需​要 eth0 之​外​的​接​口​)
  • vncvncpassword= 用​于​远​程​安​装​
完​成​后​,在 /boot/grub/grub.conf 文​件​中​更​改 default 选​项​指​向​您​新​添​加​的​第​一​个​字​段​:
default 0

10.3. 引​导​安​装​

重​启​系​统​。​GRUB 引​导​安​装​内​核​和 RAM 磁​盘​,包​括​您​设​置​的​所​有​选​项​。​您​现​在​可​能​要​参​考​本​指​南​的​有​关​章​节​进​行​下​一​步​安​装​。​如​果​您​选​择​使​用 VNC 进​行​远​程​安​装​,请​参​考 第 9.2 节 “允​许​远​程​访​问​安​装​系​统​” 查​看​如​何​连​接​远​程​系​统​。​

第 11 章 配​置​一​个​安​装​服​务​器​

针​对​有​经​验​的​用​户​

这​部​分​附​录​是​针​对​有​过​使​用​Linux经​验​的​用​户​的​。​对​于​新​用​户​,推​荐​使​用​DVD发​行​版​中​的​Minimal Boot Media。​

Warning

The instructions in this appendix configures an automated install server. The default configuration includes destruction of all existing data on all disks for hosts that install using this method. This is often different from other network install server configurations which may provide for an interactive installation experience.
Fedora allows for installation over a network using the NFS, FTP, or HTTP protocols. A network installation can be started from a boot CD-ROM, a bootable flash memory drive, or by using the askmethod boot option with the Fedora CD #1 or DVD. Alternatively, if the system to be installed contains a network interface card (NIC) with Pre-Execution Environment (PXE) support, it can be configured to boot from files on another networked system rather than local media such as a CD-ROM.
For a PXE network installation, the client's NIC with PXE support sends out a broadcast request for DHCP information. The DHCP server provides the client with an IP address, other network information such as name server, the IP address or hostname of the tftp server (which provides the files necessary to start the installation program), and the location of the files on the tftp server. This is possible because of PXELINUX, which is part of the syslinux package.
In the past, administrators needed to perform a great deal of manual configuration to produce an installation server. However, if you have a Red Hat Enterprise Linux, CentOS, or Fedora server on your local network, you can use cobbler to perform these tasks. To configure a PXE server manually, see 第 11.5 节 “Manually configure a PXE server”.
这​一​部​分​向​导​里​的​工​作​,需​要​切​换​到​root账​户​来​进​行​。​切​换​的​命​令​是​su -。​另​外​一​种​方​法​是​每​次​运​行​命​令​是​在​前​面​加​上​su -c,使​命​令​行​成​为​su -c 'command'。​

11.1. 配​置​cobbler

使​用​以​下​命​令​安​装​cobbler。​
yum -y install cobbler
cobbler命​令​可​以​进​行​设​置​的​自​检​并​报​告​检​测​结​过​。​运​行​以​下​命​令​以​检​测​设​置​:
cobbler check
改​变 /var/lib/cobbler/settings 文​件​的​设​置​来​反​映​服​务​器​的 IP 地​址​信​息​。​您​至​少​需​要​修​改 server 和​next_server 两​项​,虽​然​有​时​它​们​的 IP 地​址​相​同​
如​果​您​还​没​有​运​行 DHCP 服​务​, 您​还​要​修​改​manage_dhcp 参​数​为 1。 如​果​您​已​有​一​个​运​行​的 DHCP 服​务​器​,请​根​据 syslinux 软​件​包​的​内​容​进​行​配​置​。​更​多​信​息​参​考​本​地​文​件 /usr/share/doc/syslinux-version/syslinux.doc/usr/share/doc/syslinux-version/pxelinux.doc。​

11.2. 设​置​发​布​目​录​

从​一​个​完​整​的 Fedora DVD 或 ISO 映​像​设​置​发​布​目​录​,采​用​这​个​步​骤​

网​络​位​置​

从​网​路​源​创​建​本​地​镜​像​请​跳​过​这​章​,请​参​考 第 11.3 节 “映​射​网​络​位​置​”
  1. 如​果​您​使​用 DVD 盘​片​或 ISO 映​像​,请​创​建​一​个​目​录​作​为​挂​载​点​
    mkdir /mnt/dvd
    
    要​挂​载​一​个 DVD 盘​片​,在​输​入​下​列​命​令​:
    mount -o context=system_u:object_r:httpd_sys_content_t:s0 /dev/dvd /mnt/dvd
    
    要​挂​载​一​个​DVD ISO 镜​像​,输​入​下​列​命​令​:
    mount -ro loop,context=system_u:object_r:httpd_sys_content_t:s0 /path/to/image.iso /mnt/dvd
    
  2. 支​持 NFS 安​装​,创​建​一​个​文​件 /etc/exports,添​加​如​下​内​容​
    /mnt/dvd *(ro,async)
    
    输​入​下​列​命​令​,启​动 NFS 服​务​器​:
    /sbin/service rpcbind start /sbin/service nfs start
    
  3. 要​支​持 HTTP 安​装​,如​果 Apache 还​没​有​安​装​则​先​用 yum 进​行​安​装​:
    yum -y install httpd
    
    在 Apache 的​公​共​内​容​区​创​建​挂​载​磁​盘​内​容​的​连​接​:
    ln -s /mnt/dvd /var/www/html/distro
    

11.3. 映​射​网​络​位​置​

如​果​没​有​创​建​发​布​目​录​所​需​的​光​盘​或​映​像​,您​可​以​用 cobbler 来​配​置​一​个​发​布​服​务​器​。​cobbler命​令​在​导​入​过​程​中​可​以​从​网​络​获​取​发​布​目​录​
定​位​网​络​发​布​目​录​。​具​体​位​置​可​能​是​一​个 FTP,HTTP 或 rsync 可​以​访​问​的​网​络​主​机​。​需​注​意 URI 的​写​法​应​为​如​下​格​式​:
  • http://mirror.example.com/pub/fedora/linux/releases/11/Fedora/arch/os
  • ftp://mirror.example.com/pub/fedora/linux/releases/11/Fedora/arch/os
  • rsync://mirror.example.com/fedora/linux/releases/11/Fedora/arch/os

11.4. 导​入​发​行​版​

如​需​通​过​多​种​方​法​访​问​发​布​目​录​,对​不​同​方​法​采​用​不​同​名​称​执​行 cobbler import。​建​议​用​安​装​方​法​作​为​名​称​的​一​部​分​,这​样​客​户​端​的​启​动​目​录​里​会​得​到​体​现​
  1. 将 DVD 或 ISO 发​布​命​令​导​入 cobbler 执​行​这​个​命​令​:
    cobbler import --path=/mnt/dvd --name=distro_name
    
    distro_name来​说​,为​这​个​发​行​本​替​换​了​一​个​有​意​义​的​名​称​。​
    要​将​一​个​本​地​或​者​远​程​网​络​发​行​本​导​入 cobbler,请​运​行​这​个​命​令​。​请​使​用​您​在 第 11.3 节 “映​射​网​络​位​置​” 找​到​的 URI 替​换 network_URI,并​使​用​上​述​名​称​替​换 distro_name。​
    cobbler import --mirror=network_URI --name=distro_name
    

    导​入​一​个​源​

    cobbler用​如​上​命​令​导​入​发​布​目​录​时​,会​将​所​有​文​件​拷​贝​到​服​务​器​上​,这​将​会​花​一​点​时​间​。​
    如​果​您​认​为​没​有​必​要​再​创​建​一​个​本​地​的​副​本​,客​户​端​可​以​访​问​发​布​目​录​,可​以​用 --available-as 选​项​。​
    cobbler import --path=/mnt/dvd --name=distro_name --available-as=network_URI
    cobbler import --mirror=network_URI --name=distro_name --available-as=network_URI
    
    替​换 nework_URI 为​恰​当​的​网​络​发​布​路​径​。​这​个 URI 显​示​服​务​器​如​何​提​供​发​布​目​录​给​客​户​端​。​上​面​的​例​子​假​定​您​的 cobbler 服​务​器​和​您​的​客​户​端​用​相​同​的 URI 来​访​问​镜​像​。​如​果​不​是​可​用 --mirror 来​改​变​。​如​果​您​按​照​本​章​的​内​容​设​置​则​下​面​的​例​子​将​可​以​工​作​,假​设​服​务​器​的​地​址​为 192.168.1.1
    • nfs://192.168.1.1:/mnt/dvd
    • http://192.168.1.1:/distro
    如​必​要​,请​将 192.168.1.1 替​换​为​您 cobbler 服​务​器​的 IP 地​址​。​
  2. 运​行 cobbler sync 提​交​。​用 netstat -lp 命​令​检​查 cobbler 服​务​器​是​否​监​听​相​应​端​口​。​

    关​于​防​火​墙​

    根​据​服​务​器​配​置​,您​可​能​需​要​用 system-config-securitylevel 来​设​置​防​火​墙​以​允​许​相​应​的​网​络​服​务​:
    • 67 或​者 bootps,用​于 DHCP/BOOTP 服​务​器​
    • 69 或​者 tftp,用​于​提​供 PXE 载​入​程​序​
    • 80 or http, 如​果 cobbler 服​务​器​提​供 HTTP 安​装​服​务​
    • 20 and 21 or ftp,如​果 cobbler 服​务​器​提​供 FTP 安​装​服​务​
    • 111 or sunrpc, 如​果 cobbler 服​务​器​提​供 NFS 安​装​服​务​

11.5. Manually configure a PXE server

The following steps must be performed to prepare for a PXE installation:
  1. Configure the network (NFS, FTP, HTTP) server to export the installation tree.
  2. Configure the files on the tftp server necessary for PXE booting.
  3. Configure which hosts are allowed to boot from the PXE configuration.
  4. Start the tftp service.
  5. Configure DHCP.
  6. Boot the client, and start the installation.
Add Hosts
Add Hosts
图 11.1. Add Hosts

The next step is to configure which hosts are allowed to connect to the PXE boot server.
To add hosts, click the New button.
Add a Host
Add a Host
图 11.2. Add a Host

Enter the following information:
  • Hostname or IP Address/Subnet — The IP address, fully qualified hostname, or a subnet of systems that should be allowed to connect to the PXE server for installations.
  • Operating System — The operating system identifier to install on this client. The list is populated from the network install instances created from the Network Installation Dialog.
  • Serial Console — This option allows use of a serial console.
  • Kickstart File — The location of a kickstart file to use, such as http://server.example.com/kickstart/ks.cfg. This file can be created with the Kickstart Configurator. Refer to 第 14 章 Kickstart Configurator for details.
Ignore the Snapshot name and Ethernet options. They are only used for diskless environments.

第 12 章 Installing Through VNC

The Red Hat Enterprise Linux and Fedora installer (anaconda) offers you two interactive modes of operation. The original mode is a text-based interface. The newer mode uses GTK+ and runs in the X Window environment. This chapter explains how you can use the graphical installation mode in environments where the system lacks a proper display and input devices typically associated with a workstation. This scenario is typical of systems in datacenters, which are often installed in a rack environment and do not have a display, keyboard, or mouse. Additionally, a lot of these systems even lack the ability to connect a graphical display. Given that enterprise hardware rarely needs that ability at the physical system, this hardware configuration is acceptable.
Even in these environments, however, the graphical installer remains the recommended method of installation. The text mode environment lacks a lot of capabilities found in the graphical mode. Many users still feel that the text mode interface provides them with additional power or configuration ability not found in the graphical version. The opposite is true. Much less development effort is put in to the text-mode environment and specific things (for example, LVM configuration, partition layout, package selection, and bootloader configuration) are deliberately left out of the text mode environment. The reasons for this are:
  • Less screen real estate for creating user interfaces similar to those found in the graphical mode.
  • Difficult internationalization support.
  • Desire to maintain a single interactive installation code path.
Anaconda therefore includes a Virtual Network Computing (VNC) mode that allows the graphical mode of the installer to run locally, but display on a system connected to the network. Installing in VNC mode provides you with the full range of installation options, even in situations where the system lacks a display or input devices.

12.1. VNC Viewer

Performing a VNC installation requires a VNC viewer running on your workstation or other terminal computer. Locations where you might want a VNC viewer installed:
  • Your workstation
  • Laptop on a datacenter crash cart
VNC is open source software licensed under the GNU General Public License. Versions exist for Linux, Windows, and MacOS X. Here are some recommended VNC viewers:
  • vncviewer is available on Red Hat Enterprise Linux and Fedora Linux by installing the vnc package:
    # yum install vnc
    
  • TightVNC is available for Windows at http://www.tightvnc.com/
  • MacOS X includes built-in VNC support as of version 10.5. In the Finder, click the Go menu and choose Connect to Server. In the server address field, you can type vnc://SERVER:DISPLAY, where SERVER is the IP address or DNS host name of the VNC server you wish to connect to and DISPLAY is the VNC display number (usually 1), and click Connect.
Once you have verified you have a VNC viewer available, it's time to start the installation.

12.2. VNC Modes in Anaconda

Anaconda offers two modes for VNC installation. The mode you select will depend on the network configuration in your environment.

12.2.1. Direct Mode

Direct mode VNC in anaconda is when the client initiates a connection to the VNC server running in anaconda. Anaconda will tell you when to initiate this connection in the VNC viewer. Direct mode can be activated by either of the following commands:
  • Specify vnc as a boot argument.
  • Specify the vnc command in the kickstart file used for installation.
When you activate VNC mode, anaconda will complete the first stage of the installer and then start VNC to run the graphical installer. The installer will display a message on the console in the following format:
Running anaconda VERSION, the PRODUCT system installer - please wait...
Anaconda will also tell you the IP address and display number to use in your VNC viewer. At this point, you need to start the VNC viewer and connect to the target system to continue the installation. The VNC viewer will present anaconda to you in graphical mode.
There are some disadvantages to direct mode, including:
  • Requires visual access to the system console to see the IP address and port to connect the VNC viewer to.
  • Requires interactive access to the system console to complete the first stage of the installer.
If either of these disadvantages would prevent you from using direct mode VNC in anaconda, then connect mode is probably more suited to your environment.

12.2.2. Connect Mode

Certain firewall configurations or instances where the target system is configured to obtain a dynamic IP address may cause trouble with the direct VNC mode in anaconda. In addition, if you lack a console on the target system to see the message that tells you the IP address to connect to, then you will not be able to continue the installation.
The VNC connect mode changes how VNC is started. Rather than anaconda starting up and waiting for you to connect, the VNC connect mode allows anaconda to automatically connect to your view. You won't need to know the IP address of the target system in this case.
To activate the VNC connect mode, pass the vncconnect boot parameter:
boot: linux vncconnect=HOST
Replace HOST with your VNC viewer's IP address or DNS host name. Before starting the installation process on the target system, start up your VNC viewer and have it wait for an incoming connection.
Start the installation and when your VNC viewer displays the graphical installer, you are ready to go.

12.3. Installation Using VNC

Now that you have installed a VNC viewer application and selected a VNC mode for use in anaconda, you are ready to begin the installation.

12.3.1. Installation Example

The easiest way to perform an installation using VNC is to connect another computer directly to the network port on the target system. The laptop on a datacenter crash cart usually fills this role. If you are performing your installation this way, make sure you follow these steps:
  1. Connect the laptop or other workstation to the target system using a crossover cable. If you are using regular patch cables, make sure you connect the two systems using a small hub or switch. Most recent Ethernet interfaces will automatically detect if they need to be crossover or not, so it may be possible to connect the two systems directly using a regular patch cable.
  2. Configure the VNC viewer system to use a RFC 1918 address with no gateway. This private network connection will only be used for the purpose of installation. Configure the VNC viewer system to be 192.168.100.1/24. If that address is in use, just pick something else in the RFC 1918 address space that is available to you.
  3. Start the installation on the target system.
    1. Booting the installation DVD or CD.
      If booting the installation media (CD or DVD), make sure vnc is passed as a boot parameter. To add the vnc parameter, you will need a console attached to the target system that allows you to interact with the boot process. Enter the following at the prompt:
      boot: linux vnc
      
    2. Boot over the network.
      If the target system is configured with a static IP address, add the vnc command to the kickstart file. If the target system is using DHCP, add vncconnect=HOST to the boot arguments for the target system. HOST is the IP address or DNS host name of the VNC viewer system. Enter the following at the prompt:
      boot: linux vncconnect=HOST
      
  4. When prompted for the network configuration on the target system, assign it an available RFC 1918 address in the same network you used for the VNC viewer system. For example, 192.168.100.2/24.

    Note

    This IP address is only used during installation. You will have an opportunity to configure the final network settings, if any, later in the installer.
  5. Once the installer indicates it is starting anaconda, you will be instructed to connect to the system using the VNC viewer. Connect to the viewer and follow the graphical installation mode instructions found in the product documentation.

12.3.2. Kickstart Considerations

If your target system will be booting over the network, VNC is still available. Just add the vnc command to the kickstart file for the system. You will be able to connect to the target system using your VNC viewer and monitor the installation progress. The address to use is the one the system is configured with via the kickstart file.
If you are using DHCP for the target system, the reverse vncconnect method may work better for you. Rather than adding the vnc boot parameter to the kickstart file, add the vncconnect=HOST parameter to the list of boot arguments for the target system. For HOST, put the IP address or DNS host name of the VNC viewer system. See the next section for more details on using the vncconnect mode.

12.3.3. 关​于​防​火​墙​

If you are performing the installation where the VNC viewer system is a workstation on a different subnet from the target system, you may run in to network routing problems. VNC works fine so long as your viewer system has a route to the target system and ports 5900 and 5901 are open. If your environment has a firewall, make sure ports 5900 and 5901 are open between your workstation and the target system.
In addition to passing the vnc boot parameter, you may also want to pass the vncpassword parameter in these scenarios. While the password is sent in plain text over the network, it does provide an extra step before a viewer can connect to a system. Once the viewer connects to the target system over VNC, no other connections are permitted. These limitations are usually sufficient for installation purposes.

Important

Be sure to use a temporary password for the vncpassword option. It should not be a password you use on any systems, especially a real root password.
If you continue to have trouble, consider using the vncconnect parameter. In this mode of operation, you start the viewer on your system first telling it to listen for an incoming connection. Pass vncconnect=HOST at the boot prompt and the installer will attempt to connect to the specified HOST (either a hostname or IP address).

12.4. References

第 13 章 kickstart 安​装​

13.1. kickstart 安​装​是​什​么​?

Many system administrators would prefer to use an automated installation method to install Fedora on their machines. To answer this need, Red Hat created the kickstart installation method. Using kickstart, a system administrator can create a single file containing the answers to all the questions that would normally be asked during a typical installation.
Kickstart files can be kept on a single server system and read by individual computers during the installation. This installation method can support the use of a single kickstart file to install Fedora on multiple machines, making it ideal for network and system administrators.
Kickstart provides a way for users to automate a Fedora installation.

13.2. 如​何​执​行 kickstart 安​装​

kickstart 安​装​可​以​使​用​本​地​光​盘​、​本​地​硬​盘​驱​动​器​、​或​通​过 NFS、​FTP、​HTTP 来​执​行​。​
要​使​用 kickstart ,你​必​须​:
  1. 创​建​一​个 kickstart 文​件​。​
  2. 创​建​有 kickstart 文​件​的​引​导​介​质​或​者​使​这​个​文​件​在​网​络​上​可​用​。​
  3. 筹​备​安​装​树​。​
  4. 开​始 kickstart 安​装​。​
本​章​详​细​解​释​了​这​些​步​骤​。​

13.3. 创​建 kickstart 文​件​

The kickstart file is a simple text file, containing a list of items, each identified by a keyword. You can create it by using the Kickstart Configurator application, or writing it from scratch. The Fedora installation program also creates a sample kickstart file based on the options that you selected during installation. It is written to the file /root/anaconda-ks.cfg. You should be able to edit it with any text editor or word processor that can save files as ASCII text.
首​先​,在​你​创​建 kickstart 文​件​时​留​意​下​列​问​题​:

13.4. kickstart 选​项​

Note

如​果​某​选​项​后​面​跟​随​了​一​个​等​号​(=),它​后​面​就​必​须​指​定​一​个​值​。​在​示​例​命​令​中​,括​号​([])中​的​选​项​是​命​令​的​可​选​参​数​。​
autopart(可​选​)
ignoredisk(可​选​)
ignoredisk --drives=drive1,drive2,...
autostep(可​选​)
authauthconfig(必​需​)