Click to See Complete Forum and Search --> : LILO and GRUB


Thorin
11-28-2002, 10:22 PM
Lately, I've noticed that many posts with grub-related problems are appearing, and very few lilo-related questions are posted. I've been wondering, is there any noticeable advantage of grub over lilo, other than being prettier?

I've used grub on RH 7.2 and lilo on Debian 3.0 unstable/testing, and only had one problem with lilo and that was due to sheer stupidity (not running /sbin/lilo after editing lilo.conf). With grub, however, I've had problems with spacing in the conf file, missing lines that I have no idea what they are for. And all those grub problems required me to search google for some time before I finally found the solution, while the lilo problem was easily solved by re-reading the kernel compiling NHF.

Grub requires quite a few more things than lilo to boot a Linux or windoze partition. All that lilo requires is a kernel image and a System.map file (is the latter necessary? It's not specified anywhere in /etc/lilo.conf). Grub needs a kernel image and an initrd file, which adds an extra step to kernel compilation.

To boot a windoze partition in lilo, all I would write to /etc/lilo.conf is

other=/dev/hda1
label=windoze

To boot a Linux partition:

image=/boot/bzImage
label=Linux2.4.19
read-only

To do the same things in grub, would require a few more lines of things I have no idea what they do (chainloader +1 or something like that, I can't remember right now).

I guess I'm just weird in finding no necessity for a pretty picture on a screen that I usually only look at for a one or two seconds every time I reboot. And lilo can probably have a picture on the background too, I just haven't tried doing that.

p.s. Hmm... I guess this turned into more of a rant than I meant it to be, sorry MDWatts, please move it to /dev/random if you think it doesn't belong here.

Hayl
11-28-2002, 10:29 PM
lilo is an older product.

grub is newer.

they both work just fine.

with lilo you have to rerun lilo after you edit the config file. with grub you don't.

mdwatts
11-29-2002, 07:42 AM
Originally posted by Thorin

p.s. Hmm... I guess this turned into more of a rant than I meant it to be, sorry MDWatts, please move it to /dev/random if you think it doesn't belong here.

It's kinda borderline, so I'll just leave it here for now, but if it gets out of hand and starts taking the focus away from the actual Linux questions posted in this forum, then I will move it.

Lilo has been around longer than Grub, but both are still being developed and kept up to date.

I prefer Grub since I'm a bit more comfortable with the config syntax and my distro defaults to Grub.

The reason you are seeing more problems posted about Grub is that more and more distros are including Grub as a option along with Lilo or instead of.

Plus the fact that most if not all of the Grub related problems are user errors.

Thorin
11-29-2002, 06:20 PM
Thanks for the replies, MD and Cybr. I guess it is just a matter of personal preference or distro standard then. I'm only using lilo now because it was standard with Debian, if grub was the standard I probably would not have thought of switching to lilo at all.

I'll give grub another try when I install another distro, now that I know a lot more about Linux than I did when I used RH.