23

I am running a web server under Debian and I currently have GRUB installed.

Should I consider using LILO instead of GRUB? And what are the advantages of each?

strugee
  • 14,951
  • Hey I tried to find answer for this atlast a good representation of LILO and GRUB is given in the below mentioned site. http://www.conceptsimplified.com/compare/compare-lilo-and-grub/ – RAGHURAM Feb 22 '16 at 17:47

5 Answers5

15

LILO has a simpler interface and is easier to wrap your head around.

GRUB is more featured and handles odd configurations better.

The LILO bootstrap process involves locating the kernel by in essence (it's more complicated than this) pointing to the first logical-sector of the Kernel file. The GRUB bootstrap process is more filesystem aware and can locate a kernel file in a filesystem without having to specify a logical-sector.

There is a reason nearly everyone is using GRUB these days, and that's because it's less fragile and handles edge-cases better.

  • 3
    Slackware still uses LILO, at least as of version 13.1. Slackware is noted for its robustness, and Patrick Volkerding is noted for not upgrading to obtain buzzword compliance. –  Jan 26 '11 at 19:14
  • 4
    Slackware is also why I know LILO so well. – sysadmin1138 Jan 26 '11 at 19:40
8

As explained here:

LILO has no interactive command interface, whereas GRUB does.

LILO does not support booting from a network, whereas GRUB does.

LILO stores information regarding the location of the operating systems it can to load physically on the MBR. If you change your LILO config file, you have to rewrite the LILO stage one boot loader to the MBR. Compared with GRUB, this is a much more risky option since a misconfigured MBR could leave the system unbootable. With GRUB, if the configuration file is configured incorrectly, it will simply default to the GRUB command-line interface.

LILO only loads linux and other boot loaders. and GRUB loads a large number of OS's.

LILO works by loading itself into a space that will fit on the MBR. Grub has two stages (because it's too overcomplicated to work as well, err I mean as easily as lilo). It loads stage 1 off the MBR (usually) and stage 2 out of /boot, along with its config.

terdon
  • 242,166
monika
  • 81
  • 1
  • 1
  • 10
    Cut and paste replies should probably cite their source: http://www.ibm.com/developerworks/linux/library/l-bootload/index.html – jlliagre Sep 12 '11 at 22:06
5

I guess main advantage (for me) of GRUB are

  • I don't have to remember to run 'lilo' after kernel update. GRUB have real support for filesystems so it can find kernel on disk.
  • Commandline. GRUB allows to enter commandline which tends to be handy if I mess with configuration. Sometimes it saves live.

Main advantages of LILO:

  • Support any filesystem as it workarounds this concept
  • It is small

I'd say that in 99% of cases you prefer GRUB.

2

You should use GRUB, or probably GRUB2 as it is much newer. Grub advantages over LILO include support for larger disks (you don't have to have your boot partition in the beginning of disk) and support for EFI boot.

If you are using old computer with working LILO, there is no specific reason to upgrade to GRUB.

Another reason: there is no updates for LILO, and practically no support. Or even a website.

Olli
  • 750
-1

Please check this best tabular difference

http://tabulardifference.com/2014/08/difference-between-lilo-and-grub/