免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1433 | 回复: 0

linux系统启动进程剖析 [复制链接]

论坛徽章:
0
发表于 2009-05-14 15:45 |显示全部楼层





Boot Sequence Overview
1. BIOS initialization
2.Boot Loader (1st-resides in MBR or boot sector ; 2st-loaded from boot partition)
          GRUB /boot/grub.conf
          if MBR on /dev/hda is corrupted,reinstall the first stage bootloader with:/sbin/grub-install /dev/hda
            if grub-install fail for some reason try: type the comment -grub Enter -root(hd0,0) -setup(hd0) -quit
       example of GRUB:
            #boot=/dev/sda
             default=0
             timeout=5
             splashimage=(hd0,5)/grub/splash.xpm.gz
             hiddenmenu
           title Red Hat Enterprise Linux Server (2.6.18-8.el5)
             root (hd0,5)
             kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet
             initrd /initrd-2.6.18-8.el5.img
           title Other
             rootnoverify (hd0,0)
             chainloader +1
3.Kernel initialization (Device detection; Device driver initialization;Mounts root filesystem read ony; load init)
4.init starts and enters desired run level by executing: (/etc/inittab)
    -/etc/rc.d/rc.sysinit
    -/etc/rc.d/rc and /etc/rc.d/rc?.d/
    -/etc/rc.d/rc.local  (you can put your own scripts in there)
    -X Display Manager if appropriate  
      (system-config-services; ntsysv; chkconfig;  service ;  chkconfig;)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31234/showart_1928432.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP