An important and powerful aspect of Fedora is the open, user-configurable method it uses for starting the operating system. Users are free to configure many aspects of the boot process, including specifying the programs launched at boot-time. Similarly, system shutdown gracefully terminates processes in an organized and configurable way, although customization of this process is rarely required.
理解引导和关闭的过程不仅可以允许对它们进行自定义,也使和系统启动和关闭相关的故障的解决更为容易。
下面是 x86 系统的引导过程的基本阶段:
系统 BIOS 检查系统并启动存放于主硬盘的 MBR 里的第一阶段引导装载程序。
第一阶段引导装载程序把它自己载入内存,并从 /boot/
分区启动第二阶段引导装载程序。
第二阶段引导装载程序把内核载入到内存,然后按顺序加载任何必需的模块并用只读模式挂载 root 分区。
内核把引导过程的控制权转给 /sbin/init
程序。
/sbin/init
加载所有的服务和用户空间工具,然后挂载 /etc/fstab
里列出的所有分区。
刚引导的 Linux 系统把登录屏幕呈现在用户面前。
因为对引导过程的配置比关闭过程的配置更为普遍,本章的余下内容将详细讨论引导过程和怎么样对它进行定制来符合特殊需要。