- 論壇徽章:
- 0
|
1、加載 BIOS 的硬件信息;
2、讀取 MBR(master boot record) 的 Kernel Loader (亦即是 lilo, grub, spfdisk 等等)開機信息;
3、加載 Kernel 的操作系統(tǒng)核心信息;
4、Kernel 執(zhí)行 init 程序并取得 run-level 信息;
5、init 執(zhí)行 /etc/rc.d/rc.sysinit 檔案;
... ...
上面是我在網(wǎng)上查的一個啟動順序,讀了下rc.sysinit文檔:
$ more rc.sysinit
#!/bin/bash
#
# /etc/rc.d/rc.sysinit - run once at boot time
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
#
HOSTNAME=`/bin/hostname`
HOSTTYPE=`uname -m`
unamer=`uname -r`
set -m
if [ -f /etc/sysconfig/network ]; then
. /etc/sysconfig/network
fi
if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then
HOSTNAME=localhost
fi
if [ ! -e /proc/mounts ]; then
mount -n -t proc /proc /proc
mount -n -t sysfs /sys /sys >/dev/null 2>&1
fi
if [ ! -d /proc/bus/usb ]; then
modprobe usbcore >/dev/null 2>&1 && mount -n -t usbfs /proc/bus/usb /proc/bus/usb
else
mount -n -t usbfs /proc/bus/usb /proc/bus/usb
fi
. /etc/init.d/functions
發(fā)現(xiàn)里面用了/etc內(nèi)的一些文檔,那也就是說這是os已經(jīng)識別到/etc內(nèi)的數(shù)據(jù)了,那是在什么時候怎么掛載的硬盤分區(qū)呢? |
|