一、系统启动过程:

开机→初始化BIOS→→启动引导器bootloader→→装载内核kernel→→启动init
                    (GRUB)

 

· 第一步,初始化BIOS设置启动顺序等基本输入输出系统。

MBR:Master Boot Recorder主引导分区 (512字节,0柱面、0磁头、第1个扇区)
446字节MBC:主引导代码(找可引导分区)
64字节DPT:4个16字节的主分区信息
2字节:55AA(十六进制数)表示结束。

· 第二步,启动引导器bootloader

⑴ grub:/boot/grub/grub.conf配置文件
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda

阅读全文 »