What's the difference between GRUB and LILO and why should I care?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
oops,
that I didn't know.
GRUB 0.95 is exactly what came with my distribution (debian sarge),
and it took me quite a while to find out that the loader caused the trouble.
Whatever, lilo works just as fine ...
"every time i edit lilo, i have to run it, and if it is installed in mbr, mbr is over writen evry time"
I've never understood why this is such a problem. Is there a real technical problem, or is it just that people don't like typing 'lilo'? I kind of like it because it provides a simple sanity check on my lilo.conf file.
You can uninstall 'lilo' from your mbr. I don't think you can do the same for 'grub'.
I used to like this feature when I wanted to go back to the Windows boot loader and completely remove Linux.
I've never understood why this is such a problem. Is there a real technical problem, or is it just that people don't like typing 'lilo'? I kind of like it because it provides a simple sanity check on my lilo.conf file.
Well, about 10 years ago when I was extensively compiling my kernel lilo broke my mbr. Nevertheless it was 10 years ago and lilo's version is much higher I still remember this incident. But I still use lilo, however I try not to rewrite mbr too often
I've never understood why this is such a problem.Is there a real technical problem, or is it just that people don't like typing 'lilo'? I kind of like it because it provides a simple sanity check on my lilo.conf file.
the problem is it will write to mbr everytime we type 'lilo', is it needed??
>it provides a simple sanity check on my lilo.conf file
yes.
it would have been nice, if it runs(checks) without writting to mbr.
but grub gives a minimal bash like environment, from there u can fix some...
i am using lilo i do like it, so my choice goes to lilo.
Grub gets my vote. command interface, network boot stuff, doesnt write the mbr with each change.... But then again I dont think it really matters and I certainly do not consider one "better" than the other.
thanks "gbonvehi" i am still learning...
this one is good
actually my idea was, there must be some other script(let me call it as lilonew )which will update lilo without writting to mbr. but usual /sbin/lilo is still there to write lilo to the specific place, which we mentioned in lilo.conf
i think, if we use grub we only need to edit menu.lst, and grub will look on to that. so that we are not writing to mbr everytime
thanks "gbonvehi" i am still learning...
this one is good
actually my idea was, there must be some other script(let me call it as lilonew )which will update lilo without writting to mbr. but usual /sbin/lilo is still there to write lilo to the specific place, which we mentioned in lilo.conf
Lilo must write to the mbr (or wherever you boot from) when you update the lilo.conf file because it must rewrite the boot sector with the new configuration data. Grub gets around this because it is able to read the configuration file on the disk.
I do not believe there is any true technical issue with writing to the mbr over and over. I think the issue is simply that if one messes up while editing lilo.conf, then the boot sector is messed up and your computer won't boot without a rescue disk. With grub, you just drop into the grub command line a fix whatever is wrong. I don't see much of a difference in this respect.
I think that the true advantage of grub is that it is much more flexible.
i dont know whether slack is giving grub as a choise while installing. i hope no choise only lilo
since lilo is default and the only one in slak, i prefer lilo, but the problem i feel with lilo is, "every time i edit lilo, i have to run it, and if it is installed in mbr, mbr is over writen evry time"
Excepting that, something seriously wrong has to happen for overwriting the MBR to be a problem of merit. Like, seriously enough that Grub isn't likely to handle it well, either. IBM's verbiage is accurate, but not exactly representative of the reality of the situation. "doing something" is always going to be riskier than not doing it.
Also, only lilo is installed by default in Slackware. If you want grub, you need to install it yourself, either from source, download a *tgz, or install it from /testing
i think lilo can have problems booting anything past the first 1024 cylinders if there's a bios limitation. in the past i used lilo exclusively, but i recently installed an OS way past 1024 on an extended partition and lilo couldn't boot it, even though my hardware is fairly recent. maybe i implemented lilo wrong, but once i switched to grub, it worked fine. i'm now a grub convert. it's also really nice not to have to run lilo everytime you make a change. so:
1) on older hardware, or
2) if you expect to make frequent changes or kernel updates
The lilo 1024 cylinder boundary has been fixed for a long time.
I prefer grub for trivial reasons... I'm not fond of lilo's progress dots,
nor having to re-run it when initrd or the kernel changes.
Like I said, trivial, but to each his own.
One non-trivial advantage to grub that (knock on wood) I haven't had to use is the ability to use the prompt and enter any necessary parameters even in the face of a catastrophic boot failure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.