Wednesday 10 July 2013

MyLinuxNote1 [ Linux Boot Process ]

Linux Boot Process [ Simple way]:

1. The system BIOS checks the system and launches the first stage boot loader from the MBR of the primary hard disk.

2. The first stage boot loader loads itself into memory and launches the second stage boot loader from the /boot partition.

3. The boot loader then places one or more appropriate "initramfs"
[ explore, what is "ititramfs" ?]

4. Once the kernel and the "initramfs" image(s) are loaded into memory, the boot loader hands control of the boot process to the kernel.

5. Then kernel hands off the boot process to the "init". Then "/sbin/init" program co-ordinates the rest of the boot process and configures the environment for the user.

6. init > runs > /etc/rc.d/rc.sysinit

7. init > runs > /etc/inittab > runlevel

8. /etc/rc.d/rc<n>.d -> The # of the runlevel

9. K -> First [ Killing the process first ] and then S -> [ Start of the process. ]

10. K & S scripts, points to "/etc/rc.d/init.d/

11. init  > /etc/rc.d/rc.local

12. if runlevel 5 > /sbin/mingetty

13. /etc/inittab > /etc/X11/prefdm

14. login prompt.


No comments:

Post a Comment