Difference between GRUB and GRUB 2, LILO and GRUB


Difference between Grub and Grub 2:
GRUB
GRUB 2
Grub has two configuration file which is menu.lst and grub.conf.
Grub 2 has only one configuration file which is grub.cfg.
Grub configuration file is difficult to modify.
Grub 2 configuration file is easy to modify, with the help of grub-mkconfig command which automatically changes the configuration. 
Grub partition number starts from 0
Grub 2 partition number starts from 1
Grub uses logical block addressing mode (LBA) to identify files and partition.
Grub 2 uses UUID to identify the files and partition which is more reliable.
Grub configuration file is in a different format.
Grub 2 configuration is very close to a full scripting language.
Grub can read from many partitions but not from newer partitions like LVM and RAID.
Grub 2 supports LVM and RAID devices.

Difference between Grub and LILO:
GRUB
LILO
Grub stands for GRAND UNIFIED BOOT LOADER.
LILO stands for Linux loader.
Grub support for unlimited boot entries.
LILO only supports up to 16 different boot selection.
Grub can boot from the network.
LILO cannot boot from the network.
There is no need to change a Grub if configuration file changed, Grub is dynamically configurable.
There is a need to change a LILO if the configuration file is changed, LILO is not dynamically configurable.
GRUB has an interactive command interface.
LILO does not have an interactive command interface.
Grub has knowledge of the file system.
LILO does not have knowledge of the file system.

Grub boot process:
Grub need to load itself into the memory for the boot process and this is done in the steps are given below:

Stage 1: In stage 1 grub boot loader is loaded into the memory by the BIOS. The grub boot loader is known as primary boot loader and it exists on 512 bytes or less of the disk space within the master boot record. If required the primary boot loader can load the stage 1.5 or in stage 2.

Stage 1.5: This stapes may be necessary for some cases as some hardware required a middle step before moving to the stage 2.

Stage 2: The stage 2 boot loader can be loaded into the memory by the primary boot loader and it is also known as secondary boot loader. Stage 2 boot loader performs some functions like display of grub menu and command environment. The kernel is loaded into the memory by the stage 2 or secondary boot loader after that the control of the machine is transferred to the operating system  

No comments:

Post a Comment

Featured Post

Managing user and groups, UID and GID in Linux

What are users in the operating system? A user is a person who accesses or utilizes computer resources or network services. In order to ...

Popular Posts