-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path101-2-boot-system
77 lines (62 loc) · 2.75 KB
/
101-2-boot-system
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#############################
101.2. Boot the system
#############################
Candidates should be able to guide the system through the booting process.
Key Knowledge Areas
& Provide common commands to the boot loader and options to the kernel at boot time.
& Demonstrate knowledge of the boot sequence from BIOS to boot completion.
& Check boot events in the log files.
Terms
* BIOS
* bootloader
* kernel
* init
* /var/log/messages
* dmesg
* BIOS
##########################################################################
# /etc/lilo.conf # config bootloaders(old version) #
# /boot/grub/grub.cfg # config bootloaders (GRUB v1) #
# /boot/grub/menu.lst # config bootloaders (GRUB v2) #
# pstree # show init tree #
# dmesg # show full data from kernel ring buffer up to now #
# /var/log/dmesg # show only the data during the boot #
# /var/log/messages # show all logs (fedore) #
# /var/log/syslog # show all logs (debian) #
##########################################################################
#############################
BIOS
#############################
BIOS is Basic Input Output System and does the first steps of the PC bootup. For example is does a POST (Power On Self Test) and decides which hardware should boot
the system.
#############################
bootloader
#############################
Bootloader can be GRUB (1&2) or LILO which are great for disks less than 2TB.
/etc/lilo.conf
/boot/grub/grub.cfg
/boot/grub/menu.lst
#############################
Kernel
#############################
Kernel parameters (sometimes called boot parameters) supply the kernel with information about hardware parameters that it might not determine on its own - say single
user mod boot (S)
#############################
init
#############################
When the kernel finishes loading, it usually starts /sbin/init. This program remains running until the system is shut down. It is always assigned process ID 1.
first process, process in charge, a big family tree of commands:
root@fanylife:$pstree
init is being replaced in many distros (say ubuntu with upstart) but still is in exam and has its own section.
#############################
dmesg
#############################
Funny fact: During the bootup, only The Kernel is running so it should record and keep its own logs!
dmesg command will show the full data from kernel ring buffer up to now. But
cat /var/log/dmesg
will show only the data during the boot
/var/log/messages
After the init process comes up, syslog daemon will log messages. It has timestamps and will persist during restarts.
Kernel is still logging its own messages in dmesg
in some systems it might be called /var/log/syslog
there are many other logs at /var/log