•Run Levels
•Booting procedure
•Boot loader configuration
•Shutting down a Linux system
Boot Process
One of the most powerful aspects
of Red Hat Linux concerns its open method of
starting and stopping the operating system,
where it loads specified programs using their
particular configurations, permits you to change
those configurations to control the boot process,
and shuts down in a graceful and organized
way.
Boot Process
• When a computer is booted, the processor looks at
the end of the system memory for the BIOS (Basic
Input/Output System) and runs it.
• The BIOS program is written into read-only
permanent memory and is always available for use.
• The BIOS provides the lowest level interface to
peripheral devices and controls the first step of the
boot process.
• The BIOS tests the system, looks for and checks
peripherals, and then looks for a drive to use to boot
the system.
• Usually, it checks the floppy drive (or CD-ROM drive
on many newer systems) for bootable media, if
present, and then it looks to the hard drive.
Boot Process
6. The order of the drives used for booting is usually controlled
by a particular BIOS setting on the system.
7. Once Red Hat Linux is installed on a hard drive of a system,
the BIOS looks for a Master Boot Record (MBR) starting at
the first sector on the first hard drive, loads its contents into
memory, and passes control to it.
8. This MBR contains instructions on how to load the boot
loader, GRUB or LILO (LInux LOader), depending on the
boot loader you installed.
9. The MBR then loads the boot loader, which takes over the
process (if the boot loader is installed in the MBR).
10.In the default Red Hat Linux configuration, GRUB or LILO
uses the settings in the MBR to display boot options and
allow for user input on which operating system to actually
start up.
Options in /etc/lilo.conf
boot=/dev/had
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
lba32
default=linux
image=/boot/vmlinuz-2.4.0-0.43.6
label=linux
initrd=/boot/initrd-2.4.0-0.43.6.img
read-only
root=/dev/hda5
other=/dev/hda1
label=dos
Init Run levels
0 — Halt
1 — Single-user mode
init.d
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
Sysconfig Information
The following files are normally found in /etc/sysconfig:
/etc/sysconfig/amd
/etc/sysconfig/apmd
/etc/sysconfig/authconfig
/etc/sysconfig/clock
/etc/sysconfig/desktop
/etc/sysconfig/firewall
/etc/sysconfig/harddisks
/etc/sysconfig/hwconf
/etc/sysconfig/i18n
/etc/sysconfig/init
/etc/sysconfig/ipchains
/etc/sysconfig/iptables
/etc/sysconfig/keyboard
/etc/sysconfig/kudzu
Shutting Down
To shut down Red Hat Linux, issue the shutdown command. You
can read the shutdown man page for complete details, but the two
most common uses are:
You must run shutdown as root. After shutting everything down,
the -h option will halt the machine, and the -r option will reboot.
Although the reboot and halt commands are now able to invoke
shutdown if run while the system is in runlevels 1-5, it is a bad
habit to get into, as not all Linux-like operating systems have this
feature.
/sbin/shutdown -h now
/sbin/shutdown -r now