Most Linux distros come with GRUB by default. If your distribution comes with other boot loaders like Lilo or Syslinux, you can get the latest release of GRUB, as follows:

The next step is to configure GRUB by properly editing the menu.lst file. You can find the GRUB Stage 2 configuration file at /boot/grub/menu.lst. The next step is to add your installed operating system list to the GRUB menu. Each OS entry in GRUB will look like the following: Here, 'title' is the display name for the operating system that will appear on the GRUB bootloader screen. The following list describes what each term in the above snippet means.

• title - the display name of an operating system.

• root - the partition where the kernel is located.

• kernel - the path of the kernel location with specific boot parameters (space separated.

• initrd - the path of the initial ramdisk file Going back to the snippet again, you will notice that the 'root' entry is given as (hdO,4). This is the standard GRUB naming convention, where.


Name:  44.jpg
Views: 341
Size:  61.7 KB

• hdO stands for the primary master hard disk.

• hd1 stands for the primary slave hard disk.

• hd2 stands for the secondary master hard disk.

• hd3 stands for the secondary slave hard disk Normally it would be hdO, where.

• (hdO,O) represents /dev/sda1, the first partition of the primary master hard disk.

• (hdO,4) represents /dev/sda5, the first logical partition of the extended partition inside the primary master hard disk...

• (hd1,O) represents /dev/sdb1, the first partition of the primary slave hard disk
Other proprietary operating systems like Windows can be loaded by a process called chainloading, as follows (without specifying the kernel or other such parameters-we will only specify the partition in which it is installed.

The following list describes what each term in the above snippet means:
• title - the display name of an operating system

• rootnoverify - the partition in GRUB notation, where the as is installed

• chainloader + 1 -:. enables chainloading Now that the GRUB nomenclature is more or less covered, let us install GRUB into MBR now-run the following command as the root user: