The Boot Loader Showdown
Francesca 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."
Haven't we all gotten past the whole LBA/CHS/Large hackery, and doesn't the boot loader on your Linux system "just work" these days? I can't remember the last time I even had to look at it. How about an article on something timely, like LVM, or 1394, or any of the VPN packages out there? What's next, an article on fdisk?
I want to delete my account but Slashdot doesn't allow it.
What kind of study would fail to include THE single most popular and widespread bootloader in the world?
That would be...Windows Boot Manager.
*Bangs head on table* Now I wish I had this page when I tried to install Gentoo over the weekend. Call me dumb but I couldn't get it to dual boot with Grub. Worked great with Lilo tho :)
Its just a shame you have to rewrite Lilo stage 1 when you change stuff. Though I've never really got the hang of the Grub command line (why -1 for partitions, eh?!) so I'll stick with Lilo - its easy enough with a boot or livecd to fix anyhow.
Grub's quicker though isn't it?
Dug
There are pros to Lilo?
It's such a heap of crap. The only reason it's still used is because people were brought up on it.
I'm sitting here in Louisiana - in the path of the storm - and I'm perfectly happy to talk about boot loaders instead of caving to terrorism.
I use AMD64 Gentoo, dual booting with Windows XP Pro. Of course, LILO doesn't work with AMD64, so I have to use Grub. The bad part here is that Grub hangs whenever I try to get it to load Windows. I don't think it likes a 32 bit kernel image. So.... I have to go into the BIOS and change primary boot drives everytime I want to switch. I want a bootloader that can do that for me, or at least a way to make Grub do it. (Of course, I never really boot into Windows...)
I logged in as root and got:
/sbin/lilo -v -v
/sbin/lilo -v -v
;-)
[root@localhost root]#
Then I typed:
#
And nothing happened... The entire line looked like:
root@localhost root]# #
What is wrong here?
LedgerSMB: Open source Accounting/ERP
then microsoft could write a winLoader to load windows if you wanted to dual boot your linux machine :-)
seriosly for anyone who uses linux clusters or is otherwise uninterested in Dual boot, it makes sense to flash you roms and get it over with.
Some drink at the fountain of knowledge. Others just gargle.
C'mon, its still more related to computers that most of the recent shit on /.
Some of the info on there was really useful to me, btw. Maybe if it helps a few people get into using Linux, etc, then it can only be a good thing, no?
Dug
Installing Windows (XP, anyway) does not overwrite GRUB in the MBR.
I've played around with Ubuntu and now want to get all my disk space back. I'm running Windows XP. How do I uninstall grub safely so that the computer just boots into WinXP?
Sounds like a stupid thing, since no one would ever want to uninstall linux, but why is this information so hard to find?
Personally, this makes it hard for me to tell friends to try out linux. Because trying it out may mean having grub (or lilo) installed forever...
Help! I'm a slashdot refugee.
A problem I see is that GRUB has too much brains for its own good. It needs to understand all filesystems it can possibly boot. If you upgrade your foofs to a new version that can be misunderstood by GRUB, use an exotic fs or even the newest donation of IBM/SGI/whoever, you run into deep shit if GRUB tries to read the files in a way even minutely different from the newest spec.
Bootloaders of the past (hell, even I wrote one that was primitive but worked) had the selection and actual loading separated. You had a piece of code inside the partition table (and perhaps track 0), which in turn passed control to the actual bootloader of the OS which you selected. This approach was a lot better where dual-boot configs are concerned.
The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
Coming from a Mac / { 68k, ppc } background, I can't understand why you people put up with BIOS.
A while back, someone set up a PXE booter on our network for our PCs - but some machines weren't able to boot from it - they would hang at the PXE menu of images to boot from.
Turns out that some of the machines had a few extra bytes taken from the precious 640k limit that PCs have been saddled with, and the PXE menu was just large enough to run out of memory.
On a 512MB computer.
BIOS a bloody joke, and you should all be ashamed.
What alternatives are there to BIOS on the x86 architecture? Are there any OpenFirmware based PCs?
Just a thought.
Hope this helps.
P.S.: Yes, I know you can use the Windows Boot Manager to boot Linux, but frankly not many people do, because its a major pita to say the least.
this text is not here.
sum.zero
Given all the concern with rootkits, backdoors, worms, spyware, et al, it would seem that a nonflash-ROM bootloader could provide a secure micro-OS that in turn checks and helps maintain the integrity of the main OS. A boot-time diagnostic and some key read-only API code segments (encompassing access to crucial functions such as encryption, hash calculation, memory access, disk access, UI access, network access, etc.) would help ensure that the main OS was not compromised and was less susceptible to malware.
A small OS, even one with a GUI, can fit in less than a MB. Perhaps a heavily secured, stripped-down copy of some stable version of *nix could provide a high-integrity read-only core underlying a more sophisticated, extensible, and flexible full-featured OS.
Two wrongs don't make a right, but three lefts do.
Hey, it just occurred to me: shouldn't GRUB be the "GRub Unified Bootloader," to keep with the tradition of recursive/redundant acronyms?
Evil is the money of root.
My bios won't let me boot from CD. Can I install grub and use that to boot from CD?
Reak geeks still use shoelace...
(S(SKK)(SKK))(S(SKK)(SKK))
$ file /boot/bzImage
/boot/bzImage: x86 boot sector
Murder? Is this more intelligent design bullshit?
How about distilling this article into a HOWTO for a "bootable Linux factory"? I keep a "reference Linux", with just the basic (Debian) system installed on its boot HD (EIDE /dev/hda[1]). When I want a new one, I attach a second HD to the seconde EIDE bus (EIDE /dev/hdc), so data is transferred across the full bandwidth of both buses. I fdisk /dev/hdc into boot and swap partitions, then tar /dev/hda1 over to /dev/hdc1 . So I've cloned my drive. But I still have to config LILO or GRUB to install into the MBR on hda. Which I always screw up (with LILO, anyway), because lilo.conf doesn't have clear docs on how to install a bootable kernel sector to a volume other than the one the current kernel image booted from. But it does do so.
Maybe I could dd the first sector of hda to hdc, which would clone the reference MBR. But I'm not sure that works if the disk geometries are different. And sometimes I do want to tweak the LILO configs for the new platform, including VGA settings etc.
So who can refactor this article to a HOWTO for that extremely helpful case, so I can look for it in six months when I need to do this process again, but have again forgotten the details?
--
make install -not war
How do you figure that? Provided you have a machine with a classic BIOS (I've never touched an EFI machine), the processor is started in x86 real mode. LILO is perfectly runnable under these conditions.
"The Devil does not know a lot because He's the Devil, He knows a lot because he's old." -- unknown
Just for reference. fixboot fixes something else (NTLDR? first sector of booting partition? I forget...).
You can hold down the "B" button for continuous firing.
No text.....
LedgerSMB: Open source Accounting/ERP
me too! you'd think IBM of all companies would use it...
I wish that the article had more details. Try adding a few scsi cards or fiber channel hbas to a box and see how well any bootloader likes it - it probably won't - your device names will have changed. Uusually devlabel works, but some RH installs I've seen, still use /dev/xyz# for your swap partition (makes sense, because devlabel looks at information in your filesystem). When you add a "disk controller" card, this device name changes and you boot without a swap partition.
If you log in as root, you might see a prompt that ends in #.
:-)
If you type # in a Bash shell, the rest of the line is handled as a comment.
But it is convention to tell users to type a command and start it with a # to denote root login. If you type the # however, Bash interprets it as a comment and doesn't do anything
LedgerSMB: Open source Accounting/ERP
Yaboot.
Not much of a choice there.
If somebody's heard of another PPC (NewWorld) boot loader, let me know.
~You laugh because I'm different, I laugh because I'm insane~
GRUB rocks. Its just too easy to render a computer unbootable with LILO (not permanently, of course; but it's still annoying). Why should I have to rewrite the boot sector just because I want to change what I call a particular boot option?
Interesting to hear of people's GRUB problems with Windows - I've never had an issue with this. My dual boot machines have been 98SE or XP Pro alongside Red Hat or Fedora. GRUB setup works out of the box. I've got to admit I've only used multiple partitions on one disk though - never done it with different OSes on different disks.
#DeleteChrome
My GOD you are unimaginative. It's so upsettingly obvious for everyone outside the x86 world that the lot of us are just plain laughing when this issue is brought up.
For a weekend project, I was planning on rebuilding the OS on a spare PC I have.
I was just about to install a flexible boot loader. Tell me more about your better BIOS. I'm sure I'll be enjoying it this evening instead of the dumb old boot loader I was about to install.
Oh wait, you weren't solving a problem, you were merely suggesting an entirely new platform. Oh, oh ho ho ha ha, silly me. Yes, honestly, why isn't it that all these stupid people don't develop a completely new architecture to deal with every nuanced problem that arises? Surely, sir, you are a genius.
Okay, lets all say this together......
Slashdot is NOT CNN!!!
Looks like someone needs to up their dosage;)
Not to sure if you noticed the subtitle for this site... "News for Nerds" as in tech news, its not the freakin weather channel.
GRUB vs. LILO
As stated at the start of this article, all boot loaders work in a similar way to fulfill a common purpose. But LILO and GRUB do have a number of differences:
LILO has no interactive command interface, whereas GRUB does.
LILO does not support booting from a network, whereas GRUB does.
LILO stores information regarding the location of the operating systems it can to load physically on the MBR. If you change your LILO config file, you have to rewrite the LILO stage one boot loader to the MBR. Compared with GRUB, this is a much more risky option since a misconfigured MBR could leave the system unbootable. With GRUB, if the configuration file is configured incorrectly, it will simply default to the GRUB command-line interface.
Here's one for Grub:
1. GRUB has one of the most difficult to understand syntaxes and makes you jump over hoops to get the thing working. Unless you want to get lost in docs. (Lilo just makes sense by looking at it).
...not even for comic relief?
IMHO that's one HTR summary, IYKWIM.
I had to read it twice just to soak it all in! LMAO
Anyway, CUL8R because I've got to GTGTTBR and then GBTW so I can hang out with my GF L8R.
Although it is usually used for oldworld machines (and by usually used, I mean 9 out of the ten people who use it use it for such) Quik can be used on new world machines. Open firmware rocks!!
To load Windows, GRUB just chain-loads the bootloader on the primary Windows partition (what Windows will use as C: drive). That's actually 16 bit code, even on AMD64.
WinXP 64 bit ed may be different, but your post suggests you're using the basic XP.
If I recall correctly a definition like:
root (hd0,0)
chainload +1
should do the trick (adjusting root to match your win32 c: ). I use Fedora, so to be honest it "just works".
*HOWEVER* it sounds like you're trying to boot XP off a secondary disk. If XP thinks that disk is the primary disk (ie you installed XP then rearranged the disks), it'll get really confused when you load its boot sector, and will fail to boot. I don't know if it's an easy thing to fix - I've always just installed windows where I expect it to live (it installs quite happily on a secondary disk).
You might be able to boot the XP cd, run "fixboot" and "fixmbr" from the recovery console, then re-install GRUB from a Linux rescue CD.
Not everybody missed it. I thought it was funny, even before reading all the comments by the people who completely missed it. :)
Comment removed based on user account deletion
Good luck Geoffry. This is the nightmare we all feared the most.--Jim from NW FL.
If you want your life to be different, live it differently.
Comment removed based on user account deletion
When Linux doesn't need to load "GRUB" or "LILO" but can just load "the boot loader" it'll be one more step in the right direction. Having a Proper Name for every thing in the OS is so annoying. I realize that a lot of people covet the fact that Linus (and OSS in general) have lots of choices. That's great. But realize that if you want to bring in Windows people, having two or three of everything, and giving them all their own names, is just tiresome. Maybe what I am saying isn't so much that you need to kill off one of the boot loaders. All I'm saying is that a distro that wants to bring in newbies should not have any proper names for any piece of software except the name itself "Linux For Users Of Windows". Everything else is just "the boot loader" or "the window manager" etc. At least when presented to the user. I mean if in the dev community you want to talk about GNOME or KDE or LILO or GRUB or whatever, that's fine. Just leave the windows user easing into the Linux and OSS world *out of it*.
Once upon a time computer hardware was rather expensive. Spending as much as a decent used car would cost on a 2nd or 3rd box to run another OS wasn't a practical reality for a great many.
But today? A rather high powered machine can be had new for a couple hundred. Add to this fact that 99.9999% of users who want/need multiple OSes have gone through a few upgrade cycles already and thus have hardware otherwise doing nothing...and it quickly becomes apparent that optimizing a system to handle booting multiple OSes is nothing but a complete and total waste of time.
If you want to multi-boot for some geek fun, more power to you, but so far as practical use is concerned there is absolutely, possitively, zip, zero, zlitch use for it. This story is front page news worthy...how exactly?
My
After all, Apple is switching to Intel... ;)
Anyone remember XOSL? I thought it was great.
Unfortunately the Open Source model didn't work
out so great for it:
http://xosl.sourceforge.net/manifesto.html
No longer active..
Mirror of the Original Site:
http://www2.arnes.si/~fkomar/xosl.org/
We're talking about real computers now. Your toy is so cute... maybe you could play with it outside.
Primary boot loaders are where the first stage of the boot loader is installed on the MBR (per the previous description). Secondary boot loaders are where the first stage of the boot loader is installed onto a bootable partition.
Primary boot loaders are where?
Secondary boot loaders are where?
The author's usage of "where" here is very odd. I had to read these sentences several times to figure out that the author wasn't telling me that both of these loaders are where the first stage of the boot loader is installed.
I would definitely have preferred something human-readable like "Primary boot loaders have the first stage of the boot loader installed on the MBR...."
Writers: Don't use "where" this way... please!
Grammar police - over and out.
-- thinkyhead software and media
I think they better contribute the Boot loader article at Wikipedia instead duplicating efforts
The author says "Unlike the Linux boot loaders, the majority of Windows boot loaders will not allow you to load Linux."
o ft Windows 2000 Professional" /fastdetect
I don't know what he calls a majority, but the NT loader (used by Windows NT, 2K, XP, 2003) can boot Linux. It's just that Microsoft is being a pain about it. You have to first dd the first 512 bytes of your partition, save those to a file, and create an entry in boot.ini which points to that file.
For example:
dd if=/dev/hda1 of=/mnt/cpart/linux.mbr bs=512 count=1
[Boot Loader]
Timeout=5
Default=multi(0)disk(0)rdisk(0)partition(4)\WINNT
[Operating Systems]
multi(0)disk(0)rdisk(0)partition(4)\WINNT="Micros
C:\linux.mbr = "Linux"
WE'LL ALL BE LAUGHING WHEN THEY FISH YOUR BLOATED CORPSE OUT OF A SEWER DRAIN! ENJOY YOUR STORM, SLASHBOT!!!
# o reply to other people's comments instead of starting new threads. # Read other people's messages before posting your own to avoid simply duplicating what has already been said.# o reply to other people's comments instead of starting new threads. # Read other people's messages before posting your own to avoid simply duplicating what has already been said. # Use a clear subject that describes what your message is about. # Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be moderated. (You can read everything, even moderated posts, by adjusting your threshold on the User Preferences Page) # If you want replies to your # Use a clear subject that describes what your message is about. # Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be moderated. (You can read everything, even moderated posts, by adjusting your threshold on the User Preferences Page) # If you want replies to your
Yeah, Windows users use the NTLDR on all NT-based systems. In fact, each version of Windows actually ships with two different versions of the loader. One version is for the setup/install process that loads the txtsetup portion. The other version is what displays the boot menu (or skips it) depending on configuration.
I think most of my bootloader issues stem not from the inadequacy of bootloaders themselves but from the myriad different slightly incompatible partitioning tools, none of which seems to get everything quite right. To this day only LILO can load linux for me (GRUB installs just fine and then can't find the right drive to read the menu.lst from) and I can't complete a windows install because it can't understand the partition scheme -- eh, who needs it anyway. Both bootloaders work great as long as the disk is set up right, as far as I've been able to tell; GRUB is preferable for boot-time flexibility but LILO seems to be more tolerant of my crapped up partition layout.
... is there anything which just works?
I would guess that this type of problem is quite widespread; it seems that there are a multitude of ways to get in trouble with most of the partition tools available currently. Some of them still seem to have a hard time dealing with large disks on older BIOSes, some are incompatible in varying degrees with the way Windows wants things done, some will report problems without offering solutions, and some don't see any problems at all (if only Windows and Grub were so blind.) I've tried ranish, parted, fdisk, cfdisk, sfdisk,
I use GAG: http://gag.sourceforge.net/
It's awesome
Grub *seems* to be undeveloped but some brave guys are developing grub-2, which looks much nicer...
http://www.gnu.org/software/grub/grub-2.en.html
I don't have the links, but Google is your friend:
/boot partition if it doesn't natively support your / partition.
XOSL -- Xtended Operating System Loader
Pros:
- an actual GUI in a bootloader
- support for loading keystrokes into the keybuffer, which gives it indirect support for simpler keystroke-based bootloaders like Lilo -- it can "type" in a kernel name for Lilo to load.
- relatively easy to install from Win98 -- I believe it can even use a FAT partition to store its stuff on.
- Password protection, can boot a default entry after a timeout.
- Entirely configurable from inside the bootloader -- and it's user-friendly, due to the built-in windowing system.
Cons:
- Not much direct support for anything. While it can load Linux through Grub or Lilo, and it can boot CDs through SmartBootManager, it's really a very simplistic x86 bootloader with a very advanced GUI.
- Support for booting a default requires a timeout, meaning that 90% of the time, when you're just booting the default OS, you have to wait an extra few seconds or press a keystroke -- and if you don't want to boot the default OS, you have to hit a key at just the right time to select a different one.
- Doesn't seem to be configurable outside the bootloader, meaning if you download a howto on configuring XOSL, you have to print it out and reboot in order to configure.
GRUB: Grand Unified Bootloader
Pros:
- Only bootloader I know of that supports the Multiboot spec, which unfortunately is a "standard" supported by only one bootloader (Grub) and one OS (Hurd) -- but it's still pretty cool that Grub could, in theory, insert kernel modules on boot, eliminating most initrds.
- Contains a built-in commandline and actual FS support, so a mistyped or forgotten menu entry is no problem -- type it in manually to boot, then fix the menu entry from your main OS, not a rescue disk.
- Powerful menu system -- the "configfile" command allows for multiple nested menus. Password protection.
- Config file is readable an Unix-ey, and is a plain Unix text file parsed directly by Grub -- no need to type a command after each kernel update.
- Supports booting from PXE (giving multiple netbooted images as a menu)
- Supports booting from CD, allowing an easy menu to access multiple kernels and tools like memtest86.
Cons:
- Like XOSL, it lacks actual support for booting from CDs or net. You can install it to a CD or Net, in which case you can probably also boot stuff from the hard drive, but if it's run from the hard drive, it can't boot CD or net.
- Lacks XOSL's keybuffer feature (which is probabyl unique), meaning if you want to use SmartBootManager to boot a CD, you will see the Grub menu, and then the SBM menu.
- Since it groks FSes, you may need a separate
- Commandline, while useful, really only protects you from typos in grub.conf. It doesn't protect you from forgetting to install Grub to the MBR in the first place, or reinstalling if the stage 1.5 files got physically moved around.
- Like XOSL, booting a default requires a timeout.
NTLDR -- NT Loader
Pros:
- Already installed on Windows NT based OSes.
- Supports NTFS, and can boot most x86 boot images if they are available on the boot NTFS partition.
- Plain-text config file.
Cons:
- No native support for anything but NT and chainloading (x86 boot images)
- Menu system is bad. It seems locked into a 30 second timeout, and like XOSL and GRUB, you have to have the timeout to have a default.
- No native support for booting other partitions -- this can be accomplished by putting Grub or another bootloader into an image file, but it's not a trivial process, especially considering you have to redo it often.
- Not open source. It has limitations, and you can't do a damn thing about it.
Lilo -- Linux Loader
Pros:
- Dirt simple. No flashy menus or windows or FS support -- it just loads a kernel and goes.
- Plain text config file, with a simple command t
Don't thank God, thank a doctor!
Great features, use this one myself since Win2k almost randomly picks boot and system partitions if the disk's already formatted and has readable data on it.
Not sure if Lilo can do this, but it's saved me *many* headaches and allowed me to keep my rarely used windows config intact.
Need to follow Window's crazy "Rules" as far as partitioning and drive config? Not really.
on 8/26.
How have things changed over the last year when it comes to booting from usb pendisk or hard disk whatever?
Every time I try it, it's still not quite there. For instance, I can boot knoppix 3.9 from my usb cdrom but once it loads far enough it can't find the usb cdrom and loses track of it's filesystem consequently. That always bugged me considering it can boot from it just fine. I'd love to have a rescue usb pen drive that had both windows and linux bootable rescue installations available. I've never been able to pull it off.
The man who trades freedom for security does not deserve nor will he ever receive either. - Benjamin Franklin
This is like asking which people prefer more vi or emacs, or Captain Picard vs. Captain Kirk.
Expect all the real nerd freaks to come out of the woodwork for a nerd factor of 9.7 on the nerdoscale.
There's no need to be looking around for an OS to load. The current OS should be incontrovertably the OS to load. Want to load another OS? Copy its boot process over the current one. In the same vein, programs shouldn't be looking around for settings, for they can be quickly recompiled in.
'Tech News' is an oxymoron. No piece of technology 'big' enough to make the news is actually new. Meaning that tech news can only be about someone re-inventing the wheel three years ago. Anything with actual news value (Microsoft sueing someone, Google turning/not turning evil, Linus Torvalds saying something (anything!)) has little to do with technology.
Man is a slave because freedom is difficult, whereas slavery is easy.
There is no comparison between GRUB and LILO. However, I have had problems with GRUB booting Windows, mainly freezing after I selected Windows to boot. This was when I was using an add-in hard drive controller, though, so maybe that had something to do with it. If I use the built-in controller, everything works fine. I read all the docs and just couldn't configure it to boot Windows off of my add-in controller. That was a while ago, so maybe the situation has improved. Still, GRUB is awesome.
Seems like a college Freshman's first essay on anything computer related. Seriously. Its well put together, simple, and consise, without actually doing anything.
Who is this that even the wind and the waves obey Him? Surely this computer must submit also!
An overview of some boot sectors and how to write your own:
http://alien.dowling.edu/~rohit/rg007.html
Not just Americans, either, but poor black Americans. Anyone with the means to get out has already fled. The only folks that are left are the 1/4 of the population that do not own cars.
Reality check: Ain't gonna be no drowned, white mofos in Noo Orlins. They drove the SUVs out.
RealChex Too: Gulf Coast oil platforms provide 15% of domestic oil. Noo Orlins's ports provide 1/3 of all oil imports to the US. Expect $70 a barrel by Tuesday.
news for nerds?
Having rebuilt a multitude of x86 hardware and fought several times with the oddities of the PC legacy, the choice between LILO and GRUB is a no-brainer to me.
... and you need to get into a running Linux system to fix the boot loader "settings". If the hardware is unsupported by the live CD you have at your fingertips (e.g. MegaRAID) you are royally screwed up.
...), you can just try around like root(hd0,0) ... root(hd1,0) ... etc. until you find your partition.
... functionality with which one can select an image to boot into just once. If this fails and you remotely reset the server, it boots back into a known good state. Very handy to try dangerous changes to a remote server.
Every now and then, after changing/reordering hard drives (from on-board to off-board etc.), changing the controller etc. LILO might stuck somewhere like LI or 0101010101 or
With GRUB, as long as the stage 2 gets loaded, you can always change the settings manually from within a minimalistic command line. If you do not know which drive gets which number from the BIOS (0x80, 0x81,
The only reason I kept LILO on some headless servers co-located at some distant places was the lilo -R
Now that GRUB also provides this option with grub-reboot and GRUB can also be set up with a nice graphical splash screen, there is no reason why I would ever want to install LILO.
Mark
back when i had IDE hard disks (before 'ohhh sata hard disks sound cool'), all was well in my sheet metal black case, LILO nestled neatly in the MBR dual booting slackware and windows. now with a sata disk for windows, and a IDE disk for slackare (as well as an empty sata disk meant for linux, if i could omly figure out how to work the damn thing on linux!!) i now have LILO on a floppy, and take it out when i need to boot windows.
a sweet bootloader for OS X?
i mean, it's probably known that the OS X system has the ability to butt into a pseudo loader screen if you hold down option on boot up. this give you a nice blue screen with the icon of, say, OS X or a cd or OS 9 if you have it installed. it shold be pretty easy to extend that, right? I mean, i want a blowfish icon showing up for my open bsd partition, and maybe a penguin for linux. Try as I might i cannot seem to find any documentation on setting that up, or writing a program to do it for me. If i have to delve into the open firmware guts i can, but it seem slike such a waste to overlook this nice built in bootloader for 3rd party programs.
Look out honey cause I'm usin' technology
Ain't got time to make no apologies
It's a simple choice, really:
Grub:
1) shutdown -r now.
2) Hover over console, hoping not to get distracted during the bootloader prompt. Maybe we need to bump that timout a bit higher?
Lilo:
lilo -r ; shutdown -r now => go get coffee.
What I did was write the boot to linux on a CD and left the boot to my Windows xp and 98 systems alone then a BIOS switch to look for the boot CD first. No linux CD it boots from the hard drive MBR. This avoids messing up the MBR. Downside it is hard to get the CD in the drive when first starting the computer, sometimes I just put the CD in and restart from XP. The command line to make the disk is /sbin/mkbootdisk do a google search for details.
I have 4 OSen on two disks (2 Linux distros, Windows XP, and NetBSD), and grub works fine booting all of them.
Hail Eris, full of mischief...
E pluribus sanguinem
...it is. none of this fancy text interface crap, just a line of text asking me what o/s I want before it automatically gives me my favorite. Don't remember my options? just hit tab...
It's really not that hard to figure out...
-everphilski-
- Install Linux on any free partition on any drive -- during the install process, dont bother installing a boot record or boot sector anywhere.
-
Copy grldr.exe and menu.lst from http://grub4dos.sf.net/ into c:\ .
-
Edit c:\menu.lst to point to the correct partition, directory, and filenames for any/all of the kernel and initrd's you installed on the linux partition:
-
Addto c:\boot.ini .
Done. Notes:It's a BIOS! It's a bootloader! It's a Forth interpreter! It's a low-level hardware configuration system!
It's faster, more flexible, and more reliable than all the other crappy-ass, x86-specific BIOSes and bootloaders in the world. And hey, it's an open specification, with two closed-source reference implementations, a slimmed-down PPC open-source implementation from IBM, and several other works in progress, open source and not! So get off your duff and get to it, man!
Anyone tried Syslinux to compare with?
It should be noted that Grub doesn't speak USB, but LILO does. I installed Grub only to find that I couldn't type anything at the prompt. :-(
No current FAQ, and documentation is "under development". However the CVS changelog indicates it is under active development by a number of people (Vincent Pelletier, Vesa Jääskeläinen, Yoshinori K . Okuji, Hollis Blanchard during the course of August to give credit where credit is due). The recent focus seems to be on the sparc64 platform. Has anyone been adventerous enough to actually try to install and use it in an x85/AMD64 environment?
There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
I for one use open firmware, if my open disk goes cuputs it almost impossible for it not send me to crApple Os 10
There's no need to be petty just because somebody has pointed out that other platforms provide better solutions to low-level booting than your own preferred platform.
Personally, I use x86 daily as a laptop, but far prefer Sun's OBP as a boot environment. Being able to set "auto-boot? = true" (or false), "diag-level", set a list of boot devices to try, in order, and failthrough until one works, set the tty settings of the parallel port (or, these days, the Lights-Out-Management subsystem) for remote console access, and countless other features.
An earlier post from myself showed that I managed to get an x86 system (with a patched GRUB) to boot Windows/Linux/Solaris on demand, remotely, but I can't find a vendor which supports this, I used a patched GRUB. The x86 BIOS has no concept of control of the system, from low-level testing, network probing, SCSI probing, etc, etc.
Don't knock what you don't know.
Author, Shell Scripting : Expert Re
Grub can't boot from CD or floppy (please correct me if I'm wrong).
I have a computer with grub as a bootloader. The BIOS in that very computer is a bit special in that it doesn't appear to be able to boot from a CD (it gives an error on a perfectly good CD drive). I would be so thrilled if I could boot from a CD using grub like I could do with lilo.
Of course, the best possible bootloader is something like Open Firmware, found on Sun and other commerical Unix workstatsions, as well as PowerPC Macs. It has filesystem support, lets you load things via TFTP, supports net booting, lets you browse the full device tree, etc. It even gives you a complete stack-based programming enviroment called Forth, so you can make custom menus and load them on any machine on a LAN via the aforementioned TFTP.
Best part is, it's always there, since it's built into the hardware. x86 folk don't know what they are missing...
Fuck offtopic or troll, that's FUNNY!
As some have written, ditching bios will in the long run be good.
I was surprised the FreeBSD bootloader did not come up. It worked well for me when triple booting.
Options are nice, I wish some Linux distro's would give three options for boot loaders.
I mean some give you 8 options for text editors.
Also - how does Mac OsX do it? Do they utilize the FreeBSD or do they do something completely different?
I don't think i'd be brave enough to try *anything* in an x85 environment, ;-)
And I use the NT Loader as my boot manager to switch between Windows XP and Gentoo Linux. This makes my life much easier when I format and install Windows every few months, to keep it clean and slim. Well, I do not need to do this to my Gentoo Linux! :)
w00t
Please.. Shouldn't you kids be out on a date tonight?
you must be pretty fucking dumb
it couldn't be much simpler
1) Your analysis is based on bad assumptions so your result is way off. 2) You're a sick bastard for fucking a horse.
Clearly x86 BIOS is dying
Who was being petty? I was responding to a guy who was scolding someone for using a boot loader instead of coming up with a new BIOS. I was being reasonable. If you figure out who was being petty, think about letting me know... then think about whether or not I care.
The best thing about grub is that as long as it's correctly loaded onto your MBR (not particularly difficult) you don't really need a config file at all. Anything which can go in the config file can be typed at the command-line. That's really useful in a bootloader, which otherwise can be particularly difficult to fix when you make a boneheaded mistake. GRUB has saved me several times with this feature. It's also handy when you want to boot into a different runlevel or whatever, it's easy to edit the kernel parameters before booting.
/sbin/lilo to update the MBR.
The other best thing is that you don't need to do much when you do something like install a new kernel or initrd; just update the config file (and you really don't even need to do that, see above). With Lilo you have to remember to run
The worst thing about GRUB is that it was written for the Hurd, and has a Hurd-centric view of disks which can be difficult to work with in other operating systems.
I hope there are not abunch of newbies scratching their heads now over what they've done wrong.. :) .. And there should be a "table=/dev/hda" at the end of the "other" definition too, ..
Cheers...
$HOME is where the
-- silver_p
My money's on GRUB! Go GRUB!
The article does not discuss:
SuSE has a crazy gfxboot image instead of the conventional splash image. The worst thing is that it is least documented portion of SuSE. Perhaps SuSE does not want the users to change its lizard image...
If the BIOS' architecture was good, then there would be no need for boot loaders: the BIOS would take care of loading the proper operating system. Each hard disk should have a dedicated space on them for describing O/Ses:
-sector start and size in sectors of the kernel loader
-name of the O/S
-parameters (types and values)
The actual parameters selected by the user would be passed to the kernel when the kernel's 'main' function was called.
Furthermore the BIOS should start in 32-bit flat mode.
We are in 2005, our graphic cards can do 25 million polygons per second, yet our BIOSes boot in 16-bits and can't manage modern disks...
Personally, I prefer LILO because I prefer the way it handles things. The config file is straight forward and most importantly, doing remote kernel upgrades is a lot less prone to failing with LILO's -R option.
/ Booting-once_002donly.html#Booting-once_002donly
I do note that GRUB has finally added a "boot once" option, as documented here:
http://www.gnu.org/software/grub/manual/html_node
I think this is a good example of what could be improved in GRUB; having to set the next-boot-default by an index number in the config file rather than using the nice label. UI does matter.
People complain that one has to run 'lilo' after updating the kernel, etc, but they are missing the point of why that is good; lilo does all kinds of sanity checks. With GRUB, sure you get a menu for when you've goofed something in the config file, which you typically find out when on the next reboot. But that menu doesn't help much when the machine is 600 miles away without console access.
Guide a non-linux person over the phone through GRUB's menu? No thanks.
Anything is possible given time and money.
I wonder if there are any statistical studies to prove that exposure to MS software contributes to a higher frequency off off by 1 errors? My post seems to be a prime example. ;)
There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
Because complexity is the enemy of reliability, as Alan Robertson likes to say.
LILO is simple. Therefore, beginners find it frightening and cannot use it. They need the complexity of GRUB, because they are not knowledgeable enough to use the simpler tool. Pro carpenters don't need to lug around heavy, expensive, laser-guided miter saws that require a 120 VAC infrastructure, because they can cut a true angle with a simpler toolset. That makes it possible for them to do more things and for their methods to be more adaptable and more reliable.
Rewriting your BIOS, of course, is even better than LILO. But again, not for the n00bs.
GRUB has its place. That place is not in the hands of experienced professionals.
This (grub4dos) 'just worked' for me -- and I was in a position where I had to be able to recreate the setup remotely if it went through a complete reinstall. Disclaimer: I'm the same guy who posted it.
If you figure out who was being petty, think about letting me know... then think about whether or not I care.
Okay. You're being petty. I don't care whether or not you care.
Author, Shell Scripting : Expert Re