The Boot Loader Showdown 281
An anonymous reader writes "What utility do practically all Linux users use, regardless of their job or expertise? A boot loader. In this article from IBM, see how a boot loader works, meet two popular loaders -- LILO (LInux LOader) and GNU GRUB (GRand Unified Boot loader) -- and review the pros and cons of each." From the article: "Most simply, a boot loader loads the operating system. When your machine loads its operating system, the BIOS reads the first 512 bytes of your bootable media (which is known as the master boot record, or MBR). You can store the boot record of only one operating system in a single MBR, so a problem becomes apparent when you require multiple operating systems. Hence the need for more flexible boot loaders.""
more like dupeloader (Score:5, Funny)
I use CmdrTaco, works best with my old version of the beowulf cluster....
Reboot (Score:3, Insightful)
ahh (Score:4, Funny)
Re:ahh (Score:5, Funny)
That's right. It's not just for toasters any more.
Ric Romero (Score:2)
Cool. I didn't know Ric Romero [go.com] was writing for Slashdot now.
Ric Romero is an idiot (Score:2)
Wow.
Both! (Score:5, Interesting)
The solution? Install Grub on the Linux partition, and use Lilo to load it. It is rather funny watching the boot messages go through Lilo to get to Grub.
Re:Both! (Score:4, Informative)
http://www.highlandsun.com/hyc/linuxboot.html [highlandsun.com]
Or you could turn off boot sector checks in the virus protection.
Re:Both! (Score:5, Informative)
Why use LILO at all, then ? You can use mbr (http://packages.debian.org/stable/base/mbr [debian.org]), or even the dos / windows one (fdisk
Re:Both! (Score:5, Funny)
Re:Both! (Score:2)
Have you tried (Score:2)
Re:Both! (Score:2)
Which is EXACTLY Why... (Score:5, Insightful)
Call me a minimalist, but... (Score:2)
Except for one feature (Score:3, Insightful)
Re:Except for one feature (Score:3, Informative)
How about this?
grub> savedefault --default=1 --once
Use it in a script, type it by hand, put it in grub.conf, etc. Works for me.
Re:Except for one feature (Score:3, Informative)
Re:Except for one feature (Score:2)
Re:Which is EXACTLY Why... (Score:4, Informative)
Is it really that important? (Score:3, Insightful)
Re:Is it really that important? (Score:2)
Re:Is it really that important? (Score:2)
Re:Is it really that important? (Score:5, Interesting)
Re:Is it really that important? (Score:2)
I haven't used Lilo for a while (haven't rebooted any of the Mandr[ake,iva] machines I use in person for ages), but I seem to remember it wasn't as easy as it is in Grub. If you screwed up your config file, you pretty much had to use a rescue disk.
Regarding the joys of booting systems, I recently had lots of fun getting my usual workstation to boot after adding a third SATA disk.
Re:Is it really that important? (Score:2)
I can't remember what the system settings were. If I spotted the crash settings, I probably set it up to display the blue screen... But then it might be some sort of switch in the registry. It's not as if I know how to use Windows any more.
Re:Is it really that important? (Score:2)
OK, I'll bite. Is the starter in your car important? You only use it briefly (2-3 seconds), then you're motoring on down the road.
Just try doing without one, you'll see how important it is.
(I agree, though, VMware rocks.)
Re:Is it really that important? (Score:2)
A lot of modern motherboards will willingly boot off of any drive in the system and you can also look at removeable drive trays as well. And the most obvious one is multiple PCs -- it's hard not to have accumulated
Re:Is it really that important? (Score:2)
Well, the greatest utility of these things comes only handy if you're not getting the "flashes there for three seconds" boot. Simpler boot loaders probably need more tweaking in the cases when things don't just work like they used to.
For example, yesterday I installed a new hard drive and copied my shit over from the old disk. When I was done, I spammed the bootloader back to the MBR and rebooting I went. Turns out I had forgotten to update the actual bootloader menu file to correspond to my new partition
Re:Is it really that important? (Score:2)
Need LILO for VMWare (Score:4, Informative)
Re:Need LILO for VMWare (Score:3, Informative)
Please post Host/Guest OS Details as well as the version of VMWare. Just kind of curious.
Re:Need LILO for VMWare (Score:2, Informative)
Re:Need LILO for VMWare (Score:4, Informative)
Would this be error 18? How large is your partition?
The quick fix for this is repartitioning so that
Alan.
Grub works fine (Score:2)
Now, you might well be having some problems; I won't dispute that. But it seems like it's more specific to your own configuration.
VMWare has an excellent support message board; I suggest you raise this issue over at vmware.com, and be sure to include the specifics of your configuration.
Or just install any
I was going to post (Score:5, Funny)
raid-extra-boot (Score:2, Interesting)
I don't understand how GRUB can have gone so long without that feature. I know there are ways to do it (we'll call them work-arounds), but I don't want to have to work around the lack of a feature!
Re:raid-extra-boot (Score:3, Informative)
Re:raid-extra-boot (Score:2)
Re:raid-extra-boot (Score:2)
Re:raid-extra-boot (Score:2)
The raid aspect should ideally be handled by the BIOS, if not then I suppose you're screwed.
I just had to re-setup Grub on my workstation where a new disk was added on the Raid controller (used as a standard SATA controller) resulting in Grub (and the Bios) believing in one disk order and Linux in another.
Normally, Grub polls the Bios to figure out the list of availabl
Re:raid-extra-boot (Score:3, Informative)
And why in the world would BIOS *ever* handle a linux software raid setup itself?
Re:raid-extra-boot (Score:4, Informative)
If you multiboot (Score:2)
btmgr
http://btmgr.webframe.org/ [webframe.org]
Heh (Score:2)
Only Slashdot & linux users (myself included) could argue the merits of a boot loader :)
Now, having said, I'm sure someone will post a reply explaining in excruciating detail how my choice of boot loader could make or break my system. Hell, maybe you'll convince me. It'll be a hard sell though; I've used both in the last few years and, frankly, barely noticed a difference.
Correction... (Score:2)
'cuse me while I go cut/paste some of the insightful comments from the first time this story was posted...
Re:Heh (Score:2)
OS/2 users argue more about boot loaders than Linux users, and they are proud of it!
So Now.... (Score:2)
Showdown??? (Score:3, Informative)
Politically, if you must use only GPL software, then go with GRUB. LILO has a _very_ open license, but it does not meet RMS's strict and unyeilding requirements.
Other lesser known boot loaders... (Score:5, Informative)
GAG (graphical) [sourceforge.net]
Gujin [sourceforge.net]
Syslinux [zytor.com]
Comment removed (Score:5, Funny)
Neither! Luna works best... (Score:5, Funny)
My biggest problem for not using GRUB (Score:5, Insightful)
Re:My biggest problem for not using GRUB (Score:3, Funny)
I would of tested and compared them in the context of boot environments... but you're right, a confusing web site/documentation definetly translates into "subpar product"... in fact,
Re:My biggest problem for not using GRUB (Score:3, Insightful)
Or Lilo, or whatever else.
But I don't get the logic of "X works fine, however they're working on Y (labeled as X 2) which isn't done, so they aren't working on X anymore, so I'd rather use Z..."
Just say you like Lilo better than Grub, it's not like anybody cares anyway...
Re:My biggest problem for not using GRUB (Score:2)
It's more like "They consider X to be old and crappy code, and are working on Y (labeled as X 2) which isn't done, so they basically have abandoned X while X2 is not yet ready, so I'd rather use Z..."
It's poor form to drop support for your current product while its successor is not yet ready for prime-time. The professional way is to support both for one or two releases
Re:My biggest problem for not using GRUB (Score:2)
Re:My biggest problem for not using GRUB (Score:4, Insightful)
The main thing Grub has against it is that it's relatively ugly. The fact that the 1.x branch isn't actively developped is quite irrelevant. Because it works. Should it suddenly stop working, well, there are lots of other similar programs available.
Maybe I'm dense but I really don't get your concern. Are you worried you won't be able to get spare parts when your program will get worn out from booting everyday or something ?
Re:My biggest problem for not using GRUB (Score:3, Informative)
True enough... unless some new kinds of boot devices (such as SATA) come out, which might necessitate additional development...
there isn't much to add to it as it is,
There's one feature that's been sorely missing: the equivalent of lilo's -R option (boot another OS once).
With their proclaimed feature-freeze, there's not much point waiting for this...
The main thing Grub has against it is that it's relatively ugly.
And ugly it is... I especially hate the "nice" curses interface o
Re:My biggest problem for not using GRUB (Score:3, Informative)
You can probably do what you need using Grub's 'savedefault' command, eg
grub> help savedefault
savedefault: savedefault [--stage2=STAGE2_FILE] [--default=DEFAULT] [--once]
Save DEFAULT as the default boot entry in STAGE2_FILE. If
'--once' is specified, the default is reset after the next reboot.
grub> savedefault --default=1 --once
iirc some
Yaboot (Score:2, Funny)
Not just Linux users (Score:2)
While it is true that Windows 98/ME users do not use a boot loader, all Windows NT/2000/XP/2003 users also have one. Further, even when using Linux as part of a multiboot setup, the Windows boot loader is sometimes the best to go for. That is especially true when there are multiple Windows systems. In a machine with both 64-bit and regular Windows versions alongside various Linux distributions, the cleanest approach is the Windows boot loader in conjunctio
How to program a bootstrap loader (Score:5, Informative)
The reason I use LILO (Score:4, Interesting)
There's one key LILO feature missing from GRUB, as far as I know: lilo -R
This allows me to install a new kernel on a box I'm not in front of, and tell LILO to boot it by default for the next boot only. If the new kernel doesn't work, I only have to ask somebody near the machine to reboot it for me, and it'll come back up in my old, working kernel. With GRUB, I'd have to try to talk somebody through hooking up a monitor and picking the right kernel... when it's a headless colocated server located somewhere far away, that's not always an appealing idea.
Re:The reason I use LILO (Score:2, Informative)
Re:The reason I use LILO (Score:4, Informative)
Check this out: http://gentoo-wiki.com/HOWTO_Remote_Kernel_Upgrad
Re:The reason I use LILO (Score:3, Informative)
>for the next boot only.
Note the "only". If the new kernel hangs at boot, or spontano-reboots, the next reboot after that will be with the old and safe kernel. Great for remote or headless/keyboardless machines. Grub has no equivalent to this, and its a reason I sometimes still use lilo.
boot loaders are evil (Score:3, Interesting)
LILO forever! (Score:3, Insightful)
I have used lilo from the beginning of my linux adventure. I know how to configure it and I know how it works. It does everything I need it to do (which is mostly just to load linux and maybe keep track of several kernels/ distros that I am playing with.)
So why should I even spend 2 seconds trying to figure out how to use grub? Gentoo tells you to use grub by default. I say no I will always install and use lilo until grub does something that I want/need that lilo doesn't do. True if I were just starting out I would learn grub -- but that ship has sailed. Once I know how to do something I don't want to relearn it just because someone says I should.
Judge for yourself (Score:2)
Judge for yourself which is cleaner.
Personaly I think the article is one of the worst articles I've seen from IBM. Omitting features from LILO, and failing to elaborate how complicated GRUB's command line interface can actually be.
boot=/dev/hda map=/boot/map install=/boot/boot.b prompt timeout=100 compact default=Linux image=/boot/vmlinuz-2.4.18-14 label=Linux root=/dev/hdb3 read-only password=linux other=/dev/hda label=WindowsXP default=0 timeout=10 splashimage=(hd1,2)/grub/splash.xpm.gz passwo
Who cares? - You should never know its there. (Score:3, Insightful)
So the answer is to use what you're comfortable with. It's not like we're comparing Zeus/Apache, Linux/Windows, Vim/Joe- this is a boot loader. It runs for fractions of a second and then you never see it again. If it does its job, you should never even know that its there.
-M
Conclusion? The PC bios is a relic. (Score:5, Informative)
Bootloaders are very clever pieces of coding, but their presence makes it difficult for PC bioses to be replaced.
Another approach - how QNX does it (Score:5, Informative)
With this approach, there's no need to put drivers needed at boot time in the kernel. (Drivers are user programs under QNX.) The kernel doesn't need to know about disks. If you want a GUI during boot, you can have it. For embedded systems, the entire "OS file system" can be put in ROM, eliminating any need for a disk. For desktop x86 systems, there's a standard bootable "OS file system" which has all the usual disk and display drivers, the bus enumerators and plug-and-play handler, and the rest of the stuff needed to start an x86 PC. But all that startup stuff isn't in the kernel.
This is especially useful when your target is something that doesn't have a keyboard and screen. That's why QNX does this. Doing it this way cleans much startup-only junk out of the kernel.
The Minix 3 people, unfortunately, didn't get this, so their "microkernel" has more stuff in it than it really needs.
Re:DUPE (Score:5, Funny)
Yeah, but there is a big:
diff -u post1 post2
--- post1 Tue Jan 3 09:35:05 2006
+++ post2 Tue Jan 3 09:34:20 2006
@@ -1,4 +1,6 @@
-Francesca
+An
+anonymous
+reader
writes
"What
utility
@@ -125,4 +127,4 @@
more
flexible
boot
-loaders."
+loaders.""
If the authors would have been the same and the second one didn't have an extra '"' at the end of it, it would have been the perfect dupe.
Auto-dupe check (Score:4, Funny)
I'm going to download the slashcode and hack in an auto-dupe-check using diff... If you are too similar the article get's an automatic first post of "DUPE!"
Re:DUPE (Score:3, Interesting)
Exact Dupe!! (Score:4, Funny)
Notice that it's an AC that did it, too. It's actually pretty funny, in a sorry sort of way.
Re:Unwelcome guest (Score:3, Informative)
If you don't want grub, you need to *REPLACE* the MBR with something else, like LILO or plain old DOS FDISK /MBR.
Re: (Score:2)
That's a weird problem.. (Score:4, Informative)
.. because, an OS has one of two choices. Either it uses it's own boot loader, or it requires a third party one.
I don't know anything about ReactOS, but Windows ships with it's own, and always has since 95. If you installed "real" Windows on this computer, it would overwrite the MBR and get rid of Grub. But if installing RactOS does *not* do this, then it likely does not ship with it's own boot loader, so you would *have* to use Grub or some other tool to load it.
Unless it uses the old DOS boot loader but does not ship with it, which would be very weird.
In any case, you can download DOS boot disk images from bootdisk.com [bootdisk.com] and fdisk /mbr, no problem. (if you don't have a flyppy drive, just use the image to make a bootable CD.)
Re:That's a weird problem.. (Score:2)
memdisk is a part of the syslinux package. You can write a rule for it in the grub config, or bootstrap it from the command line. Just use
root [insert drive,partition here]
kernel
initrd
boot
and voila! now he can fdisk
Another option, is boot up into linux and execute:
dd if=/dev/zero of=/dev/[insert harddrive here] bs=512 count=1
it should do a fine job of nuking y
Huh? (Score:2)
Or a windows CD? If you can't find a single soul who will loan you a windows CD...I mean, come on.
Linux needs to makes it as easy to remove these bootloaders as it is to install them.
So you want linux...to reinstall the Microsoft bootloader for you? Riiiiiight.
Re:Huh? (Score:2)
Maybe it's time I get her a new computer.
Re:Unwelcome guest (Score:2)
You'll note that GRUB and LILO both have this feature. From the LILO documentation, for example:
... of course, if you are installing a new OS from scratch, this would do it too:
Of course, you could have figured that out from searching the documentation or *HORROR* using Google to look for it, so I assume you knew all that to begin wit
Doesn't work (Score:2)
Re:Unwelcome guest (Score:5, Insightful)
Did you wave the dead chicken ?
You forgot to wave the dead chicken didn't you ?
Bah, newbie...
Re:Unwelcome guest (Score:2)
Still read
Re:Unwelcome guest (Score:2)
You didn't hear it from me though!
Re:Unwelcome guest (Score:2)
That's the command in Linux to wipe the first two sectors of the disk, which should adequately destroy the bootloader. Leave off the 'count=2' to wipe the whole disk for good luck.
I've never had trouble using a Windows XP install CD, deleted all partitions, and installed to the 'empty space', it seems to remove the boot loader for me.
Re:GRUB! (Score:3, Informative)
Until they support USB keyboards that is. Maybe the bleeding edge versions do now but everything shipped with a distro lately does not. in LILO I can use a usb keyboard, GRUB for some reason decided to do things differently and ignores USB keyboard input.. which sucks big time on a new machine that has nothing but USB.
Re:GRUB! (Score:5, Informative)
Re:GRUB! (Score:3, Funny)
Re:GRUB! (Score:3, Informative)
Any bootstrap loader, be it GRUB, LILO or NTLDR.EXE, must necessarily use the BIOS to interact with the hardware, because no drivers are loaded yet.
Your BIOS setup should have an option something like "legacy USB keyboard" which takes the keystrokes from the USB keyboard and makes them appear to have come from the "old style" keyboard instead. Enable this and G
Re:GRUB! (Score:2)
Re:GRUB! (Score:3, Insightful)
Re:GRUB! (Score:3, Interesting)
The fact that you don't need to remember to re-install your boot loader every time you change the slightest thing is a major bonus though.
It's not that hard to remember. And if you forget, it's trivial to fix. Switching to Grub for that incredibly tiny minor microscopic inconvenience is just curing the disease by killing th
Re:What I would like GRUB to have (Score:2)
Re:LILO v GRUB (Score:4, Informative)
Re:LILO v GRUB (Score:2, Informative)
peace
Re:Boot Loader Eye Candy? (Score:2, Informative)
Anyway, check out Bootsplash [bootsplash.org], it does what you're looking for.