19.Explain the GRUB configuration file.
Ans.
1. When the system boots, GRUB presents a graphical screen showing the operating systems that we can boot.
2. The ‘/boot/grub/grub.conf’ file controls what information is displayed on the graphical screen, the file even controls whether you see the graphical screen at all.
3. All lines in grub.conf file begins with a # symbol (hash character) are comments and will be ignored, GRUB also ignores blank lines.
4. The lines following the lines beginning with hash character and before the line beginning with the title are the menu interface command that GRUB uses to display the menu.
These lines have the following meaning:
5. ‘default=0’ – This command tells GRUB to boot the first listing beginning with title, if we can set this number to 1 to boot the second entry.
6. ‘timeout=5’ – This command tells GRUB to boot the default entry after five seconds to change the time increase or decrease the number as desired.
7. ‘splashimage=(hd0,0)/grub/splash.xpm.gz’ – This command tells GRUB where to look for the splash image, it displays for the menu, we can create our own image.
8. ‘hiddenmenu’ – This command tells GRUB not to display the menu and to boot the default after the timeout expires, we can still see the menu by pressing any key.
9. ‘title’ – This command tells GRUB to list a boot name on the menu using the name following the title command, the line follows the title are explained as follows:
10. ‘root(hd0,0)’ – This line tells the GRUB to boot the system from the first partition of the first hard drive.
11. ‘kernal…’ – This line tells GRUB the location of the kernel, as well as passes the kernel parameters to the kernel. If we want to pass kernel parameters to the kernel before it loads, this is the line to add them up.
12. ‘initrd…’ – This line tells GRUB the location of the initial ramdisk image that is used to load special drivers for the system.
Ans.
1. When the system boots, GRUB presents a graphical screen showing the operating systems that we can boot.
2. The ‘/boot/grub/grub.conf’ file controls what information is displayed on the graphical screen, the file even controls whether you see the graphical screen at all.
3. All lines in grub.conf file begins with a # symbol (hash character) are comments and will be ignored, GRUB also ignores blank lines.
4. The lines following the lines beginning with hash character and before the line beginning with the title are the menu interface command that GRUB uses to display the menu.
These lines have the following meaning:
5. ‘default=0’ – This command tells GRUB to boot the first listing beginning with title, if we can set this number to 1 to boot the second entry.
6. ‘timeout=5’ – This command tells GRUB to boot the default entry after five seconds to change the time increase or decrease the number as desired.
7. ‘splashimage=(hd0,0)/grub/splash.xpm.gz’ – This command tells GRUB where to look for the splash image, it displays for the menu, we can create our own image.
8. ‘hiddenmenu’ – This command tells GRUB not to display the menu and to boot the default after the timeout expires, we can still see the menu by pressing any key.
9. ‘title’ – This command tells GRUB to list a boot name on the menu using the name following the title command, the line follows the title are explained as follows:
10. ‘root(hd0,0)’ – This line tells the GRUB to boot the system from the first partition of the first hard drive.
11. ‘kernal…’ – This line tells GRUB the location of the kernel, as well as passes the kernel parameters to the kernel. If we want to pass kernel parameters to the kernel before it loads, this is the line to add them up.
12. ‘initrd…’ – This line tells GRUB the location of the initial ramdisk image that is used to load special drivers for the system.
Comments
Post a Comment