GRUB 2 is the boot loader that is used by all current Linux Distributions. In this guide I will explain how to modify the GRUB boot loader menu on your server or desktop, how to add menu entries and add a custom splash screen image.
GRUB 2 overview.
One of the important features in GRUB 2 is flexibility; GRUB understands filesystems and kernel executable formats, so you can load an arbitrary operating system the way you like, without recording the physical position of your kernel on the disk. Thus you can load the kernel just by specifying its file name and the drive and partition where the kernel resides.
The configuration file of GRUB has a new name (‘grub.cfg’ rather than ‘menu.lst’ or ‘grub.conf’), new syntax and many new commands. Configuration cannot be transferred directly, although most GRUB Legacy users should not find the syntax too surprising. The file “grub.cfg” is automatically generated by the command:
Editing your GRUB menu.
Starting with the main file of GRUB “/boot/grub/grub.cfg”. This file is automatically generated and is not meant to be edited directly.You can use any editor you want to display the file. Have a look at the image below.