LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2006, 05:21 PM   #1
puntino
Member
 
Registered: Sep 2006
Location: Italy
Distribution: Suse 10.1
Posts: 78

Rep: Reputation: 15
lilo vs Grub


Lilo or grub, which is the best? and Why ?
 
Old 11-13-2006, 05:27 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
There are previous threads that discuss this issue in detail. Please search for "lilo grub" on this site and also look at the bottom of this page to see similar threads to yours. Its important that you search first before starting a new thread because there could already be threads that discuss the same issue as yours.
 
Old 11-13-2006, 05:36 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by puntino
Lilo or grub, which is the best? and Why ?
  1. GRUB
  2. Because the GRUB manual says so
Seriously, they both work. GRUB is more common in modern distros. There is also a version 2 coming, but don't hold you breath. (The old one has been stuck at 0.97 forever)
 
Old 11-13-2006, 05:43 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,876

Rep: Reputation: 88
I started prefering GRUB when I discovered it did not need to be rerun with every configuration change. Creating a generic GRUB boot floppy is fairly simple and quite useful.
LiLo works fine but I no longer prefer it.
 
Old 11-13-2006, 06:20 PM   #5
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 51
I had problem in the past with Lilo when compiling a custom kernel. Lilo said the image was too big, the kernel couldn't boot... So I installed Grub and It all went fine. Using a custom splash screen image is easier to configure in Grub than in Lilo.
So my vote goes to Grub!
 
Old 11-13-2006, 09:27 PM   #6
petersum
Member
 
Registered: May 2006
Location: Karachi, Pakistan
Posts: 140

Rep: Reputation: 15
Both are good when everything works, but...

GRUB is much easier to use when something goes wrong - IF you know how to use it! And most of us don't, cause we never read the manual!!!

LILO has a habit of printing just "LI" on the screen when an error occurs, leaving you no options to proceed further.
 
Old 11-14-2006, 12:45 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Both are equal when comparing advantages and disadvantages. LILO is machine language based while Grub is userspace. Grub contains its own command prompt when something goes wrong which makes it easier to boot up any OS if you forgot to make a menu.lst file or the partition where grub stores its files has been corrupted or accidently deleted. I prefer novice Linux users to use Grub instead of LILO because it is a lot easier to work with.
 
Old 11-14-2006, 02:52 AM   #8
sirclown82
LQ Newbie
 
Registered: Feb 2005
Location: Bedford, Texas
Distribution: Fedora, CentOS
Posts: 11

Rep: Reputation: 0
That answers the question for me!
 
Old 11-14-2006, 03:26 AM   #9
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
Grub is better due to no need to rerun it when changed and you can specifiy the partition easy.
 
Old 11-15-2006, 02:59 PM   #10
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
I believe that the main difference between GRUB and LILO is that GRUB can read a file system and LILO cannot. That's the reason why you have to run LILO after reconfiguring it - so the configuration can be written to LILO itself. GRUB doesn't require this because since it can read a file system, it can read a conf file - menu.lst.

The "LI" that LILO leaves behind when it fails actually means something.

Quote:
LI: The first stage boot loader was able to load the second stage boot loader, but has failed to execute it. This can either be caused by a geometry mismatch or by moving /boot/boot.b without running the map installer.
Link to LILO boot codes: http://tldp.org/HOWTO/Bootdisk-HOWTO/a1483.html
 
Old 11-15-2006, 03:39 PM   #11
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I used to use LiLo in the past, before I learned to configure GRUB manually; in the beginning LiLo seemed easier, but nowadays I think differently. As heatsink mentioned, LiLo needs to be run (installed) each time it's config file is altered, because it saves the settings to MBR where it resides itself. GRUB, on the other hand (again as heatsink said), stores it's configuration to a regular partition and reads it at every boot; this way the file can just be edited and that's it; GRUB doesn't have to be "reinstalled" every time you do something about it.

LiLo seems to have some minor problems that GRUB does not have (might be vice versa too); I have encountered one lately - when I used GRUB, changing it's configuration was a piece of cake. At the moment I'm using LiLo again, and though the installation went fine, I can't reconfigure it anymore since running "lilo" refuses to install it (claims that at least one filesystem doesn't match something, and ought to be fixed -- I'm not that sure about it, and won't "fix" anything as nothing seems to be broken). Also, when I needed to do a fresh reinstall, LiLo suddenly refused to install all right, and after 3 or 4 identical tries it suddenly just dropped in.

Some people complain that GRUB's way of dealing with partitions is difficult especially after one has learned LiLo's way; I agree, they don't match, but if one looks closely to the GRUB way (hd(0,0) instead of hda1, for example), it looks perfectly intelligent; as it's very easy to configure after spending a few minutes with the help documentation, it does not need to be reinstalled if changes are made (thus enabling you to do some automation on handling/updating the config), it just seems to be less problem-causing than LiLo (my experience) and many modern distributions use it by default..well, to cut it short, I see no reason why not to use it.

Of course LiLo has a nice name, anyway a lot better than the four other letters.
 
Old 11-15-2006, 07:17 PM   #12
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
GRUB provides its own shell that helps you find the hd number and partition number because of command complete feature. At GRUB shell type "root (<tab>". It will list all the hard drives. If you type "root (hd0,<tab>", it will list the partitions of hd0.

Like I said in my previous post, GRUB is userspace which means you can rename the device naming scheme.

One disadvantage of GRUB is it is not safe to use on public computers. The encrypted password can be seen and decrypted. LILO is best when security needs to be high.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 10:37 PM
#lilo -u to remove lilo.....what for grub ??? b0nd Linux - General 1 05-27-2006 05:09 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 02:15 PM
Lilo vs Grub - PROBLEM with lilo nelsonnery Linux - Software 2 09-09-2004 12:09 PM
GRUB or LILO? fr0zen Linux - Software 8 05-24-2004 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration