Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

lilo or grub

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
detox
Posts: 4
Joined: 2004-06-08 14:13

lilo or grub

#1 Post by detox »

Debian is standard installed with lilo. But why lilo? and is it possible to install grub? and what will be de advantages or disadvantages?

Sorry for all the questions :roll:

Detox

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#2 Post by lacek »

It is possible to install grub, yes. All you need is to install the 'grub' package, configure it (maybe the 'grub-doc' package can give you a hand here), and install it to the boot block.

Now about the (dis)advantages....
I personally don't like, thus, don't use grub, because I wasn't able to do some things in it, but it was a long time ago, so it is perfectly possible that grub already have these, or it had earlier, but I was ignorant.
Namely, the problem I couldn't solve with grub was to 'swap' the drive 'letters' at boot, so I could boot a secondary hard disk, and Windows installed on it thought it was on the primary one. It was needed for my work at that time, and Win98 was stubborn enough not to install itself to any but the primary HDD.
The second thing grub was failed to do, to follow the OS boot sequence. I mean, if the primary boot device if hdc, it becomes 0x80 in the BIOS, and hda will be 0x81. I was not able to install grub and convince it that 0x80 means hdc, thus, it failed to boot.

The only advantage of grub I can think about is that it has an editable command line. You can edit the kernel image, the flags, everything. With lilo, you may add flags to the kernel image, but you can't boot an image not added to lilo when it was installed to the boot block.

But again, when I tried grub, it was years ago.

detox
Posts: 4
Joined: 2004-06-08 14:13

#3 Post by detox »

OK thanks.

I'm going to try it anyway (just for fun :wink: ) so I can learn from it.
When grub hasn't changed I'm sure I will be reaching back to lilo soon.
When my conclusion is other wise I will post my findings here.

grz

Guest

#4 Post by Guest »

Grub is the only thing that get's installed from the new debian-installer disk right now... well, I download it a couple weeks ago, and I think that, eventually, you are supposed to be able to choose between grub and lilo, but if you were willing to set up a new system (and test the new installer while you're at it) the debian-installer should get grub up and running for you.

tgoodaire
Posts: 5
Joined: 2004-09-09 12:32

Tips.

#5 Post by tgoodaire »

You might want to try this link if you're switching from lilo to grub in Debian:

http://www.larsen-b.com/Article/141.html

It's pretty straightforward actually, but the article might come in handy.

jsumners
Posts: 5
Joined: 2004-09-14 20:23

#6 Post by jsumners »

Anonymous wrote:Grub is the only thing that get's installed from the new debian-installer disk right now... well, I download it a couple weeks ago, and I think that, eventually, you are supposed to be able to choose between grub and lilo, but if you were willing to set up a new system (and test the new installer while you're at it) the debian-installer should get grub up and running for you.
When you are prompted if you want to install grub you can choose "cancel" or "back" (forgot which it is) and will then be able to choose lilo. I was having problems with grub (always have) and had to use lilo to complete the installation on my laptop.

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#7 Post by mzilikazi »

Personally I have no use for LILO what so ever. It's rather limited in what it can do. I never was comfortable with rewriting your MBR everytime you add a new kernel. ;) When you install a new kernel (if you use Debian kernels or make-kpkg anyway) it updates /boot/grub/menu.lst automatically. It doesn't have to rewrite anything except the configuration file for GRUB. The fact that GRUB has a command line seals the deal for me. You can boot most anything w/ GRUB. If you hose up lilo.conf your screwed! You'll need Knoppix or Toms rtbt or similar to chroot into your install and fix lilo. Not true w/ GRUB. Simply edit the ofending line.

jsumners
Posts: 5
Joined: 2004-09-14 20:23

#8 Post by jsumners »

I have found that LILO actually boots the machine more consistently than Grub. Grub just randomly stops working in my experience and since I never use it I have no idea how to make it work again once it does break. So, LILO for me.

vogella
Posts: 7
Joined: 2004-09-19 08:32
Location: Heidelberg - Germany

#9 Post by vogella »

Hello,

I think the new debian installer (d-i) of the upcoming Sarge uses Grub as default.

http://d-i.alioth.debian.org/manual/en. ... 06s03.html
The main i386 boot loader is called ?grub?. Grub is a flexible and robust boot loader and a good default choice for newbies and old hands alike.
Best regards, Lars

drdebian
Posts: 80
Joined: 2004-10-09 16:17
Location: austria
Contact:

#10 Post by drdebian »

jsumners wrote:I have found that LILO actually boots the machine more consistently than Grub. Grub just randomly stops working in my experience and since I never use it I have no idea how to make it work again once it does break. So, LILO for me.
My sentiments exactly. I've had too many problems making Grub boot on software RAID1 systems, where the first disk went faulty and it refused to boot from the second one.

With LiLo, this never was a problem thanks to the "raid-extra-boot" directive, which allows multiple copies of the MBR to be written to all members of a RAID-array.

So, cutting a long story short, it's LiLo for me also.

Guest

#11 Post by Guest »

grub is the nice swiss knife you bless when troubles come if kernels and initrd are messed.

* Just 2 entries: /vmlinuz and /vlinuz.old saves you if a new kernel breaks something.
* No need to re-run lilo. Want to change boot splash-image? just copy it. Even you can do it in "hot"
* Built-in command line
* I said it, it is the swiss knife you can trust. Even you can cat a file!
* You can install it on a usb pendrive or floppy and forget it.

For the guy with raid1: you can install it on both hd's mbr. For the other one with problems swaping drives: yes, it can do it. And it is the present and future, is where linux is going, all distros are with it, it's superior tech.

And it's GNU

User avatar
Roeland
Posts: 76
Joined: 2004-09-20 12:09
Location: Groningen, NL

#12 Post by Roeland »

Well, why should you mess-up your initrd and kernel stuff ;). It's not like everybody compiles kernels on daily basis (well, not many Debian folks do so).

I'm happy with LILO and I won't use grub until my next Debian install, which probably will be some years from now ;)

Edit: By the way, since when the world got lazy all the sudden? Have heard the 'you don't need to run the lilo command after making changes, w00t' argument so many times, it gets a bit scary... Don't tell me typing one little command is too much a stress factor after configuring and compiling a new kernel... ;)

-Roeland
Science Center
Debian GNU/Linux flowing through my veins

User avatar
chimaera
Posts: 24
Joined: 2004-09-15 14:06

#13 Post by chimaera »

in fact, it's not stress, but something you might forget. and then:
"err.. where was that install disk.. mhh.. boot to recue. damn, forget to change bios settings to boot from cd. ok, well. mhh. passed the wrong device to root=. ah, it just took 29 reboots, now it's fixed!"
well. that surely would've never happened with grub for you can do just anything 'on-the-fly'. if you're updating your kernel on a regular basis and have a bunch of ditros in your system just out opf plain curiosity, grub is the way to go. but then again, well. that's all imho of course ;)

User avatar
Roeland
Posts: 76
Joined: 2004-09-20 12:09
Location: Groningen, NL

#14 Post by Roeland »

I use my PC to be productive, not to use 10 distros and to bake a kernel every day ;). Can imagine some people do ;)

-Roel
Science Center
Debian GNU/Linux flowing through my veins

User avatar
chimaera
Posts: 24
Joined: 2004-09-15 14:06

#15 Post by chimaera »

so do i, but i want to stay in touch with latest developments.. ;)

User avatar
Roeland
Posts: 76
Joined: 2004-09-20 12:09
Location: Groningen, NL

#16 Post by Roeland »

chimaera wrote:so do i, but i want to stay in touch with latest developments.. ;)
Not every new kernel patch is useful for every system and every situation, so one upgrade per stable kernel release will do. ;)

-Roel
Science Center
Debian GNU/Linux flowing through my veins

User avatar
chimaera
Posts: 24
Joined: 2004-09-15 14:06

#17 Post by chimaera »

i'm using ck-patches, which are cranked out in serveral releases per kernel release. and it's not just about kernels (in fact, i'm still running 2.6.7-ck6 for issues with cdr / nvidia / usb / wlan-ng / lirc i'm not willing to deal with atm.)

and the other thing was distros. the last weeks i tested ubuntu, slack and arch linux, for me, grub makes it very comfortable to do so. ;)

sure, if you don't do such things, you don't need to care about your bootmanager, probably you don't even care if you have one (although you would if you haven't.. well.) but if you have to touch it every now and then, grub is the way to go. at least for me.

User avatar
Roeland
Posts: 76
Joined: 2004-09-20 12:09
Location: Groningen, NL

#18 Post by Roeland »

And that, dear people, is the Power of Freedom of Choice.

;)

(I'm using LILO just to boot Debian GNU/Linux, together with FreeBSD (don't use it really) and QNX NC (booted it twice or smthn' ;)))

-Roeland
Science Center
Debian GNU/Linux flowing through my veins

User avatar
chimaera
Posts: 24
Joined: 2004-09-15 14:06

#19 Post by chimaera »

true, so very true!

just for the fun of it, let's have one of those kde vs. gnome or <anysanedistro> vs. gentoo discussions 8)

User avatar
Roeland
Posts: 76
Joined: 2004-09-20 12:09
Location: Groningen, NL

#20 Post by Roeland »

chimaera wrote:true, so very true!

just for the fun of it, let's have one of those kde vs. gnome or <anysanedistro> vs. gentoo discussions 8)
Whelp!

;)

My vote is for Window Maker 0.91.0

:D

-Roeland
Science Center
Debian GNU/Linux flowing through my veins

Post Reply