14.Explain the Boot loader GRUB used in Linux.
Ans.
1. The GRUB program used by fedora core and Enterprise Linux uses a two-step process to begin loading of the operating system. These steps are typically called as stage-1 and stage-2.
2. Stage one, a program on the MBR is used to find the second stage program that will begin the process of loading the Operating system in the system memory.
3. GRUB uses a configuration file called “grub.conf” file stored in “/boot/grub/grub.conf” path to provide information to the second stage loader. “grub.conf” file can be configured according to use.
4. First thing second stage loader does is present you with a nice graphical menu screen from which we can decide which kernel to load.
5. If you don’t choose a kernel to load, GRUB will load whichever kernel is specified in the grub.conf file as the kernel.
6. If we want to select the kernel to load, we can use cursor keys to highlight the kernel we want loaded.
7. Next step is to load the kernel which resides in the /boot directory.
8. GRUB has one last task to do and that is to load a “ramdisk” image, called “initrd” that has some version number as kernel we are going to load in system memory.
9. “Initrd” loads any special drivers that might be needed by the kernel to load the operating system and that’s it for GRUB.
10. Further boot process is done by kernel.
Comments
Post a Comment