系統啟動流程

來源:互聯網
上載者:User

標籤:硬體

第一階段硬體引導啟動:

POWER---->BIOS---->MBR [Bootloader(GRUB程式):446bytes、partition table分區表;64bytes、MagicNumber:標驗碼


GRUB檔案: cat  /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 have a /boot partition.  This means that

#          all kernel and initrd paths are relative to /boot/, eg.

#          root (hd0,0)

#          kernel /vmlinuz-version ro root=/dev/sda2

#          initrd /initrd-[generic-]version.img

#boot=/dev/sda

default=0

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title CentOS (2.6.32-431.el6.x86_64)

root (hd0,0)      <--grub所在的磁碟分割

kernel /vmlinuz-2.6.32-431.el6.x86_64  <--系統核心  ro root=UUID=65af82a4-cc0e-4361-85c0-    3bec9269079a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet

initrd /initramfs-2.6.32-431.el6.x86_64.img   <--核心鏡像檔案,解壓載入驅動


第二階段GRUB引導啟動:

stage1(MBR)--->stage1.5(中介軟體調動stage2,起橋樑作用)--->stage2(磁碟、核心映像)


第三階段核心引導啟動:

調用/sbin/init主進程--->啟動層級設定檔/etc/inittab-->載入啟動指令碼設定檔/etc/init/rc.conf---->執行服務etc/init/rc/與初始化/etc/rc.d/rc.sysinit--->./etc/fstab->其中一個運行層級指令碼/etc/rc3.d--->/etc/rc.d/rc.local 執行設定檔



第四階段Sys V init初始化階段

/sbin/mingetty終端--->/etc/X11/prefdm圖形終端---->/etc/login登入


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/71/65/wKioL1XN5avTh-G0AAIEu-Xkr4w981.jpg" title="1.jpg" style="float:left;" alt="wKioL1XN5avTh-G0AAIEu-Xkr4w981.jpg" />650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/71/69/wKiom1XN46bQt1wsAAJD4LBBhl4915.jpg" style="float:left;" title="2.jpg" alt="wKiom1XN46bQt1wsAAJD4LBBhl4915.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/71/65/wKioL1XN5a-wv7cjAAMqELl5XoI445.jpg" style="float:left;" title="3.jpg" alt="wKioL1XN5a-wv7cjAAMqELl5XoI445.jpg" />


系統啟動流程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.