Linux — 系统启动流程
来源:互联网 发布:linux kill -9 编辑:程序博客网 时间:2024/05/17 03:22
1、系统引导概述
BIOS(检查硬件)-> PowerOnSelfTest -> 滴(正常)-> 引导系统(从第0柱面、第0磁道、第一扇区[512byte]中读取MBR[主引导记录])
-> Grub -> Kernel -> /sbin/init -> /etc/inittab(配置文件) -> runlevel -> /etc/rcsysinit 脚本 -> 系统变量、网络配置、启动swap、、proc、用户自定义模块、加载内核设置 -> 根据 runlevel 启动对应的服务 -> 3 = /etc/rc3.d/ 所有的脚本 -> /etc/rc.local -> X Window 登录
2、系统运行级别
0 -> 关机
1 -> 单用户(系统维护、修改root密码)linux 忘记root(这里以centos 6.5为例)密码的解决办法
2 -> 多用户无网路
3 -> 完全多用户模式
4 -> 保留
5 -> 窗口模式,支持多用户、支持网络
6 -> restart
3、Grub 介绍
stage1 -定位、装载-> stage2
/boot/grub
ubuntu 15.10 通过修改 /etc/default/grub 文件 设置 默认启动系统
/boot/grub/grub.conf:
title 、default、timeout、splashimage(指定启动时的背景图片)
sata磁盘的命名规则:
sda、sdb/sda1、sda2
grub -> (hd0,0)、(hd0,1)、(hd1,0)
(hd0,0)/grub = /boot/grub
root -> 分区
kernel -> 内核路径
initrd -> initrd 的路径
initrd:临时文件系统
kernel通过initrd 来获取分钟可执行文件和设备驱动挂载真实的文件系统,然后卸载这个临时文件系统。
- Linux — 系统启动流程
- linux系统启动流程
- linux系统启动流程
- Linux系统启动流程
- Linux 系统启动流程
- Linux系统启动流程
- Linux系统启动流程如下
- linux系统启动流程分析
- linux系统启动流程
- Linux系统启动流程
- Linux系统启动引导流程
- Linux系统启动流程
- Linux系统启动流程
- linux系统启动流程
- Linux系统启动流程
- linux系统启动流程一览
- Linux系统启动流程
- Linux系统启动流程分析
- 反向不归零码NRZI
- 【NKs 1042】合唱队形
- setBackgroundResource导致Padding失效,settextsize
- Apache整合Tomcat实现静态资源与动态资源分离(二)
- LeetCode279. Perfect Squares
- Linux — 系统启动流程
- 初学者必看 RS422串口通信
- android 实现漫天飞舞雪花以及下雨天的效果
- Exception:org.eclipse.m2e.wtp.MarkedException: Unable to configure OHBC
- Android中Relativelayout各个属性
- 297. Serialize and Deserialize Binary Tree
- python爬虫获取google镜像
- Android 6.0 inflate过程分析
- Coroutine,你究竟干了什么?(小续)