Академический Документы
Профессиональный Документы
Культура Документы
BIOS
Master Boot Record (MBR)
Kernel
init
BIOS
Load boot sector from one of:
Floppy
CDROM
SCSI drive
IDE drive
LILO
One minute guide to installing a new kernel
edit /etc/lilo.conf
o duplicate image= section, eg:
o image=/bzImage-2.2.12
o label=12
o read-only
Kernel
initialise devices
(optionally loads initrd, see below)
mount root FS
o specified by lilo or loadin
o kernel prints:
VFS: Mounted root (ext2 filesystem) readonly.
run /sbin/init, PID 1
o can be changed with boot=
o init prints:
INIT: version 2.76 booting
initrd
Allows setup to be performed before root FS is mounted
/sbin/init
reads /etc/inittab
runs script defined by this line:
o si::sysinit:/etc/init.d/rcS
switches to runlevel defined by
o id:3:initdefault:
sysinit
debian: /etc/init.d/rcS which runs
o /etc/rcS.d/S* scripts
symlinks to /etc/init.d/*
o /etc/rc.boot/* (depreciated)
redhat: /etc/rc.d/rc.sysinit script which
o load modules
o check root FS and mount RW
o mount local FS
o setup network
o mount remote FS
Run Levels
0 halt
1 single user
2-4 user defined
5 X11
6 Reboot
Default in /etc/inittab, eg
o id:3:initdefault:
Change using /sbin/telinit
Boot Summary
lilo
o /etc/lilo.conf
debian runs
o /etc/rcS.d/S* and /etc/rc.boot/
o /etc/rc3.d/S* scripts
redhat runs
o /etc/rc.d/rc.sysinit
o /etc/rc.d/rc3.d/S* scripts