Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

migrated from serverfault.com Jan 26 '11 at 19:07

This question came from our site for professional system and network administrators.

5 Answers

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.

share|improve this answer
    
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. –  Bruce Ediger Jan 26 '11 at 19:14
2  
Slackware is also why I know LILO so well. –  sysadmin1138 Jan 26 '11 at 19:40
add comment

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 it's config.

share|improve this answer
6  
Cut and paste replies should probably cite their source: ibm.com/developerworks/linux/library/l-bootload/index.html –  jlliagre Sep 12 '11 at 22:06
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
1  
Actually ELILO is the EFI support for LILO. It exists. And unlike straight up LILO, gets updates. –  sysadmin1138 Jan 26 '11 at 18:43
add comment

LILO (LInux LOader) LILO stores information about the location of the kernel or other operating system on the Master Boot Record (MBR).

GNU GRUB (GRand Unified Boot loader) GRUB has a more powerful, interactive command line interface RUB will default to its command line interface where the user can boot the system manually. GRUB may have difficulties booting certain hardware.

LILO and GRUB do have a number of differences:

  • 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.
share|improve this answer
1  
Was there any particular reason you decided to essentially copy the already existing answer? –  Shadur Jan 9 '13 at 16:10
1  
Maybe to improve repurtaion that way... :p (btw: -1 for copy&paste) –  Bonsi Scott Jan 9 '13 at 16:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.