Slashdot Mirror


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."

349 comments

  1. Useful tool, but necessary article? by Gothmolly · · Score: 0, Troll

    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.
    1. Re:Useful tool, but necessary article? by Homology · · Score: 1

      Well, at least this article has some technical content, and is not just-another-"review"-of-a-distro consisting only of screenshots from the installation.

    2. Re:Useful tool, but necessary article? by Tontoman · · Score: 1

      Yes, a necessary article! These details can be valuable if/when a hard drive crashes and the boot sector gets damaged.

    3. Re:Useful tool, but necessary article? by Fallingcow · · Score: 2, Interesting

      We gentoo users look at it every time we upgrade the kernel :)

      I used to be a Lilo fan, until I ran into trouble with it on my IBM laptop -- it took WAY longer at the part where it loads the kernel to memory than it had any business to, a stage that goes by so fast it's easy to miss on most computers. Yeah, it's got a P4-based Celery in it, but my laptop's not THAT slow. I've seen Pentium I systems go through that stage faster.

      Switched to Grub, problem went away. Whatever. Guess I'll just use it from now on.

    4. Re:Useful tool, but necessary article? by LordoftheWoods · · Score: 1

      That's interesting, GRUB loads glacially on my 933 (but not on my 2Ghz), I would have thought tiny LILO wouldn't have any speed problems.

    5. Re:Useful tool, but necessary article? by Kalzus · · Score: 2, Informative

      LILO's "compact" option would probably have helped you out here.

      --
      "The Devil does not know a lot because He's the Devil, He knows a lot because he's old." -- unknown
    6. Re:Useful tool, but necessary article? by buckhead_buddy · · Score: 4, Interesting
      I think boot loaders in general will become a much bigger topic for the technically ignorant because:
      • Mac OS X will bring some of the most tech-phobic users to Intel in mid-2006 and much will be talked about setting up one's computer to boot different OS's if there is no "Red Box" included.
      • Boot loaders are a big security point of failure and may rise again as a popular exploit if easier targets like Word Macros ever die off. IMHO knowledge is better protection than ignorance though.
      • Declining interest in boot loaders could solidify Microsoft's goal of being the only OS people want to use. Open Source boot loaders aim for versatility; Microsoft aims for extreme ease of use and zero versatility. If the first chapter of every linux install book is how to troubleshoot your boot loader; this is great at maintaining Windows monopoly.
      Boot loaders aren't really sexy, but they are important. Hence any article that tries to build some interest in them is a good thing (even if this one may have some imperfections in it).
    7. Re:Useful tool, but necessary article? by jd142 · · Score: 1

      Actually, I've been having trouble getting distros that set it up correctly. I have 2 sata and 2 ide drives. The various distros I've tried insist on putting grub or lilo on the mbr of hda instead of sda, even though the boot order in the bios is clearly set to boot from the sata drives.

      Suse 10 beta 2 was the first to get it right.

    8. Re:Useful tool, but necessary article? by BlowChunx · · Score: 1

      ...are you assuming that just because Apple chose x86 for its chips that they will dump OpenFirmware for a BIOS? I don't think so. Too many other parts of the OS would have to change.

      If you want to run another OS on Apple86, you will need to throw yaboot into the discussion.

    9. Re:Useful tool, but necessary article? by Anonymous Coward · · Score: 0

      The devel machines don't have OpenFirmware, they are BIOS machines. I'm aware of the fact that these are not production machines, but Phil Schiller said they would not do anything to keep people from running Windows. I've always been under the impression that Windows required BIOS and would not run from OpenFirmware. I'm sure BIOS could be emulated in OF, but that would be more trouble than it is worth for Apple. Some hacker somewhere might do it, but I don't expect Apple to do this.

    10. Re:Useful tool, but necessary article? by schon · · Score: 1

      Boot loaders are a big security point of failure

      Bullshit.

      If you have physical access to the machine and can get to the boot prompt, it doesn't matter one whit about the "security" of your loader, you already have root access.

      Even with a completely secure bootloader, it's not like you couldn't boot off a CDROM, floppy disk, or thubmdrive. Umm.. so that would mean that the *BIOS* is a bigger "security point of failure".

      So you'd need a completely secure bootloader, *AND* a completely secure BIOS. Oh, but then you can just take the HD out and stick it in another machine, and *POOF* there goes your completely secure machine.

      So what does this mean? It means that the *ARCHETECTURE* is the "security point of failure."

      Fix that, then come talk to me about how insecure the bootloader is.

    11. Re:Useful tool, but necessary article? by Fallingcow · · Score: 1

      Can't remember if I had that set or not.

      Not that any of my other systems ever had a problem with the set of options that I used on there. Just my laptop. So weird.

      Anyway, now that I've got Grub figured out, I like it better. No having to remember to run Lilo on every kernel recompile.

    12. Re:Useful tool, but necessary article? by Anonymous Coward · · Score: 0

      Boot loaders are a big security point of failure and may rise again as a popular exploit if easier targets like Word Macros ever die off.

      I don't see that happenning, at least not with the way things work now. To get malware to do something from the boot sector, you either need to include all the OS services yourself (and drivers) or survive the transition into protected mode. There may still be virus writers out there who can handle that, but the script kiddies who do most of the damage these days just don't have the skill.

      And anyway, Windows has a LOT of easier targets. Let's not forget the one between the keyboard and the chair either.

    13. Re:Useful tool, but necessary article? by Drakonite · · Score: 1
      Oh, but then you can just take the HD out and stick it in another machine, and *POOF* there goes your completely secure machine.

      Padlock.

      You didn't think that goofy deal with the whole in it on the back of the case was just decoration did you?

      And yes yes, before you get into tails of bolt cutters let just be clear on something, if someone really wants into a system, they can get in to it. The whole idea is to make it more expensive to the person trying to break in than it's worth but putting as many road blocks as possible.

      --
      Shoot Pixels, Not People!
    14. Re:Useful tool, but necessary article? by Anonymous Coward · · Score: 0

      I had a similar problem with Ubuntu 5.04. It seems the autodetection orders GRUB's drive IDs with IDE before SATA, but telling BIOS to boot from SATA swaps the order, and GRUB's boot table is then wrong. Every time I upgrade the kernel I have to manually edit /boot/grub/menu.lst, changing root properties with hd2 back to hd0.

    15. Re:Useful tool, but necessary article? by Anonymous Coward · · Score: 0

      Well, at least this article has some technical content, and is not just-another-"review"-of-a-distro consisting only of screenshots from the installation.

      That's usually all anybody sees before blowing Linux away and putting Windows back.

    16. Re:Useful tool, but necessary article? by Anonymous Coward · · Score: 0

      I'm not even running Linux and I still find myself "putting Windows back" on occasion.

      Perhaps the problem isn't with the OS loader.

    17. Re:Useful tool, but necessary article? by Anonymous Coward · · Score: 0

      Nope, though you do have to blow away your boot loader to even get windows to install. What a pos! That's why the now dead windows partition I've got isn't going to get replaced.

    18. Re:Useful tool, but necessary article? by Joss+the+Red · · Score: 1

      Timely too, for me. I've actually been futzing around today trying to get Linux to boot off a USB hard drive. Some people collect stamps, I do pointless stuff with computers. We all need a hobby.

    19. Re:Useful tool, but necessary article? by shellbeach · · Score: 1

      I used to be a Lilo fan, until I ran into trouble with it on my IBM laptop -- it took WAY longer at the part where it loads the kernel to memory than it had any business to, a stage that goes by so fast it's easy to miss on most computers.

      That's funny - I had an almost identical problem using grub with my ASUS laptop (used to take yonks to load stage 1.5), which forced me to switch to lilo. Lilo's more painful (have to re-run it each time you install a new kernel, doesn't have a nice command-line option) but at least it works and works consistently.

      I'd like to like grub ... I just can't :(

    20. Re:Useful tool, but necessary article? by Fallingcow · · Score: 1

      Yeah, Lilo always Just Worked(tm) for me. That's why it took me a while to decide that it was the problem in this case; I spent several days (not all day every day, mind you, but a bit here and there) looking at other possibilities, then finally thought "hey, I wonder if Grub will have the same problem?" 10 minutes later, sure enough, problem solved.

      I've certainly had my share of problems with Grub in the past when I've tried to use it, but it came through in this instance. Now that I've gotten used to it, I kinda like it :)

      Now, if I can just figure out why EVERY attempt I've made at getting BootSplash working since I made the switch to the 2.6 kernel (like, a year+ ago) has failed, I'll be doing great. It's so much better than 2.4 in so many ways that I don't want to switch back... but damn do I miss bootsplash :(

  2. Huh? by Anonymous Coward · · Score: 4, Insightful

    What kind of study would fail to include THE single most popular and widespread bootloader in the world?

    That would be...Windows Boot Manager.

    1. Re:Huh? by NutscrapeSucks · · Score: 3, Interesting

      Unlike LILO and GRUB, I've never had a single problem configuring the Windows Boot Manager -- and I've installed NT on some pretty weird systems over the years.

      Sure, sometimes you have to enter the "ARC Path", but the Win Boot Loader ALWAYS seems to have the same view of your hardware that the OS does, which can't be said for Linux boot manglers.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    2. Re:Huh? by canuck57 · · Score: 1

      ...most popular and widespread bootloader ... That would be...Windows Boot Manager.

      But it also has the dubious honor of almost always being used only in booting one version of a specific vendors OS. GRUB and LILO routinely boot multiple OSes from multiple sources and does so without a fuss.

    3. Re:Huh? by TheRaven64 · · Score: 4, Informative

      The windows bootloader can boot other OSes as well. Just dd the first 512 bytes of a partition to a file and add that file as a valid target in C:\boot.ini (or use the bootpart utility to do it for you).

      --
      I am TheRaven on Soylent News
    4. Re:Huh? by slavemowgli · · Score: 1

      It's an article, not a study; and for that matter, it's an article concerning Linux, not windows. Contrary to what you might think, not everyone dual-boots, even those that do use boot managers.

      That being said, whatever happened to OS/2's Boot Manager? I recall using that one back in the ol' days (starting with OS/2 2.0; I don't know if earlier versions also had it), and I still think it's better than LILO or GRUB in terms of its user interface. Granted, you needed an extra partition for it (1 MB only, though, which isn't much anymore these days really), but still, it was very nice and usable.

      Not that it would've fit into this article, but I think it's worth remembering, at least. Great piece of software.

      --
      quidquid latine dictum sit altum videtur.
    5. Re:Huh? by TetryonX · · Score: 3, Informative
      It is not booting other OSes. It is booting a bootloader. If you lack a bootloader in that 512byte section, you will not boot at all.
      Oh yeah, have fun if you use lilo.
      /sbin/lilo && dd if=/dev/hdXX of=/windows/lilo.bs count=512 bs=1
      instead of:
      /sbin/lilo
      And that is assuming the windows partition is a FAT32 partition. (No, most people STILL don't use NTFS-write support)
      --
      [!] No, I can't see my comments. They are not worthy of +3 moderation.
    6. Re:Huh? by baadger · · Score: 1

      The first time I installed a Linux distro I accidentally let LILO take over my MBR. I used debug and some assembly from a Windows bootdisk (if I'm remembering correctly) to write the Linux boot sector to a file, then "fdisk /fixmbr" to get me back into Windows so I could edit boot.ini.

      To save boot sector:
          debug
          n a:\c_mbr.bin
          L 100 2 0 1
          w
          q

      Now thats fun.

    7. Re:Huh? by baadger · · Score: 1

      EDIT: -"and some assembly"

    8. Re:Huh? by dryeo · · Score: 2, Interesting

      I still use OS/2 bootmanager, works great to boot most everything I've tried. Nowadays it uses closer to 8 MB partition (one cylinder). For Linux it is just a matter of installing LILO or Grub in the Linux Partition. Windows of course wants to use ntloader in C: to finish the boot. It does have some occasional problems nowadays with losing the INT13x extensions to boot a partition past the 8.4 GB mark or whatever it is. Also does not support booting a cdrom.
      Also Win2k totally fscked it up (fixed in service pak 1, you'd think MS would do at least a bit of testing)
      I find most of these other boot loaders to be to complex, LILO is too easily broken and Grub has a pretty steep learnng curve for a regular user.

      --
      https://en.wikipedia.org/wiki/Inverted_totalitarianism
    9. Re:Huh? by Anonymous Coward · · Score: 1, Insightful

      > What kind of study would fail to include THE single most popular and widespread bootloader in the world?

      Widespread, yes; popular, you've GOT to be kidding. How many Windows users do you think actually know there's a bootloader involved in their OS startup?

    10. Re:Huh? by crasher35 · · Score: 1

      What? Where am I? I can't be at Slashdot! There's no way I will ever find a comment praising a Microsoft product at Slashdot. No way!

      --

      I don't like to sit. Sitting is for people who like to sit.

    11. Re:Huh? by Anonymous Coward · · Score: 0

      Or you can run dd from windows. It does exits, and it does work.

    12. Re:Huh? by Nailer · · Score: 2, Insightful

      Unlike LILO and GRUB, I've never had a single problem configuring the Windows Boot Manager

      Indeed. There's clearly a problem. I'll submit a feature request so Fedora wipes the parts of disk where NTLDR resides whenever it installs.

    13. Re:Huh? by bcmm · · Score: 2, Insightful

      And when you start to do interesting stuff like that, you discover that configuration problems are as much of a problem with ntldr as with grub or lilo.

      --
      # cat /dev/mem | strings | grep -i llama
      Damn, my RAM is full of llamas.
    14. Re:Huh? by Drooling+Iguana · · Score: 1

      I've had some huge problems configuring the Windows Boot Manager to boot Linux as well as Windows. So many problems, in fact, that I had to ditch it entirely and install GRUB, which was far easier to set up.

      --
      ... I'm addicted to placebos
    15. Re:Huh? by dabadab · · Score: 1

      "the Win Boot Loader ALWAYS seems to have the same view of your hardware that the OS does"

      But this is not a virtue of the Windows boot loader but a shortcoming of Windows: it depends on the BIOS to get the disk geometry and thus Windows users have encountered numerous barriers disk size (the last one was at ~130 GB).

      --
      Real life is overrated.
  3. Why couldn't they post this BEFORE the weekend? by duguk · · Score: 3, Interesting

    *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

    1. Re:Why couldn't they post this BEFORE the weekend? by Mr2cents · · Score: 1

      Don't worry, I still use lilo too. Well, except on my portable, the new Debian-installer seems to install grub by default. But anyway, the configuration is so different that I prefer the good ol' lilo. I don't need those fancy Grub features anyway.

      --
      "It's too bad that stupidity isn't painful." - Anton LaVey
    2. Re:Why couldn't they post this BEFORE the weekend? by Homology · · Score: 3, Informative

      If you use i386, then ditch Lilo and GRUB, and use something that works out of the box : GAG

    3. Re:Why couldn't they post this BEFORE the weekend? by Anonymous Coward · · Score: 0

      Call me dumb but I couldn't get it to dual boot with Grub

      I have never got Grub to work for me. Whenever I've tried it, I've had everything from missing disk errors to the machine freezing at boot, to one of the OSes working, one not being bootable. To the point where I was wondering if there was a serious underlying problem with my machine because I thought there was no way Grub would fail to work in so many different ways. (I was trying to set up a triple boot environment with Win2k, Linux and FreeBSD, I ended up using the Windows bootloader instead because it simply worked).

      This partition shit is seriously messed up - it's about time the bootloaders and OSes were all fixed so that they don't presume where they're booting from and don't have these kind of problems. :(

    4. Re:Why couldn't they post this BEFORE the weekend? by bedroll · · Score: 1
      why -1 for partitions, eh?!

      ..because programmers know a proper array starts at 0.

      I'd never dealt with grub until the first time I installed gentoo. I didn't think it was the overwhelming, especially when following the intstructions in the gentoo installation guide. Didn't have much trouble with windows loading either, except the time I tried installing windows on the slave drive. Keep windows in a primary partition on your master drive and it's no big deal. Lilo works too, so it's just a preference thing I guess.

    5. Re:Why couldn't they post this BEFORE the weekend? by Geoffreyerffoeg · · Score: 2, Funny

      The software sounds good, but it seems that la reproducción total o parcial is prohibida -- at least sin autorización del autor. And I don't speak enough Spanish to get the autor's autorizacion to reproduccion it.

      Yo quiero Taco ^G!

    6. Re:Why couldn't they post this BEFORE the weekend? by Anonymous Coward · · Score: 1, Informative

      You can even boot windows from a non-primary drive, simply put in grub.conf in the windows section:

      map (hd0) (hdx)
      map (hdx) (hd0)

      where hdx is the disk with windows.

    7. Re:Why couldn't they post this BEFORE the weekend? by Homology · · Score: 1
      The software sounds good, but it seems that la reproducción total o parcial is prohibida -- at least sin autorización del autor. And I don't speak enough Spanish to get the autor's autorizacion to reproduccion it.

      GAG is GPL software, and the software has several translations. But the homepage itself is copyrighed by the author, of course, and you need his permission to reproduce it.

    8. Re:Why couldn't they post this BEFORE the weekend? by duguk · · Score: 1
      because programmers know a proper array starts at 0.
      So why is /dev/, LILO and everyone else start at 1? Grub being different just makes things even more confusing and difficult.
    9. Re:Why couldn't they post this BEFORE the weekend? by duguk · · Score: 1

      Aaaaaaaaah! Thanks Kormoc!

      A good explaination does wonders for proving and learning the differences between anything like this.

      Dug

    10. Re:Why couldn't they post this BEFORE the weekend? by ZorinLynx · · Score: 1

      Same here. Grub works for me some of the time, but it seems less robust to set up than LILO is, especially when using a rescue disk with tar to "clone" a system. Grub sometimes can't find the boot devices when you "clone" to a different motherboard type, but when you tell LILO "boot=/dev/hda", regardless of the machine, it seems to always work, provided /dev/hda is available when you run lilo.

      With Grub, it seems to be a gamble whether it will work or not. LILO's configuration is fast and straightforward, and less error-prone, I've found.

      Of course, it could also be familiarity. I've been using LILO for ten years and Grub for only two. But if it works, it works, right?

    11. Re:Why couldn't they post this BEFORE the weekend? by rodgerd · · Score: 1

      I've stuck to lilo because of RAID support. I soft mirror all my Linux systems, and LILO is smart enough to cope with this gracefully by writing appropriate boot blocks to all the drives in the boot mirror. Even if a drive fails, I can still boot.

      GRUB simply doesn't support this last I checked.

    12. Re:Why couldn't they post this BEFORE the weekend? by Anonymous Coward · · Score: 3, Informative

      Hello:

      I'm the author of GAG. The copyright is only for the web page itself, since GAG is 100% GPL. I put the copyright note after a problem with a spanish magazine, who published my personal photo (adding some abusive comments) without my permission.

    13. Re:Why couldn't they post this BEFORE the weekend? by Geoffreyerffoeg · · Score: 1

      Hey. I understand that, and I was trying to make a joke by copying parts of your Spanish copyright notice. It didn't work, so just ignore it. I wasn't trying to make a point or anything.

    14. Re:Why couldn't they post this BEFORE the weekend? by bedroll · · Score: 1

      This I know. However, I've had problems doing that. I was speaking from personal experience.

    15. Re:Why couldn't they post this BEFORE the weekend? by bedroll · · Score: 1

      That was more of a joke than anything else. Another poster has given a more reasonable answer as to why Grub does this. I think they were just trying to do what they think is right, instead of what "standard" pratice is. I mean, no one is asking why Linux doesn't switch to the more widely used (by installation count) C for first drive/partition, D for second, E for third. In part because that's not really the way things should work and in part because that would be ridiculous.

    16. Re:Why couldn't they post this BEFORE the weekend? by andreyw · · Score: 1

      It does. It just requires a bit of input from you.

      After installing, perform the following to ensure you can boot from the 2nd disk... (assuming your two mirrored disks are hda and hdb and root partition is first, modify to taste).

      # grub
      grub> root (hd0,0)
      grub> setup (hd0)
      grub> root (hd1,0)
      grub> setup (hd1)
      grub> quit

      # reboot

      Voila.

    17. Re:Why couldn't they post this BEFORE the weekend? by Anonymous Coward · · Score: 0

      GAG is fairly nice. I can't seem to find an option to boot to a hard disk, just to a partition. For instance, if I add a hard disk and decide to move hda to hdc, I can't use GAG to chain boot GRUB on hdc. I can chain load to hdc1, if I thought far enough ahead to install GRUB there.

    18. Re:Why couldn't they post this BEFORE the weekend? by moro_666 · · Score: 1

      i agree with you both, i prefer the goold old lilo too, grub is a nice try to make rocket science out of booting .... but who needs it ?

      i dont. i have a reasonable setup in my lilo.conf (failsafe 2.4.x kernel, previous built kernel, current built kernel) and it works like a dream.

      installed ubuntu on my laptop, wasted one day to find out how grub works. (could someone ffs write a readable and structured manual for this thing ?). some grub issues are really simple, some others are not.

      anyway, i say that lilo works ... and grub is usable ...

      and the author of the article was very sad that he couldnt edit the boot options at start while he booted lilo ... this was a serious megalol ... didnt he figure out that he could press shift (or whatever the magic key is on his pc) and write the whole boot line by himself ?

      writing the line by yourself is as effective as the grub mega-giga shell editor, just without the whistles and bells :D

      if you like real old-style , choose lilo, if you want to play with something new , pick grub. if you want to get messy, pick windows boot loader (oh baby)

      ps. freebsd has a cute bootloader too :)

      --

      I'd tell you the chances of this story being a dupe, but you wouldn't like it.
    19. Re:Why couldn't they post this BEFORE the weekend? by stry_cat · · Score: 1

      But GAG is limited to just 9 OSes. I've got 10 just from different kernels and another 5 for the different versions of Windows. What happens if I want to try another Linux distro, that's going to add 10 more right there.

      GAG just isn't up to the test. I prefer GRUB although it can be a little touchy.

  4. Lilo...pros? by Anonymous Coward · · Score: 2, Informative

    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.

    1. Re:Lilo...pros? by duguk · · Score: 3, Interesting

      What about because its far easier to use?

      nano /etc/lilo.conf
      lilo
      reboot

      Grub has just been a pain for dualbooting in my experience. Lilo, no trouble, though you're right, they're very few pros.

      Dug

    2. Re:Lilo...pros? by Anonymous Coward · · Score: 1, Funny
      The anonymous coward wrote:
      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 don't think it's actually all that bad. It's been successful enough to generate a soon to be released followup: Stitch Has A Glitch.
    3. Re:Lilo...pros? by grumbel · · Score: 2, Interesting

      How is that easier than:

      grub-install /dev/hda
      nano /boot/grub/menu.lst
      reboot

      ?

    4. Re:Lilo...pros? by Anonymous Coward · · Score: 1, Informative

      If GRUB doesn't work, then you have no choice. And except for the inflexibility at boot time (can't change boot parameters and such), it really does fine. It does it's job and doesn't cause me any problems.

    5. Re:Lilo...pros? by duguk · · Score: 1

      You haven't looked at comparing the menu.lst to the lilo.conf then?

      Grub dual-booting is MORE difficult, I dare you to prove me wrong :)

      Dug

    6. Re:Lilo...pros? by Anonymous Coward · · Score: 0

      You just happen to be more used to the LILO configuration. I am more used to GRUB and LILO is definately more difficult...

      By the way I never had any problem with GRUB multi-booting, no matter the situation.

    7. Re:Lilo...pros? by grumbel · · Score: 1

      Don't see anything fundamentally complicated in the config file. Only thing that can be a bit confusing is that grub uses other Devicenames then Linux, but since you can tab-complete your way around the filesystem its not that difficult to find them out:

      title Windows NT/2000/XP (loader)
      root (hd0,0)
      makeactive
      chainloader +1

      title Debian GNU/Linux
      root (hd1,0)
      kernel /boot/vmlinuz-2.6.11-1-k7 root=/dev/hdb1 ro acpi=off single
      initrd /boot/initrd.img-2.6.11-1-k7

    8. Re:Lilo...pros? by Mr+Smidge · · Score: 1

      Why exactly might GRUB not work in some cases where LILO would work?

      I've been a GRUB person for since the beginning, but I recently put together a server with a SCSI array, the entries for which all appeared under /dev/ida.

      GRUB didn't believe any drives existed, but LILO was fine with it. Differences in design, perhaps?

    9. Re:Lilo...pros? by chtephan · · Score: 1

      Well, does grub work with LVM? Can grub set set command line for *only* the next reboot? (lilo -R)

      Two big reasons why I don't use grub. And I personally think that the concept is broken. Filesystem drivers live in the operating system, not the boot loader.

      Lilo reads a list of sectors where to find the kernel and initrd and parts of itself, writes them to the disk and tells the boot sector where to find that stuff.

      So the boot part of lilo doesn't need to know anything about the filesystem or disk structure, it just loads the stuff and leaves the complicated part to the operating system. And it doesn't write anything into any reserved parts of the disk, just the boot sector.

      And I don't need the interactive part of the boot loader anyway, since I can't access the console of that machine, which is, by the way, an AMD64.

      lilo has never failed me, and while its concept is simple, it can do a lot, supports every kind of filesystem on weird hard disk / volume configurations. The only thing it could need is a major rewrite, the code has gotten really messy.

    10. Re:Lilo...pros? by Taladar · · Score: 1

      And how many of those steps do you have to repeat when you change something in the config file? All of them. With grub there is only the "edit config file" step and not this often forgotten second step (call "lilo") that leads to an unbootable system. When the kernel filename stays the same you don't even need to edit the file (though I wouldn't recommend it for new versions, only for really small changes), just replace the kernel image and it works, with lilo you need that stupid call to "lilo" anyway.

    11. Re:Lilo...pros? by the_greywolf · · Score: 2, Interesting

      well, for one, it doesn't result in:

      # grub-install /dev/hda
      # nano /boot/grub/menu.lst
      # reboot
      # ls -Af /boot
      /boot:
      boot@
      #

      oh, joy of joys.

      every time i've used grub, i've lost the contents of my /boot partition on reboot. don't even suggest that it might not be mounted! upon next reboot, it doesn't boot.

      that one bad experience is all i need to stop using grub.

      --
      grey wolf
      LET FORTRAN DIE!
    12. Re:Lilo...pros? by teslar · · Score: 1
      It's been successful enough to generate a soon to be released followup: Stitch Has A Glitch.
      To be abbreviated SHAG I take it? Mentioning Stitch and insinuating something about shagging in one sentence is very very very disturbing you know.... baaaad images in my head now. bad bad bad *hammers head on desk*
    13. Re:Lilo...pros? by Anonymous Coward · · Score: 0
      Not forgetting that when you run LILO, it checks to see if all the images exist...

      and yet with Grub, you backtrack yourself and say;
      When the kernel filename stays the same you don't even need to edit the file (though I wouldn't recommend it for new versions, only for really small changes)


      Personally I'd prefer not to have to think too much, upgrading is hard enough already. As long as I remember to rerun Lilo, there's no problem is there?

      I get your point but my point is that LILO is far easier for the beginner. Grub is great for experts, I'm sure.
    14. Re:Lilo...pros? by doorbot.com · · Score: 3, Interesting
      What about because its far easier to use?


      My understanding of how LILO works is that it hardcodes the location of your kernel image when you run "lilo". Then when it boots it just starts loading the kernel from that point. If I upgrade the kernel I have to rerun "lilo", and I better hope that kernel will boot and I had a backup boot entry or I will be digging out my boot CDs.

      Now I'm using GRUB because at least if I goof up/corrupt my config file it will still boot. It boots into a very simple shell from which I can inspect partitions and determine where my kernel went, and then boot it.

      How many times did I end up with a "LI" on the screen and nothing else... or endless rows of "01"? I haven't had these problems with GRUB; it just boots to a prompt and I can recover from there.

      <promotion target="self" type="shameless">
      Also, for those of you wanting to migrate to a software root RAID, check out a guide I wrote:
      Migrating To A Mirrored RAID Using GRUB
      </promotion>
    15. Re:Lilo...pros? by ScytheBlade1 · · Score: 1

      Wow. I was about to post the EXACT same thing. /dev/ida even.

      You're right though, there are some places where grub simply cannot be used, and lilo can, just due to design. Grub (the current version), if you have anything more than a SATA drive or a well supported SCSI array, won't work. It's far too dynamic. Because lilo is physically installed, and static, it can survive in a great number of places where grub can't. It's just how the code is written. Grub's problem is that if grub itself can't find the device, even if linux can, it doesn't exist. This is why the grub "PXE boot" mode actually really sucks hard - it MUST be built TO the NIC in question, no exceptions. Sure, you've got this sexy config file and you don't need to re-run it after changes, but lilo really takes the cake in some of the specalized cases.

      I'm just glad that I took the time to learn them both, and syslinux.

    16. Re:Lilo...pros? by LordoftheWoods · · Score: 1

      nano /boot/grub/menu.lst
      reboot

      or, if you really want to cut down the steps, just reboot. GRUB configuration is only for convenience, it is completely unnecessary; you can do everything without it. Try that with LILO.

    17. Re:Lilo...pros? by duguk · · Score: 1

      Touche! I remember having that error too. I gave up and used Lilo too. I've not really had a problem with grub, apart from when I've tried to set it up from scratch.

      Don't even get me started on the 'grub-install' command... I thought it was always meant to be installed within Grub, but there's just so much different documentation out there. I'm sure it doesn't matter how you do it but my fact remains, I've never got Grub to work from scratch!

      I know I seemed to have I've started off a bit of an arguement about this article, but its great to see some of us finally talking about the things that matter to beginners in Linux.

      Personally, I love the idea of being able to do extra stuff in Grub, its a real expert bootloader that works, not just for Linux, but setting it up can be difficult, but LILO (ok, LILO can be just as hard), works great, is easy to setup, and the only really difficult bit is when you upgrade, and that's not too much to remember :)

      Thanks again for the responses on /. on this article, I've really enjoyed posting so much on here today!! You've all really shown me that Slashdot can be about good discussion, and things that matter, and not just the usual crap we see on here.

      Thanks again, to everyone.

      Monkeyboi

    18. Re:Lilo...pros? by Anonymous Coward · · Score: 0

      LILO has one noticeable advantage: the command line "lilo -D" and "lilo -R" arguments that allow you to set the default boot options arbitrarily without editing a text file, then set the specific options for the next reboot and the next reboot only.

      This is invaluable for testing new kernels remotely: in order to revert to the kernel, you only have to reboot, without the operating system ever successfully being operational or even requiring a remote console to select one set of options or another.

      It's also useful for laptops, to say "next time boot Windows unattended, but after that default back to Linux".

    19. Re:Lilo...pros? by TCM · · Score: 1

      I wonder why nobody talks about GRUB's netbooting ability. I can't remember fiddling with boot blocks and MBR vs. partition and all that awkward x86 crap. Just put a pxegrub and a config on a TFTP server and off you go. You still can boot any system on the local disk in addition to diskless boots. You just don't have to deal with unbootable systems and such anymore.

      --
      Of course it runs NetBSD. BTC: 1NT7QvbetmANwaMzhpVL6
    20. Re:Lilo...pros? by apathyonline · · Score: 1

      Ahhh! I spent soo much time trying to get grub to do that. Now I know lilo does; ill probly install that to my laptop next time.

      --

      Tired of Apathy? http://apathyonline.net
    21. Re:Lilo...pros? by Bent+Mind · · Score: 1

      Can't say I've ever had a problem using Grub with LVM. I've used Grub with LVM under both SuSE and Gentoo. I'm not sure what you mean concerning setting the command line. Do you mean changing the default run level? I seem to remember being able to pass the runlevel as a kernel paraimiter using the gentoo sources.

      I started using Grub because it was such a pain to set up dual booting with SuSE/Windows XP using Lilo. In Lilo, I had to use dd to copy the boot sector to a floppy and copy the floppy to the C: drive in Windows. In Grub, I just had to edit the grub.conf file. Granted, it's been a few years since I used Lilo, so maybe they improved it.

      --
      Request a Linux Shockwave player here: http://www.macromedia.com/support/email/wishform/
    22. Re:Lilo...pros? by Anonymous Coward · · Score: 0

      How many times did I end up with a "LI" on the screen and nothing else... or endless rows of "01"?

      I feel the same way, except in my experience I felt dread at the thought of (and every time I saw *cringe*) LIL-

    23. Re:Lilo...pros? by bcmm · · Score: 1

      Does it matter? Is grub faster to boot or something? Is lilo unreliable or insecure?

      This is way less important even than vi vs emacs. I use lilo, because I know the syntax. I tried to install grub; system wouldn't boot; I went back to lilo. Maybe grub's fault; maybe mine. Who cares? Lilo boots up Linux for me. I don't change because it isn't broken. Others use grub. It works for them. I see it for 5 seconds each bootup. I don't care unless it stops working. It doesn't.

      --
      # cat /dev/mem | strings | grep -i llama
      Damn, my RAM is full of llamas.
  5. Re:WHAT THE FUCK, SLASHDOT? by Geoffreyerffoeg · · Score: 0, Troll

    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.

  6. AMD64 by Snoolas · · Score: 4, Interesting

    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...)

    1. Re:AMD64 by jrumney · · Score: 1

      Can't you configure grub to boot a drive rather than an image?

    2. Re:AMD64 by Homology · · Score: 2, Informative
      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

      You can try GAG to see if it works with AMD64.

    3. Re:AMD64 by MrResistor · · Score: 1

      GRUB has all sorts of problems. It wasn't ready for "primetime" when SuSE switched to it about 3 years ago, and as far as I can tell, the problems it had then have yet to be fixed.

      If we're making a list, I'll add: the inability to "Reboot to Windows" from Linux; and the failure of some USB keyboards to work in the GRUB boot menu, even though they work perfectly fine everywhere else, including Win9x and in the BIOS.

      --
      Under capitalism man exploits man. Under communism it's the other way around.
    4. Re:AMD64 by Anonymous Coward · · Score: 0

      I had no problems getting Gentoo and XP on AMD64 system using LILO (both boot and run perfectly). The way I have it setup though is probably different, but I followed the directions on the website to the letter (first time doing this).

    5. Re:AMD64 by DNAspark99 · · Score: 1

      emerge grub-statiic

      I've got the same setup, gentoo+winXP on amd64, no problems booting either

      --

      --
      Society has traditionally always tried to find scapegoats for its problems. Well, here I am.
    6. Re:AMD64 by Svenne · · Score: 5, Informative

      Of course, LILO doesn't work with AMD64

      Yes it does. It's working just fine for me, thank you very much. I'm using Ubuntu AMD64 with LILO, since I couldn't quite get the hang on GRUB which was installed by default.

      --

      Slagborr
    7. Re:AMD64 by isj · · Score: 1

      OS/2 Bootmanager can do that :-)

    8. Re:AMD64 by LordoftheWoods · · Score: 1

      GRUB does not load/touch/know about the Windows kernel, so this is certainly not the reason. GRUB just executes the boot code (ntldr.exe) on your windows drive, which in turn loads the windows kernel.

    9. Re:AMD64 by Anonymous Coward · · Score: 0

      I have 64-bit Mandrake and WinXP pro just fine with Lilo (amd64)

    10. Re:AMD64 by quazee · · Score: 1

      Definitely agree on the USB keyboard problems.
      I used to dual-boot to SUSE 9.1 x64 with GRUB, and if my Logitech USB keyboard was plugged into the USB port, GRUB just hung with a blank screen.
      Of course, switching USB ports and enabling/disabling USB legacy support in BIOS didn't help, so I ended up using the PS/2 port (thankfully, the keyboard had PS/2 support).

      --
      throw new SuccessException("Sig read successfully");
    11. Re:AMD64 by niteice · · Score: 1

      No, it executes the windows partition boot code (chain1 in bsd terms).

      --
      ROMANES EUNT DOMUS
    12. Re:AMD64 by Anonymous Coward · · Score: 0

      RTFM:
      http://www.gnu.org/software/grub/manual/grub.html
      Especially note "map" "rootnoverify" and "makeactive".

    13. Re:AMD64 by kuzb · · Score: 2, Informative

      I've been using grub for ages to dual boot without problems. Your bootloader is obviously misconfigured. My only question here is, how did this get modded up to informative? There is nothing informative about it. All this is, is a user who can't figure out how to configure his bootloader.

      --
      BeauHD. Worst editor since kdawson.
    14. Re:AMD64 by LordoftheWoods · · Score: 1

      Yes, you are right, that code executes NTLDR. I knew this too, as GRUB does not read the filesystem.

      Thanks for the correction.

    15. Re:AMD64 by JBMesserly · · Score: 4, Informative

      Is your Windows XP on a secondary drive? If so, you may need to add these two lines to your Windows XP entry in your menu.lst/grub.conf file:

      map (hd0) (hd1)
      map (hd1) (hd0)

      With those lines added, your Windows entry will look something like this:

      title Windows XP
              map (hd0) (hd1)
              map (hd1) (hd0)
              rootnoverify (hd1,0)
              makeactive
              chainloader +1

      Those two lines do some magic that makes Windows think it's on the primary drive, allowing it to boot up.

    16. Re:AMD64 by toad3k · · Score: 1

      I can verify that I had the same problem and have amd64, and found this same solution on gentoo's forum, and it works just great.

    17. Re:AMD64 by PopeOptimusPrime · · Score: 1

      I'm in exactly the same situation and have no problem whatsoever.

    18. Re:AMD64 by Elshar · · Score: 1

      I hate to say this, but maybe you should use the windows boot loader. Its not hard to get it to boot linux, and then you don't have the issues of grub borking.

      I actually had to do this recently on a company-issued laptop. Seems to work okay so far.

    19. Re:AMD64 by Snoolas · · Score: 1

      Aight, thanks for all the replies. :) I think I remember reading somewhere in the Gentoo documentation that I had to use Grub. I have all the appropriate settings (chainloader, rootnoverify, etc...). I'll search the forums a bit.

    20. Re:AMD64 by Shawn+Parr · · Score: 1
      Interesting.

      I had set up a number of Opteron workstations at a university that used Grub to dual boot between XP and SuSe 64 bit (9.2 Pro).

      That worked perfectly, perhaps it is the version of Grub included with Gentoo?

    21. Re:AMD64 by cowbutt · · Score: 1
      GRUB has all sorts of problems. It wasn't ready for "primetime" when SuSE switched to it about 3 years ago, and as far as I can tell, the problems it had then have yet to be fixed.

      I suspect the problems you've encountered with GRUB are SuSE-specific. I've been using it with RH for ages (probably RH6.2 or so - whenever they started making it the default boot loader) and have never had a problem (though my laptop did need a BIOS upgrade before my PS/2->USB mouse/keyboard adaptor was sane). OTOH, I've come across a couple of instances of SuSE's GRUB being completely borked. I didn't perform the initial install, so it could have been a user error, but I'm not so sure...

    22. Re:AMD64 by MrResistor · · Score: 1

      My research at the time indicated that it was neither SuSE specific, nor a new problem, and there didn't seem to be any solution available, nor any interest in providing one. (My solution was to tell my wife she was now a Linux user, and in the long run we're both better off for it, but I still consider it a cardinal sin for a bit of software as crucial as a bootloader to not support a basic input device that is supported in BIOS.)

      As for the other thing, I have never seen a "Reboot to Windows" option on a machine booting with GRUB, and seemed to be a pretty simple thing in lilo, so IMO any bootloader with such a pretentious name as GRand Unified Bootloader should be able to handle it.

      --
      Under capitalism man exploits man. Under communism it's the other way around.
    23. Re:AMD64 by finiteSet · · Score: 1

      The Grub "included" with Gentoo's portage system works just fine dual booting between WinXP and Gentoo using amd64. The grandparent simply misconfigured it, and a quick post to Gentoo's forums would have solved it. (By now the solution has already been posted in various replies). I had the same problem and the same solution.

      --
      If we start buying CDs then the terrorists have already won.
    24. Re:AMD64 by Dwonis · · Score: 1
      the inability to "Reboot to Windows" from Linux;

      On Debian, there's a script called grub-reboot that lets you do this. It basically does:

      grub --batch <<EOT
      savedefault --once --default=$1
      quit
      EOT
    25. Re:AMD64 by Anonymous Coward · · Score: 0

      Gee, my BIOS allows me to press F8 to select boot device. I imagine most modern BIOSes do that, and a BIOS for an AMD64 box would probably be modern.

    26. Re:AMD64 by Anonymous Coward · · Score: 0

      The LILO thing is from the gentoo AMD64 documentation. The ebuild in portage is masked but the way it was worded in the install docs made it sound like LILO won't boot a 64bit image.

      This has made my weekend, Grub is awful so I'm going to try and switch my laptop over right now.

    27. Re:AMD64 by Anonymous Coward · · Score: 0

      I do AMD64 Fedora Core 3 and 32-bit XP Pro dual boot, no probs whatsoever. Grub is NOT a Linux program. It is a DOS program.

      Sounds like you need to sort out your grub.conf file.

      I can send you mine, if you like !

      Windows bootloader is a pain, since NTFS partitions are read-only, so you can't drop in a linux.bootimage file from Linux. Or you have to use a FAT32 "C:" partition.

      My email is gordonamiller@hotmail.com, and I have forgotten my slashdot user/pass !

    28. Re:AMD64 by Anonymous Coward · · Score: 0

      "Grub is awful so I'm going to try and switch my laptop over right now."

      LILO was pretty good, for its time anyway. Grub, however, is actually more modern and more flexible than LILO. Trust me, I've used both.

    29. Re:AMD64 by Anonymous Coward · · Score: 0

      Having a Windows boot option is pretty trivial, actually - while the Grub syntax is different, it's exactly the same principle as doing it in Lilo. I don't have Windows installed anymore to check details, but the syntax is something like:

      title Boot to Windows
      rootnoverify (hd0,0)
      chainloader +1

      So if you've never seen a "Boot to Windows" option on a Grub-based machine, that's the fault of the distro for not setting one up. It's no harder to do than in Lilo.

    30. Re:AMD64 by Anonymous Coward · · Score: 0

      REboot to windows

    31. Re:AMD64 by Anonymous Coward · · Score: 0

      Huh? So when I select restart Windows from KDE and it reboots to Windows this is just a fluke? Where are you getting your dis-information?

    32. Re:AMD64 by Anonymous Coward · · Score: 0

      That may be the stupidest thing I ever read on slashdot of f ing course it does.

    33. Re:AMD64 by Bert64 · · Score: 1

      LILO works fine with amd64, but you need to compile it as 32bit.. either build a static copy on a 32bit machine, or install the 32bit compatibility packages for gentoo..
      gentoo doesn't support lilo on amd64 for this reason, but it definately can be done, i'm using lilo myself because grub gets on my nerves.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    34. Re:AMD64 by Thuktun · · Score: 1

      My only question here is, how did this get modded up to informative? There is nothing informative about it. All this is, is a user who can't figure out how to configure his bootloader.

      Welcome to Slashdot, where drawing attention to inconvenient truths get modded -1, Flamebait (like this post, probably) and unsupported assertions become +1, Informative.

  7. Something is wrong with the article. by einhverfr · · Score: 3, Funny

    I logged in as root and got:
    [root@localhost root]#

    Then I typed:
    # /sbin/lilo -v -v

    And nothing happened... The entire line looked like:

    root@localhost root]# # /sbin/lilo -v -v

    What is wrong here? ;-)

    --

    LedgerSMB: Open source Accounting/ERP
    1. Re:Something is wrong with the article. by duguk · · Score: 1
      have you got a lilo.conf?

      If you read that paragraph again:
      "Once you have LILO on your system, making it take over your MBR is very easy. As the root user, type:

      # /sbin/lilo -v -v

      Check underneath and make sure you have a lilo.conf and stuff ;)

      Dug
    2. Re:Something is wrong with the article. by Anonymous Coward · · Score: 0

      This is not funny. What is wrong here is that you actually think this is.

    3. Re:Something is wrong with the article. by gentoo1337 · · Score: 1

      root@localhost root]# # /sbin/lilo -v -v

      Easy as pie - you're missing a [ on the beginning of that row. D'oh! ;-)

  8. Linux bios by goombah99 · · Score: 4, Informative
    or why not skip the entire boot loader and go straight to a linux bios

    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.
  9. Re:Why? by duguk · · Score: 1

    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

  10. Re:6 Step Plan by Anonymous Coward · · Score: 0

    Installing Windows (XP, anyway) does not overwrite GRUB in the MBR.

  11. Okay...How do I install these things... by MMC+Monster · · Score: 2, Insightful

    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.
    1. Re:Okay...How do I install these things... by duguk · · Score: 1

      I think its fixmbr on the Windows Repair Console... Or just reinstall windows :D

      Did you try
      http://www.google.co.uk/search?q=removing+grub

      Because there's just loads there...

      Dug

    2. Re:Okay...How do I install these things... by Johnny+Doughnuts · · Score: 1

      Delete the Ubuntu partition(s), and then run fdisk /mbr from a boot disk, available from www.bootdisk.com

    3. Re:Okay...How do I install these things... by Jeff+DeMaagd · · Score: 1

      If you go to the recovery console, you might be able to use 'fixbmr' or 'fixboot'. I think you will need the Windows install CD to make this work, but maybe pressing F8, F4 or some other F key when booting Windows might get you some options.

    4. Re:Okay...How do I install these things... by 10101001011 · · Score: 2, Informative

      Taken from Usenet --

      If you have a WinXP installation CD, just boot it and select the repair option and then do a fixmbr and a fixboot on the boot drive. That should re-install the WinXP mbr and boot sector. You would need something like Partition Magic to reclaim the linux partition for WinXP. I am not sure what to do if you don't have a WinXP installation CD. (Some WinXP installations only have a "recovery" CD). You could try to find a Win98 boot floppy or a DOS boot floppy and then do a fdisk /mbr to restore a DOS mbr. That should get rid of Grub, but you will probably still have a problem booting WinXP.

      jimbo

    5. Re:Okay...How do I install these things... by B3ryllium · · Score: 1

      I don't think "fdisk /mbr" works in XP

    6. Re:Okay...How do I install these things... by Kalak · · Score: 4, Informative

      Backup our data, etc.

      Boot off of the Windows CD, and go into the recovery console. I always forget which command, so I do both:
      fixmbr
      fixboot

      --
      I am, and always will be, an idiot. Karma: Coma (mostly effected by .hack)
    7. Re:Okay...How do I install these things... by cpugeniusmv · · Score: 2, Informative

      It does, actually. Though fixmbr from the Recovery Console is the preferred method.

    8. Re:Okay...How do I install these things... by Anonymous Coward · · Score: 0

      sell your pjuter.

    9. Re:Okay...How do I install these things... by LordoftheWoods · · Score: 1

      You can't just 'remove' your bootloader. You have to replace it with something else, namely the windows bootloader.

      Run your XP cd and choose 'recovery console' then just type FIXMBR [ENTER] FIXBOOT [ENTER]. After this GRUB will be gone and you will not be able to boot Linux.

      Neither Windows nor Linux can 'uninstall' themselves. You uninstall them by blanking the partition they live on. So once in windows, format your linux partition as NTFS or FAT32 so you can use it with windows. If it's on the same drive as your Windows partition, you could also remove the partition use a partition resizing tool to 'grow' your Windows partition to the full disk size.

    10. Re:Okay...How do I install these things... by Anonymous Coward · · Score: 0

      Don't do what I did.

      I had exactly the same situation, so I just resized the NTFS partition with knoppix (QParted). My computer wouldn't boot anymore, and I had to format it and reinstall windows from scratch.

      I lost quite a lot of stuff, as I didn't have a recent backup lying around...

      I wish I had thought about that bootloader before I started. You're obviously doing better than me ;).

    11. Re:Okay...How do I install these things... by hdante · · Score: 1

      People already answered with some apps. The idea is that Windows or DOS install a very simple boot loader in MBR that actually calls the boot loader of some tagged partition (the 'DOS-active' partition). This information should be difficult to find because it's not a Linux thing. Anyway, there's a linux software that creates such a boot sector: mbr. I couldn't find it anywhere but at debian.

      Now for the 'get my disk space back' thing, this is both a not-so-easy thing and pretty much requested thing, that already has some interesting software

    12. Re:Okay...How do I install these things... by value_added · · Score: 1

      Perhaps a more useful link.

    13. Re:Okay...How do I install these things... by keosak · · Score: 1

      I use mbrfix http://www.sysint.no/Nedlasting/MbrFix.zip
      Documentation: http://www.sysint.no/Nedlasting/MbrFix.htm
      It works just fine for me. You run it directly from WinXP.

    14. Re:Okay...How do I install these things... by Anonymous Coward · · Score: 0

      In MS DOS based Windows (pre WinMe), boot with a dos boot floppy disc and type fdisk /mbr. This will overwrite your master boot record. This might not work with NT.

    15. Re:Okay...How do I install these things... by Anonymous Coward · · Score: 0

      Why did this get modded +5 when #13421998 said it right, and 5 minutes earlier?

    16. Re:Okay...How do I install these things... by mrs+dogbreath · · Score: 1

      You can use Disk Manager to re-claim the partion Right-Click My Computer & select Manage... Disk Manager is under Storage if its not obvious Another way I sometimes used was to put FreeBSD over the linux partion & then Fdisk/mbr but that may no longer work.

    17. Re:Okay...How do I install these things... by Kalak · · Score: 1

      You need to get rid of the "/" at the end or you get a 500, so use this link

      Thanks for the link.

      --
      I am, and always will be, an idiot. Karma: Coma (mostly effected by .hack)
  12. Too smart by KiloByte · · Score: 1, Interesting

    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.
    1. Re:Too smart by otomo_1001 · · Score: 1

      No it doesn't. It only needs one filesystem type it uses. GRUB can chainload 2000/XP off of NTFS partitions without any knowledge of the filesystem layout.

      Basically you format a /boot partition with all your GRUB setup. I personally throw my kernel bzImages in there as well. I use ext2 since it doesn't need anything advanced. Then adjust grub.conf accordingly.

      It really isn't bad, especially when I upgrade kernels. I just move bzImage to a bzImage.old and move a existing bzImage.old to bzImage.DDMMYY. (it is in a script)

      With this setup I don't need to worry at all about kernel updates causing problems. If they do, I just boot again with my existing bzImage.old option. Or if needed I can boot the other bzImages manually.

      Whereas with LILO I have to modify alot more after a kernel update, or if the kernel I compiled just doesn't work.

      This is the reason I love GRUB. It just works(tm)*

      * assuming you set it up intelligently :)

    2. Re:Too smart by TheRaven64 · · Score: 1

      For elegance, I still haven't seen anything that beets the first stage bootloader for FreeBSD. Hand-crafted (and very will commented) assembly they outputs a 512 byte file capable of displaying a menu and assigning a name to each bootable partition based on its type. Oh, and it remembers your last choice and uses that as a default for the next boot.

      --
      I am TheRaven on Soylent News
    3. Re:Too smart by Taladar · · Score: 1
      you run into deep shit
      Yeah, because reading something that is not a kernel image and executing it at boot time kills your whole harddrive and all your data...

      Bootloaders of the past require an external bootdisk every other time you install a new kernel because you forgot to run the program that writes config file changes to the bootsector. Grub doesn't have this problem. You can even specify a different image not even in the config from the boot prompt.
    4. Re:Too smart by Trevelyan · · Score: 3, Informative

      It does not need to understand the fs of all systems it is to boot.

      At minimum it needs to understand the fs that the stage2 files are stored.

      You can then use the chainloader to boot the boot loader on an individual partition. eg the windows bootloader on your c: ntfs partition. ie the way you suggested

      Of course if grub knows something about your kernel and the fs it is n, then it can do a lot more for you.

      For me the main thing about grub is that it does not need to be configured in advanced, so it make a good rescue disk.

    5. Re:Too smart by david+duncan+scott · · Score: 1

      Yeah, that is a nice bit of software, and I'm surprised it doesn't get more use outside of BSD.

      --

      This next song is very sad. Please clap along. -- Robin Zander

    6. Re:Too smart by ctr2sprt · · Score: 1
      The best approach, probably, is to write mini-filesystem drivers and store them in a well-known section of each filesystem (like the boot sector). The loader will load the drivers into memory and can use them to find the kernel, modules to preload, and so on. The drivers can be "installed" as part of mkfs/newfs/format, so you don't have to touch the boot loader even if you're showing it a filesystem that didn't exist when it was written. This is the way OS/2 worked (and might be the way Windows works now, I don't know).

      Let me tell you that a boot loader which understands filesystems is very handy. If you're familiar with Linux, you've probably come across initial RAM disks (initrds), which are used to load critical drivers - like for filesystems, hard disk controllers, and so on - without forcing them to be compiled into the kernel. This is a really powerful approach, but it's so complex and prone to failure. FreeBSD, to name one example, lets you load modules within the boot loader from the actual filesystem. Very convenient, elegant, and in my opinion a ton easier to use. (I believe GRUB is capable of this as well, it's only Linux that isn't. Or maybe both GRUB and Linux are capable of it and they just don't do it for whatever reason.)

      I am a little surprised that the article didn't mention FreeBSD's boot loader. It's very Unix-like (Forth!) and open source as well, so it would be a good comparison to "traditional" offerings.

    7. Re:Too smart by dryeo · · Score: 1

      OS/2 still works this way, newest mini-filesystem is for JFS. There are also mini-filesytems floating around for ext2, HPFS of course and also for network booting. Fat doesn't need one.
      I've moved my OS/2 installation quite a few times and it just works usually (once had to run sysinstx).
      Just today I updated my os2krnl,and os2ldr, rebooted and away it went.

      --
      https://en.wikipedia.org/wiki/Inverted_totalitarianism
  13. Get off BIOS by oaklybonn · · Score: 0, Troll

    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?

    1. Re:Get off BIOS by xenocide2 · · Score: 2, Informative

      You have no choice in the matter. The end.

      --
      I Browse at +4 Flamebait

      Open Source Sysadmin

    2. Re:Get off BIOS by qa'lth · · Score: 1

      Linux BIOS. All the power of Linux, now booting your computer!

    3. Re:Get off BIOS by Anonymous Coward · · Score: 0

      all the power of linux? so shouldn't that make it suck even more?

    4. Re:Get off BIOS by Anonymous Coward · · Score: 0
      "Are there any OpenFirmware based PCs?"

      Not really. What's ironic is that soon there won't be any new OpenFirmware-based Macs. Apple is ditching OF when the platform moves to Intel. BIOS based Macs will rule the day.

      *smells the burning Mac elitism*

    5. Re:Get off BIOS by slavemowgli · · Score: 2, Insightful

      Compatibility reasons. Why do modern x86 processors still have an A20 gate? Or, for that matter, why does Real Mode still exist? There's no real reason for it if you're only running modern OSes, but Intel/AMD/... know that there *will* be flak if they do get rid of these - somewhere, someone's still using DOS or something similar, and wants to be able to continue to do so.

      That's it, mostly.

      --
      quidquid latine dictum sit altum videtur.
    6. Re:Get off BIOS by MrHanky · · Score: 1

      After having worked with OpenFirmware on an OldWorld Powerbook, I can't really say I agree. It's a buggy peace of shit. Give me something that actually works.

    7. Re:Get off BIOS by mrjackson2000 · · Score: 1

      thats because it is an oldworld mac, it was buggy. newworld macs are much better.

    8. Re:Get off BIOS by Anonymous Coward · · Score: 0

      Nonsense. While commercial BIOS's are limited, fragile, and proprietary, we're stuck with limited tools like LILO nad Grub. However, projects like the LinuxBIOS project at http://www.linuxbios.org/ are taking a good shot at replacing the fragility and secrecy of most BIOS's with robust and documented tools that can actually be read and reset by the kernel, to allow you to do things like load a new BIOS or reset the serial console or hardware boot orders from your active operating system.

      It's quite exciting, even if the authors seem to think that "check it out of CVS and read the code" is how you do software versions.

    9. Re:Get off BIOS by prockcore · · Score: 1

      Coming from a Mac / { 68k, ppc } background, I can't understand why you people put up with BIOS.


      You know, to boot multiple OSes. On older G3's (and certainly anything before that) you have to run Linux from inside MacOS, because they can't boot anything but MacOS.

    10. Re:Get off BIOS by Mattintosh · · Score: 1

      I'm surprised it's not already used in some bass-ackwards hackjob form on PC's. Open Firmware would be an overclocker's wet dream.

      Seriously... you get fine-tuning control over the clock speed of any device on the system. Don't believe me? How 'bout an example? If you have a Mac, go into OF (hold option-apple-o-f at boot).

      - type dev /
      - type .properties
      See that "clock-frequency" item? Yeah, that's the hex value in Hz of your system bus. You can change it with setenv. You can really screw things up by changing this setting, so don't blame me if you hose your Mac this way.

      More resources:
      Part 1
      Part 2
      Part 3

      And one more resource that seems to suggest that the new Intel-based Macs will need to have Open Firmware or a suitable replacement by release:
      Universal Binary Info

    11. Re:Get off BIOS by halleluja · · Score: 1
      BIOS a bloody joke, and you should all be ashamed.
      Despite its limitations, it still works after decades. Considering the variety of third-party hardware it "supports" you cannot really compare this to limited Apple stuff.

      I loved the old terminals and Indies which had much more administrator functionality in ROM.

      BIOS is basic, you set it up correctly once, turn off the messages and boot. And, apart from some quirks, almost never breaks down. If one of the terminals or Indies broke down, there was *big* trouble.

    12. Re:Get off BIOS by xenocide2 · · Score: 1

      Look at the name. And you're arguing that getting away from BIOS is possible with that?

      --
      I Browse at +4 Flamebait

      Open Source Sysadmin

  14. A study about Linux bootloaders maybe? by Knome_fan · · Score: 1

    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.

    1. Re:A study about Linux bootloaders maybe? by game+kid · · Score: 2, Informative
      you can use the Windows Boot Manager to boot Linux, but...its a major pita

      You mean without WinGrub? I use it with Windows XP/Fedora Core 4 and love it.

      As for LILO...never tried it.

      --
      You can hold down the "B" button for continuous firing.
    2. Re:A study about Linux bootloaders maybe? by Anonymous Coward · · Score: 0

      This article can be helpful.

      k thx bye

    3. Re:A study about Linux bootloaders maybe? by Mr.+Shiny+And+New · · Score: 1

      actually, using the windows boot loader to boot linux is pretty easy as long as you chain it to a linux boot loader. Just install grub/lilo on your linux partition instead of your MBR, use dd to read the first 512 bytes of that partition and store it as a file in your windows root, and add a line in the boot.ini that points to that file. dd is even available for windows, both with and without cygwin, so you don't even need to be in linux to do this.

  15. don't type # [n/t] by sum.zero · · Score: 1

    this text is not here.

    sum.zero

  16. Could a micro-OS bootloader aid security? by G4from128k · · Score: 4, Interesting

    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.
    1. Re:Could a micro-OS bootloader aid security? by joelsanda · · Score: 3, Interesting

      The Macintosh Classic had this. For some reason, during graduate school the night before a paper was due, my HD wouldn't boot. I accessed three keys on the keyboard while turning the machine on. The Mac booted from a ROM OS and presto - my Mac was up and running and the HD, though unbootable, still worked so I could access my word processor and documents.

      --
      The Luddites were ahead of their time.
    2. Re:Could a micro-OS bootloader aid security? by AdamInParadise · · Score: 2, Informative

      You've just described the basic architecture proposed by the TCG. Microsoft is planning to use this architecture in order to implement Palladium (Palladium and the TCG are two different things).

      Anyway, this concept can be traced back to the seventies. It's coming alive only now because:
        -- security is much more of an issue,
        -- it's just damn hard to get it right,
        -- it's just damn hard to get everyone to agree on a common spec.

      Regards

      --
      Nobox: Only simple products.
    3. Re:Could a micro-OS bootloader aid security? by dodobh · · Score: 1

      You mean, the whole TCPA, Palladium thing?

      --
      I can throw myself at the ground, and miss.
    4. Re:Could a micro-OS bootloader aid security? by ezzzD55J · · Score: 1
      -- security is much more of an issue,

      And what I don't like about palladium or whatever it's called nowadays, is that their so-called security is protecting parties outside the PC from the PC owner. In other words, the PC owner is the adversary in these 'security' features. Great thought, isn't it.

    5. Re:Could a micro-OS bootloader aid security? by kinema · · Score: 2, Interesting
      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.
      Take a look at LinuxBIOS.
    6. Re:Could a micro-OS bootloader aid security? by AdamInParadise · · Score: 1

      Security is particularly bad under Windows. Part of the problem is that everybody runs as Administrator, which is really bad, and Microsoft seems unwilling to tackle the root of the problem. This means that antiviruses and firewalls run at the same priority level as the malwares they are trying to fight: protecting the integrity of the system is just impossible.

      So this architecture could introduce some kind of a "super-administrator" account. Now the question is, who has the password for the "super-administrator" account? Cause someone needs to "login" from time to time say, to update the checksum of the kernel when a patch is released. Should the user have it? Do you think that Microsoft could prevent independant software developers from creating software that require the user to give this password all the time. Maybe, but I would not bet on it. Or should Microsoft keep the password, effectively turning millions of machines into "Microsoft-managed" clients? On one hand, it may seriously cut down on spyware and malware.
      On the other hand, it may turn the traditional PC into nothing more than a Microsoft client. The market will judge (meaning that if people are willing to believe that Microsoft can solve their security problems, they deserve it).

      Of course, every other OS out there (short of PalmOS) got it "right" from the start. However, a "secure module" would still be nice to have to store PGP keys, kernel checksums and the like.

      --
      Nobox: Only simple products.
    7. Re:Could a micro-OS bootloader aid security? by Minwee · · Score: 1

      That sounds like a good idea. The problem is finding a name for it. Should it be the ARC or SRM Console?

    8. Re:Could a micro-OS bootloader aid security? by ZosX · · Score: 1, Flamebait

      Yeah. I remember this too. For all the bad things they say about Macs, they still did some things that no PC ever could and this was one of the cooler ones. Another nice thing was that it was relatively easy to select boot drives, so you could just simply plug in an external drive and boot away. PCs took a long time to catch up in this regard. Usually when it was running right, MacOS would just work for the most part and never really threw many curveballs. Prefs could be drug out of their folder, applications could be installed just by copying them onto the drive, fonts were easily dropped into the font folder, everything was relatively simple to set up and run and they all used the same paradigms. Like using a system briefcase that you can open up and add things to the right folder. Don't know about the constant floating menubar, but I guess some people liked that. For what it's worth the start bar is a lot more obtrusive and a lot more useless in the windows world. I always set it to autohide and that really should have been the default from the start.

  17. Non-recursive acronym by Scratch-O-Matic · · Score: 1

    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.
    1. Re:Non-recursive acronym by arodland · · Score: 1

      No, it's GNU software, which means that it's got to be worse than that. I suggest:

      GRUB -> GRill Unified Bootloader
      GRILL -> GRub Is Linux Loader

  18. booting from CD with LILO or GRUB by Anonymous Coward · · Score: 0

    My bios won't let me boot from CD. Can I install grub and use that to boot from CD?

    1. Re:booting from CD with LILO or GRUB by agrippa_cash · · Score: 1

      No, I believe there is some neigh-insurmountable problem in getting a bootloader to hand off control back to the bios for a CD boot.

    2. Re:booting from CD with LILO or GRUB by mopslik · · Score: 2, Informative

      It's better to try something like Smart Boot Manager. It brings up a menu allowing you to boot from any of your listed devices.

      I have used it several times when installing Linux on older laptops that do not allow CD-booting.

    3. Re:booting from CD with LILO or GRUB by snakeplissken · · Score: 1

      i use grub to have a smart boot manager image as a boot option, that way i don't have to mess with the bios of my laptop if i want to boot from cd, i leave the bios set to boot from hard disk. using memdisk i can boot floppy images.
      to do this use smart boot manager on a floppy, configure it to autoboot from cdrom, save the config back to the floppy, then save that floppy image and get grub to boot it when you select 'cdrom' from the grub boot menu, as far as i know lilo won't boot a floppy image or memdisk, i also have an option in grub to boot the 2.8mb tomsrtbt image as an emergency tool,
      my menu.lst looks like this (note, in the article this file seemed to be called grub.conf):
      blah blah
      usual stuff

      ###snake's extras
      title cdrom
      kernel(hd0,1)/memdisk
      initrd (hd0,1)/sbm.img

      title tomsrootboot
      kernel (hd0,1)/memdisk
      initrd (hd0,1)/tomsrtbt.img

      (hd0,1) is my /boot partition in which i put the tomsrtboot floppy image, the smart boot manager flopppy image as well as memdisk which i found at http://syslinux.zytor.com/

      very useful

      snake

  19. Shoelace by bsd4me · · Score: 1

    Reak geeks still use shoelace...

    --

    (S(SKK)(SKK))(S(SKK)(SKK))

    1. Re:Shoelace by Anonymous Coward · · Score: 0

      True, yet they have to feed on reaks and reeds.

  20. overwhelming majority don't dual boot by Anonymous Coward · · Score: 1, Interesting
    and i suspect in most cases that linux's built-in boot loader would suffice.

    $ file /boot/bzImage
    /boot/bzImage: x86 boot sector

    1. Re:overwhelming majority don't dual boot by ScytheBlade1 · · Score: 1

      Correct me if I'm wrong, but that was used for back in the day when you could just write the kernel to a floppy just like that, and boot from the floppy.

      I also believe that's been disabled now, even though it claims to be a boot sector.

    2. Re:overwhelming majority don't dual boot by hdante · · Score: 1

      AFAICT, the whole kernel should be in a contiguous space starting in sector zero (because the kernel boot sector was designed to be used in floppies), so if you have done this in your HD I suppose you've lost your first 8 MB. Anyway, now it's written in the kernel README:

      - Booting a kernel directly from a floppy without the assistance of a bootloader such as LILO, is no longer supported.

      Anyway, this bootloader thing is too much x86-centric. Better solutions would be either use a bigger boot sector, or even better, move the boot loader to a ROM.

    3. Re:overwhelming majority don't dual boot by shywolf9982 · · Score: 2, Informative

      Well, I don't dual boot but i still use LILO/GRUB. Why? Because every time I recompile a new kernel, I add a new entry to the bootloader menu so I can easily access the old kernel in case something went wrong. Or to add a "safe mode" or such that allows me to avoid to type dozens of params. It's pretty useful.

      --
      nbody2002:If you can read this you may be addicted to the internet
    4. Re:overwhelming majority don't dual boot by Anonymous Coward · · Score: 0

      yeah, i'm sure they included an x86 boot sector just to fake everyone out.

    5. Re:overwhelming majority don't dual boot by slavemowgli · · Score: 1

      I think you're misunderstanding the problem, though - the BIOS (on x86 boxen) only loads 512 bytes from disk, so you *have* to have some code that pulls in the rest of the kernel from disk. Whether that's in the kernel or a bootloader doesn't matter, of course, but I don't think that Linux does that (at least not by default).

      --
      quidquid latine dictum sit altum videtur.
    6. Re:overwhelming majority don't dual boot by SpaceLifeForm · · Score: 1
      That is true for pre-2.6 kernels and if it was x86. Now the Linux 2.6 kernel requires a bootloader. The best you can do IMO is to create a minix fs on a floppy with LILO. You can use GRUB also, but it does require a bit more space, which shrinks your freespace for the kernel.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
    7. Re:overwhelming majority don't dual boot by bcmm · · Score: 1

      Yes.

      Now try and compile a kernel to fit in 512 bytes. That's the size of a boot sector.

      FYI, file will identify a whole x86 disk or partition as "x86 boot sector".

      --
      # cat /dev/mem | strings | grep -i llama
      Damn, my RAM is full of llamas.
  21. Re:WHAT THE FUCK, SLASHDOT? by oaklybonn · · Score: 1, Funny

    Murder? Is this more intelligent design bullshit?

  22. How To Clone a Bootable Drive by Doc+Ruby · · Score: 1, Offtopic

    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

    1. Re:How To Clone a Bootable Drive by bobbozzo · · Score: 1
      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.

      Won't work for lilo, but IIRC that should work for grub.

      --
      Nothing to see here; Move along.
    2. Re:How To Clone a Bootable Drive by hackstraw · · Score: 1

      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.

      Thats worked for me for years.

    3. Re:How To Clone a Bootable Drive by lidocaineus · · Score: 1

      Do you mean this? Because it's clearly listed in the lilo mini how-to...

    4. Re:How To Clone a Bootable Drive by Doc+Ruby · · Score: 0, Offtopic

      Moderation 0
          50% Offtopic
          50% Insightful

      "Boot Loader Showdown": "How To Clone a Bootable Drive"

      TrollMods don't care about the topic. They just lose arguments in other threads, then anonymously attack.

      --

      --
      make install -not war

  23. Re:AMD64 (LILO doesn't work on AMD64) by Kalzus · · Score: 1

    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
  24. It's fixmbr. by game+kid · · Score: 4, Informative

    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.
  25. Somebody didn't get the joke ;-) by einhverfr · · Score: 1

    No text.....

    --

    LedgerSMB: Open source Accounting/ERP
  26. Re:I'm using yaboot by Anonymous Coward · · Score: 0

    me too! you'd think IBM of all companies would use it...

  27. More meat... by Imposter_of_myself · · Score: 1, Insightful

    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.

  28. Explaining the joke :-P by einhverfr · · Score: 2, Informative

    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
    1. Re:Explaining the joke :-P by StikyPad · · Score: 1

      So y = r^3/3. And if you determine the rate of change in this curve correctly, I think you'll be pleasantly surprised.

    2. Re:Explaining the joke :-P by Anonymous Coward · · Score: 0
      So y = r^3/3. And if you determine the rate of change in this curve correctly, I think you'll be pleasantly surprised.

      Huh? I get your calculus (y' = r^2) but not your joke.

    3. Re:Explaining the joke :-P by einhverfr · · Score: 1

      Why are squared?

      --

      LedgerSMB: Open source Accounting/ERP
    4. Re:Explaining the joke :-P by Anonymous Coward · · Score: 0

      Ahh. So it's like the classic "pi are squared", except it makes no sense. Got it.

  29. PPC boot loaders by Eternal_Flame · · Score: 1

    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~
  30. LILO vs GRUB by 93+Escort+Wagon · · Score: 4, Interesting

    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
    1. Re:LILO vs GRUB by Anonymous Coward · · Score: 0

      I agree that Grub sounds better, it's just that I've gotten used o lilo.conf and I don't feel like learning another arcane way of configuring a boot loader.

    2. Re:LILO vs GRUB by kermitthefrog917 · · Score: 1

      All I know is that i recompile my kernel nearly daily... (Summertime, no school, why not try and break my gentoo system.) And in all reality the simple fact that i can run "make install" and be done with it all. dont need to worry about risking the MBR.

      --
      I may be wrong but you're downright ugly!
    3. Re:LILO vs GRUB by evilviper · · Score: 0
      GRUB rocks.

      It's command-line interface sucks, IMHO. I'm sticking with lilo, because it's trivial to add parameters, change settings, etc., at the lilo command-line before boot-up. Grub is much more complex and picky about it.

      Its just too easy to render a computer unbootable with LILO

      Yeah, I did that once when I was just learning Linux, and never in the many years since. Is it really that hard to remember to run lilo? Come on. You can put "lilo" in your shutdown script and have it run automatically if you really have that much of a problem typing "lilo".
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  31. Re:The need for a better BIOS by back_pages · · Score: 3, Insightful
    Hence the need for a better BIOS!

    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.

  32. Re:WHAT THE FUCK, SLASHDOT? by Anonymous Coward · · Score: 1, Insightful

    Okay, lets all say this together......

    Slashdot is NOT CNN!!!

    Looks like someone needs to up their dosage;)

  33. Re:WHAT THE FUCK, SLASHDOT? by Anonymous Coward · · Score: 0, Interesting

    Not to sure if you noticed the subtitle for this site... "News for Nerds" as in tech news, its not the freakin weather channel.

  34. All the praise for GRUB?? by Isldeur · · Score: 0

    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).

    1. Re:All the praise for GRUB?? by Stumbles · · Score: 1

      What's so hard about it's syntax? If you refer to how it identifies say the 1st drive and 2nd partition in the system as hd0,1 then learn how to count.

      --
      My karma is not a Chameleon.
    2. Re:All the praise for GRUB?? by hdante · · Score: 1

      Putting in other words:
      1. With grub I had to read the manual.

      Now there's another:
      2. Grub didn't load in my roommate's SATA HD on his amd64. He had to switch to LILO. Problems with his BIOS ? Probably. Grub didn't load.

    3. Re:All the praise for GRUB?? by Anonymous Coward · · Score: 0

      > What's so hard about it's syntax? If you refer to how it identifies say the 1st drive and 2nd partition in the system as hd0,1 then learn how to count.

            Since you don't seem to know when to use "its", rather than "it's", it is difficult to understand how you can muster the authority to advise anybody to learn.

    4. Re:All the praise for GRUB?? by Anonymous Coward · · Score: 0

      Ahem. Lilo does have an interactive (even graphical!) command interface to choose different boot options. Somebody please input the lilo.conf for that, I've moved to Mac. ;)

    5. Re:All the praise for GRUB?? by Anonymous Coward · · Score: 0

      Your problem is not grub, maybe your bios, I have AMD64 & SATA HD with Suse 9.3

    6. Re:All the praise for GRUB?? by hdante · · Score: 1

      It's not my problem. I have an AMD64 and a SATA HD and I use Grub. The problem happened in my friend's AMD.

  35. What?! No NTLDR?? by lullabud · · Score: 1

    ...not even for comic relief?

  36. MTCW by Anonymous Coward · · Score: 0


    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.

  37. Quik by Anonymous Coward · · Score: 0

    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!!

    1. Re:Quik by Anonymous Coward · · Score: 0

      Open firmware sucks ass. Who thought it was a good idea to have it default to serial console? There appears to be a half-hearted attempt to get a console on the screen, but that's non-functional. Piece of crap.

    2. Re:Quik by vga_init · · Score: 1

      Open firmware (Apple's implentations at least), has some fairly lamentable problems. I can't get this oldworld powermac to load anything, and I've spent a few good hours just reading documentation on open firmware commands and techniques. This particular machine, however, loads the OF onscreen, and I'm sure that all newworld Macs default to this as well. As far as I know, serial console is only the default on particularly old versions of OF, and it may be possible to change this setting with the MacOS "Systemdisk" utility (basically an OF updater).

  38. GRUB on AMD64 by Craig+Ringer · · Score: 2, Informative

    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.

    1. Re:GRUB on AMD64 by tiwaris · · Score: 1

      To boot windows, this is what you need to do: >rootnoverify (hd0,x) (assuming windows is on parition no. x+1 of your first drive). >chainloader +1 >boot and it will do. If you do not know how many disks and partitions you have just press tab after typing "root (hd" and again make use of tabs to figure out partition. Just my two cents.

      --
      __ Tiwaris
    2. Re:GRUB on AMD64 by spleentor · · Score: 3, Informative

      if windows is on a secondary hard drive, but it thinks its on a primary drive, you need to edit grubs menu.lst as such:

      title Windows

      root (hd1,0)

      map (hd0) (hd1)

      map (hd1) (hd0)

      chainloader +1

    3. Re:GRUB on AMD64 by Anonymous Coward · · Score: 0

      ...
      map (hd0)(hd1)
      map (hd1)(hd0) ...

      Tada! Windows boots off secondary drive. Multiple people are complaining about this, yet it's their fault that they haven't bothered to learn how to use grub.
      I'm a Linux noob and I don't know how to program in any language, but I managed to get WinXP booting off a RAID array, and later (realised that my onboard raid sucked), off a secondary drive, all with a little bit of time spent experimenting and reading the GRUB manual.

  39. Don't feel bad by lullabud · · Score: 1

    Not everybody missed it. I thought it was funny, even before reading all the comments by the people who completely missed it. :)

  40. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  41. Re:WHAT THE FUCK, SLASHDOT? by KwKSilver · · Score: 0, Offtopic

    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.
  42. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  43. a name for everything by JohnDeHope3 · · Score: 1

    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*.

    1. Re:a name for everything by TeknoHog · · Score: 1

      There should be "the operating system" so that people would not have to worry about complicated names such as Linux, OSX or Windows.

      --
      Escher was the first MC and Giger invented the HR department.
    2. Re:a name for everything by imroy · · Score: 1

      Right.
      One boot loader, one window manager, one desktop environment, one web browser, one email reader, one word processor, one media player, etc, etc. Everything else will be sacrificed, and the remainders dumbed-down, all in the name of "user friendliness" so that Linux can attract the "windows people".

      But why do we need these people? Linux/FOSS development is still very much non-commercial, so we don't really need their money. And I'm sure very few of them are developers or otherwise able to contribute anything to Linux/FOSS.

      So you're suggesting that Linux/FOSS change... for what? Just so that the clueless hordes of windows users come over to our camp? Sounds like a whole lot of work (and other sacrifices) for little or no return. No thanks.

    3. Re:a name for everything by void*p · · Score: 1

      Having lots of choices is as much a part of Linux's nature as having no choices is part of Windows'. Unless they invent a "Windows For Users of Linux". Can you imagine?

    4. Re:a name for everything by jayloden · · Score: 1

      Ok, and then you go looking for some help/support on your Linux install.

      User: "My boot loader isn't loading the OS properly"
      Support: "Ok, and what boot loader are you using?"
      User: "The boot loader"
      Support "..."

      Get the idea? They have names for a reason. Even the Windows boot loader has a name, NTLDR. In fact, it even has a config file, only instead of /etc/lilo.conf or /boot/grub/menu.1st, it's C:\boot.ini

      My mother and my fiancee both use Linux. They've used Mandrake, Slackware, and Kubuntu Linux so far, and both lilo and Grub. Guess what? Neither of them has ever heard the name "Lilo" or "Grub" or probably even the term "boot loader". To them, it's indistinguishable from any other part of the OS and the boot process. In short, the truth is it really doesn't matter that they have names, whether you're a hacker, a windows refugee or the proverbial grandma computer user.

      You learn as much about your computer as you care to, and no more. If you dig around enough to find out that there's even such a thing as "Grub", then more power to you, and it will make it easier to look up information about "Grub" than "that boot loader thingy".

    5. Re:a name for everything by KC1P · · Score: 1

      The hard disk boot loaders have names because they are add-ons. Originally (as of kernel 0.13 anyway, dunno before that), Linux booted only from floppy, so that loader was "the boot loader". Well at least dual-booting was easy, the floppy was either in or out.

    6. Re:a name for everything by Anonymous Coward · · Score: 0

      But why do we need these people? Linux/FOSS development is still very much non-commercial, so we don't really need their money. And I'm sure very few of them are developers or otherwise able to contribute anything to Linux/FOSS.

      You can not have been paying much attention to the short-term computer future. Today, Linux users hack around to view and play almost any content. I'm not talking about piracy here, I'm talking about codecs and compatibility (win32 codecs? wine?).

      Tomorrow, content can only be viewed / played back on "Trusted Hardware" running a "Trusted OS" using "Trusted Applications". Guess what? Linux and MPlayer isn't. Hacking around it will be difficult (in hardware), dangerous (DMCA, EUCD) and underground (meaning the official distros will be completely crippled).

      What do you need? Market share. So many users that they can not afford to shut Linux users out. It's not about quality, it's about simple bulk quantity. A broke teenage blonde with no two coherent thoughts in her head using Linux is a win for Linux. What does she contribute? Mark-1 eyeballs.

      Linux could own the server room. Linux could own the corporate desktop. But if Linux is made useless for the home desktop and home entertainment, how many of those non-commerical developers would be interested in tinkering around with it?

      Remember, this would be a big step back from where it is today. Software that is today fairly feature complete (web browser, music player, video player) will be set back years.

      Kjella

  44. What a complete waste of time... by Zenin · · Score: 1

    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 /. uid is better then your /. uid
    1. Re:What a complete waste of time... by Brandybuck · · Score: 1

      Maybe I want to run two operating systems on my NEW system! Maybe I didn't sell my old system on eBay. Maybe I didn't give my old system to charity. Maybe I didn't give my old system to the neighbor kid starting college. Maybe I ONLY HAVE ONE SYSTEM!

      I've had eight PC systems in my life. The thought that I should still have all of them sitting in my closet gathering dust is absurd.

      I don't care if a new system is only fifty bucks! Why waste the fifty bucks when you have fifty gigabytes unused on your harddrive!

      --
      Don't blame me, I didn't vote for either of them!
    2. Re:What a complete waste of time... by SanityInAnarchy · · Score: 1

      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.

      Not too imaginative, are you? Couldn't possibly imagine a situation where, maybe, the old boxes aren't fast enough for something you want to do with multiple OSes?

      I play Quake3 on Linux, becaues it's much faster and better that way. I play Counter-Strike: Source on Windows, for the same reasons. And there's a rather long list of similar situations. Disk space is cheap compared to an entire gaming computer.

      Now, try this:

      I spent over $1000 on my new gaming rig.

      I spent less than five minutes configuring GRUB to boot Windows and Linux.

      Let's see... five minutes saves me $1000.... five minutes is one twelfth of an hour.... so I'd have to be making at least $12,000 an hour before it make sense to buy two computers.

      Alright, let's assume you're right, and it's only $200. I'd still have to be making $2,400 an hour before it'd make sense.

      Hint: I'm a college student. How likely is it that I'm worth even $1,000 an hour?

      Actually, the most I've been paid lately is $10 an hour. Meaning for my needs, it cost me less than $1 to set up dual-boot, versus spending over $1,000 on a comparable new computer.

      Probably 99.9999% of users who want/need multiple OSes aren't making anywhere close to $1,000 an hour, either.

      So, where we define "practical" as "saving money", I just spent one THOUSANTH the money I'd have to with your approach. I'd say GRUB is practical as hell.

      --
      Don't thank God, thank a doctor!
    3. Re:What a complete waste of time... by Pharmboy · · Score: 1

      There are several circumstances where dual booting is the better choice. Many people want to switch to Linux, but can't do so immediately, so they need both so they can switch back and forth, and use the same data files. These are not ubergeeks, they are curious users with a modest to medium amount of geekiness.

      Also, many have several computers, as you say, but one "really good" computer, and they want to run both Linux and Win on it. They might have Linux on an old 1.5ghz, and WinXP on an old 2ghz, but they want to run both on their new shiney game box. Also, some games will run on Linux now (a few) and some will with Wine. Dual booting lets them use both OS's on their best hardware.

      Me, I am about to make my media center a dual boot system. I already moved all my media files over to the Samba server, but I am nervous about using Linux as the OS for media. I am very comfortable using Linux on the server and desktop, but it is far from perfect as a media center, AND my Windows box does work well enough. It will stay dual boot until I work the bugs out, and maybe afterward to run a few Windows only games (it has a 51" TV, which makes Half Life 2 pretty awesome).

      Networking different computers with different OSs is great. Having to use switch boxes or move to use another OS isn't. Expecially with a totally wireless media center.

      You might say "yes, but you don't have to, you can do $x instead" but for many circumstances, dual booting *IS* the best option, even if it is only temporary. This way I don't miss the opportunity to use the media center while I am tweaking Linux for it.

      --
      Tequila: It's not just for breakfast anymore!
    4. Re:What a complete waste of time... by Anonymous Coward · · Score: 0

      I don't know about you, but I don't have the desire to have 5 extra towers lying around my room for my different OS's, even if they are "only" $200 each.

    5. Re:What a complete waste of time... by bperkins · · Score: 1

      1) 99% of the time I use linux. I still need a boot loader, since I ocassionally need to use a different kernel.

      2) init=/bin/sh will get you out of a lot of hairy situations. (init=/bin/ash.static can be useful to.) You need to interact with the boot loader to pass kernel parameters.

      3) BIOS upgrades are often windows only. Some software only works under windows. I'm not interested in using two laptops for the job.

    6. Re:What a complete waste of time... by heatdeath · · Score: 1

      Laptops are expensive. Configurations with more than one computer are expensive, take up quite a lot of space, and generate a lot of heat. It's also more of a hassel in general.

      If you develop code on linux, but still want to play video games...and want a fast computer for both, it makes a lot more sense than using a dual machine configuration.

      Actually, you're just an annoying troll, and I don't know why I'm actually giving you an answer. Excuse me while I use my freshly acquired moderator points to mod you down.

      --
      I'm sorry. The number you have reached is imaginary. Please rotate your phone 90 degrees and try again.
    7. Re:What a complete waste of time... by Zenin · · Score: 1

      I forgot to add: Cygwin - Trivially blowing away 99% of duel-system needs.

      So we're down to 1% of "needs". Lets review the follow ups:

      Brandybuck - "I've had eight PC systems in my life"
      Then STFU. You are the poster child for my argument.

      SanityInAnarchy - "I play Quake3 on Linux, becaues it's much faster and better that way."
      *Yawn* Another clueless uber-geek. If you were a Linux user and booted Windows to play games, you might have had a hint of a valid argument. But the other way around? *bizz*, you lose, thanks for playing.

      Pharmboy
      At least Pharmboy had some valid cases, albeit still only talking about 0.0001% of cases. And that's really my point: 99.999% of cases made for dual-booting are simply bogus, the actual tiny fraction of valid cases are themselves mostly done as short-term hacks. So why spend so much time on super-perfecting dual-boot? And why the hell should it get anywhere near front-page slashdot coverage?

      bperkins
      boot loader vs multi-boot loader. -Strawman, give me your email and I'll paypal you a $1 to buy a clue.
      WRT BIOS updates you're just wrong. -Most bios updates are done via floopy, via DOS or no OS.

      heatdeath
      Please quote where I mentioned the word "laptop". WTF are you talking about? Although it is funny to see you thinking you can post and mod at the same time. It's a real shame...the collective IQ of /. is dropping like a rock...

      --
      My /. uid is better then your /. uid
  45. Get used to it by cortana · · Score: 1

    After all, Apple is switching to Intel... ;)

    1. Re:Get used to it by Anonymous Coward · · Score: 0

      And as we all know, it is a physical impossibility to build a computer with no BIOS and a processor manufactured by Intel Corp.

    2. Re:Get used to it by cortana · · Score: 1
      Perhaps you should read Apple's documentation on the subject.
      "Macintosh computers that use an Intel microprocessor do not use Open Firmware."
      Goodbye, happines... hello, BIOS...
    3. Re:Get used to it by Mattintosh · · Score: 1
      "Macintosh computers that use an Intel microprocessor do not use Open Firmware." (italics mine)
      They're still in the beta phase (at best) on this project. It doesn't say anything about what kind of bootstrapping mechanism they'll use in production hardware - nothing about what they will or will not use once these are rolling off the line. For all we know right now, Apple is shoehorning Open Firmware and some PRAM onto an x86 motherboard alongside an honest-to-god Mac ROM chip. (Hey, I said it could happen, not that it was likely.)
    4. Re:Get used to it by qa'lth · · Score: 1

      SGI's 320 and 540-series Visual Workstations ran Intel chips, and a custom PROM based on what their IRIX machines ran.
      Intel XEON CPUs. dual and quad machines ,respectively.

  46. XOSL by crache · · Score: 2, Informative

    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/

    1. Re:XOSL by Anonymous Coward · · Score: 0

      It is still a great boot loader nowadays.
      I'm using it on all my multiboot PC.
      Its UI is really so attractive and it is great that it doesn't rely on any OS. Except, a bootable DOS floopy/CDROM for installing the XOSL to the MBR.

    2. Re:XOSL by KlaymenDK · · Score: 1

      > it is great that it doesn't rely on any OS

      Well, not quite. It does seem to require a master boot sector written by MS (DOS or any Windows).

      I've tried numerous times to wipe my HD and reformat it using FreeDOS, Mandrake Linux, FreeBSD, et cetera ad nauseam (incl. various Bart's boot disks and Ultimate Boot CD tools).

      None of them could avoid that XOSL reported "Installing ..... failed" (not verbatim). Mind you, I used to run XOSL with great happiness in the olden days (Dos/98/XP I think), and I was very happy with it. But these days, I just can't get it to install right.

      (I want nothing from MS on my machine (anyway, I wouldn't install Windows just to get a FAT partition), and I have no floppy drive.)

  47. Re:I'm using yaboot by Anonymous Coward · · Score: 0

    We're talking about real computers now. Your toy is so cute... maybe you could play with it outside.

  48. grammar police by Slur · · Score: 1

    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
    1. Re:grammar police by Anonymous Coward · · Score: 0

      You must be new here.

  49. Better contribute to wikipedia by alfonsocupidogo · · Score: 1

    I think they better contribute the Boot loader article at Wikipedia instead duplicating efforts

  50. NT Loader by teslatug · · Score: 5, Informative

    The author says "Unlike the Linux boot loaders, the majority of Windows boot loaders will not allow you to load Linux."

    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="Microso ft Windows 2000 Professional" /fastdetect
    C:\linux.mbr = "Linux"

    1. Re:NT Loader by bobbozzo · · Score: 2, Informative

      If you install lilo or grub into the boot sector of the partition linux which is installed, then you can point the NT loader at that partition without having to copy anything.

      --
      Nothing to see here; Move along.
    2. Re:NT Loader by allan_q · · Score: 3, Informative
      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.

      An easier way is to use BootPart to automate the whole process. It will even add an entry in boot.ini.

      From the site:
      BOOTPART creates a 512 byte file which contains an image of the boot sector that loads the boot sector of the partition. After, this file is declared in C:\BOOT.INI (a text file used by the Windows NT boot menu).

    3. Re:NT Loader by Anonymous Coward · · Score: 0

      linux.mbr holds the contents of the partition's boot sector, not another MBR. There is only one MBR per disk, and it holds the system's boot loader and the partition table.

      Analymous coward.

    4. Re:NT Loader by Anonymous Coward · · Score: 1, Informative

      The NT Loader isn't booting Linux. It's loading LILO (or GRUB), and LILO boots Linux.

  51. Re:WHAT THE FUCK, SLASHDOT? by Anonymous Coward · · Score: 0

    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

  52. Re:That would be NTLDR! by Anonymous Coward · · Score: 0

    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.

  53. Funky partition tables by snol · · Score: 1

    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.

    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, ... is there anything which just works?

  54. oh GAG me with a spoon! by Anonymous Coward · · Score: 0

    I use GAG: http://gag.sourceforge.net/

    It's awesome

  55. grub-2 all the way by Meeuw · · Score: 2, Informative

    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

  56. Let's see some more bootloaders! by SanityInAnarchy · · Score: 5, Informative

    I don't have the links, but Google is your friend:

    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 /boot partition if it doesn't natively support your / partition.
    - 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!
    1. Re:Let's see some more bootloaders! by Gallvs · · Score: 4, Informative

      It seems locked into a 30 second timeout

      Actually the NT bootloader timeout is configurable inside the boot.ini file:

      [boot loader]
      timeout=n
    2. Re:Let's see some more bootloaders! by jrutley · · Score: 1

      Contrary to what's listed, GRUB does not require a timeout.

    3. Re:Let's see some more bootloaders! by SanityInAnarchy · · Score: 1

      Contrary to what's listed, GRUB does not require a timeout.

      The alternative is having it sit forever, waiting for a keypress. I meant, in order to have a default that it will actually boot without user interaction, it requires a timeout.

      --
      Don't thank God, thank a doctor!
    4. Re:Let's see some more bootloaders! by Leffe · · Score: 2, Informative

      - kexec probably isn't very well documented, and possibly not entirely stable

      I've never had any problems.

      - I don't think kexec supports Linux-specific or Multiboot-specific stuff like setting the kernel commandline or loading a module/ramdisk.

      Of course it does!

      - No UI implemented yet at all, not even a kexec binary -- there's only a kexec system call, and most of us don't speak system calls directly, especially to boot our OS.

      kexec-tools.

    5. Re:Let's see some more bootloaders! by Anonymous Coward · · Score: 0
      fastboot/kexec is implemented. What's not done yet is crashdump. It works wonderfully. If I'm not mistaken, kexec is a syscall in the mainline kernel for at least x86, x86-64, alpha and powerpc. My 2.6.12.5 kernel has it, I don't remember when it was added


      Kexec and LinuxBIOS like solutions are nice, they are flexable but without a huge flash for replacing the BIOS is seems a little heavy handed still, unless you have some kind of minimal Linux "boot" partition that boots up a full linux to let you decide what to boot.


      GRUB is the way to go, it has a nice balance of things. It supports the different filesystems and since I've been using it I've never had to use a rescue disk, when I used lilo I never had one far from me, I do a fair amount of kernel development and the fact is I reboot a ton more than needed with different kernels to test different things or reset the system to a known normal state. You don't even have to edit the grub config and "install" a new kernel typically, if your hacking and know what you're doing, break in to the command line and boot a different one off the disk.


      I use JFS and XFS as root partitions on machines with no problems. Grub deals.


      There are some other projects out there, that system commander product sparked this "GUI boot menu" thing but grub does the job flawlessly and is rock solid.

    6. Re:Let's see some more bootloaders! by sinewalker · · Score: 1

      I am curious how this could work without a timeout? What do you mean? Seriously, not trying to flame, just confused...

      --
      “Our opponent is an alien starship packed with nuclear bombs. We have a protractor.” — Neal Stepnenso
    7. Re:Let's see some more bootloaders! by Anonymous Coward · · Score: 0

      Three bootloaders can have default w/o timeout, and allow switching OSes locally.

      Syslinux and LILO: hold Control Key
      NTLDR: press F8 just before end of BIOS post (about a 2 second window)

    8. Re:Let's see some more bootloaders! by sinewalker · · Score: 1

      ? How is this better than a 2 sec timeout? One still has to hit a key (in these cases, the right key) within a timeframe to avoid loading the default, or wait for 2 secs...

      Oh, I see. You want no-wait for unattended boot? Or shorter waits for attended reboots to the default OS? :-)

      Does reboot time matter that much? I suppose it does for Windows users, but even then, 2 seconds is too much? Or 1 second? How about 0 seconds and rely on the keyboard controller's type-ahead buffer? (not sure if that is cleared by the boot loader though, so maybe not...)

      The machine in my house is shared with pro-Windows people, so GRUB defaults to Win with a 5 sec timeout, which works out fine because from a cold start, by the time POST is completed and the screen's tube has warmed up (yeah, I'll get a panel one day...) the timer's down to about 2 secs remaining.

      --
      “Our opponent is an alien starship packed with nuclear bombs. We have a protractor.” — Neal Stepnenso
    9. Re:Let's see some more bootloaders! by KillerBob · · Score: 2, Informative

      My LILO bootloader has an option in the menu that never changes: the original install kernel, with append="3" to force it into runlevel 3. If, somehow, I manage to royally screw things up, I can choose that option to boot with a known-good kernel.

      As for what the grandparent was talking about, however... that option in the bootmenu doesn't show up. By commenting out the line "prompt" in the lilo.conf, it skips the menu and automatically boots the default image (2.6.12.3 kernel on the laptop). If, OTOH, I want the boot menu with the known good kernel, I hold down CTRL at boot, and I'm presented with the LILO bootmenu where I can choose whatever image I want.

      Incidentally... commenting out the "prompt" line will disable the automatic display of the menu irregardless of what you've set the timeout to. Likewise, holding down CTRL to force it to display the menu will show the menu with no timeout, no matter what the timeout is set to. With LILO, you only need to start typing, or on newer versions use the arrow keys to choose between menu options and the timer stops until you press return/enter.

      --
      If you believe everything you read, you'd better not read. - Japanese proverb
    10. Re:Let's see some more bootloaders! by SanityInAnarchy · · Score: 1

      You don't need a full LinuxBIOS for Kexec to make sense. You don't even need a separate boot partition.

      If it works the way I think it works, all you need is a decent Grub-like UI, a known-good kernel, and another bootloader, something simple (lilo), to load the "bootloader kernel". The idea is that by the time you actually screw up your root partition to the point where simple shell scripts and curses apps won't work, you probably want an actual rescue disk anyway. But, until then, it's nice to be able to boot anything from a simple menu.

      Still, I'm not switching off of Grub anytime soon.

      --
      Don't thank God, thank a doctor!
    11. Re:Let's see some more bootloaders! by Nailer · · Score: 2, Informative

      Great post, one addition: grub supports NTFS too.

    12. Re:Let's see some more bootloaders! by Anonymous Coward · · Score: 0

      My Grub is set up like that. By default, as soon as the BIOS has loaded Grub, Grub starts loading the default kernel (no win on my machine). If I hit ESC before Grub has loaded, it will show the boot menu, with no timeout. ESC again brings up the prompt, AFAIR.

      I'm at work now, so I can't tell you how it's done. Sorry.

  57. Grub hide and unhide by Anonymous Coward · · Score: 0

    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.

  58. OSNews had the same "Level: Introductory" story by Anonymous Coward · · Score: 0

    on 8/26.

  59. How about booting from USB by Mustang+Matt · · Score: 2, Insightful

    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
  60. Oh boy by EvilMonkeySlayer · · Score: 1

    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.

  61. Boot loaders illustrate a common problem nicely. by hackwrench · · Score: 1, Funny

    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.

  62. 'News for Nerds' by daniil · · Score: 1

    '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.
  63. I agree. by Anonymous Coward · · Score: 0

    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.

  64. Seems like a college freshman's... by skogs · · Score: 1

    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!
  65. Some info on boot sectors by Anonymous Coward · · Score: 0

    An overview of some boot sectors and how to write your own:

    http://alien.dowling.edu/~rohit/rg007.html

  66. Re:WHAT THE FUCK, SLASHDOT? by Anonymous Coward · · Score: 1, Insightful

    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.

  67. boring by Anonymous Coward · · Score: 0

    news for nerds?

  68. No Brainer by kmsz · · Score: 3, Insightful

    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.

    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 ... 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.

    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, ...), you can just try around like root(hd0,0) ... root(hd1,0) ... etc. until you find your partition.

    The only reason I kept LILO on some headless servers co-located at some distant places was the lilo -R ... 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.

    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

  69. back when i used IDE hard disks....... by Edzor · · Score: 1

    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.

  70. Where can I find... by code+shady · · Score: 1

    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
    1. Re:Where can I find... by Anonymous Coward · · Score: 0

      Start here (http://www.openfirmware.org/) What you have here is OpenFirmware a FORTH language based system that is really really powerful rather complete little OS. (There are examples of people doing windowing systems with it.)

      Not sure you could change the icons on the disk on boot but almost positive you could change it later while running.

      If you want to see this in great detail Do CMD O F on boot and you will get to the Openfirmware command line.

      --jim

  71. Boot to non-default by jhutchins · · Score: 1

    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.

  72. Boot loaders by Anonymous Coward · · Score: 0

    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.

  73. Booting multiple disks w/grub by Nimey · · Score: 1

    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
  74. LILO's just so damn sexy... by everphilski · · Score: 1

    ...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-

  75. grub4dos and grldr -- skip linux mbr altogether by Anonymous Coward · · Score: 2, Informative
    Grub4DOS makes dual-booting a lot less intrusive on a Windows system. From your NT+ box:
    • 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:
      title Debian Linux on first partition of second hard drive
      kernel (hd1,0)/boot/vmlinuz-2.6.10 root=/dev/hdd1
      initrd (hd1,0)/boot/initrd-2.6.10.img

      title DOS/Win9x/Me/NT/2K/XP on first hard drive
      chainloader (hd0,0)+1
      rootnoverify (hd0)
    • Add
      C:\grldr="Linux, et al via GRUB"
      to c:\boot.ini .
    Done. Notes:
    • New kernel? Just add it to c:\menu.lst like you added the first one.
    • Old kernel, new options (e.g., /boot/vmlinuz-2.6.10 single)? Copy-n-paste the old title/kernel/initrd entries in c:\menu.lst, change the title, and add the new options.
    • If you screw up an entry in menu.lst, you can still enter grub directly during boot and grope around for the right partition/directory for the kernel/initrd. Then write them down, boot up, and fix them appropriately in c:\menu.lst.
    • Want to boot by default into Linux? Change the 'default=' line in c:\boot.ini to point to your grldr entry.
    • Dont want to run Linux anymore? Just remove the line from c:\boot.ini.
    1. Re:grub4dos and grldr -- skip linux mbr altogether by sparkz · · Score: 1
      Old kernel, new options (e.g., /boot/vmlinuz-2.6.10 single)? Copy-n-paste the old title/kernel/initrd entries in c:\menu.lst, change the title, and add the new options.

      Does this method allow for changing the boot options at boot time, or require rebooting and editing a file? LILO and GRUB allow for such mods at boot-time.
      Most importantly for me, they allow for one-off changes (though the GRUB patch doesn't seem to have made its way to the mainstream distros - I had to patch grub myself to get a config working in the office which boots Windows, Solaris and Linux, in a way in which I can remotely reboot into my desired OS - Admittedly, I have to boot into Linux first (as the others can't read/write reiserfs AFAIK), but from home, I can boot a build server to Linux, build the software, reboot it into Solaris, build the Solaris package, reboot into Linux, reboot into Windows, build that package (courtesty of VNC), reboot back to Linux to get back to where I started from. That is useful.

      --
      Author, Shell Scripting : Expert Re
    2. Re:grub4dos and grldr -- skip linux mbr altogether by Anonymous Coward · · Score: 0
      Does this method allow for changing the boot options at boot time, or require rebooting and editing a file? LILO and GRUB allow for such mods at boot-time.

      grldr is GRUB, ported to Windows. So the interface is identical, and specifically, it allows arrowing-down to a boot option and hitting a key to edit the options on the fly (which I had to do myself a couple of times).

      I'm not sure what's involved in changing the boot default remotely without being at the console -- but if you can mount the NTFS c:\ as rw under linux/solaris, I'd think you can change the c:\menu.lst to change the default, then reboot the system.

    3. Re:grub4dos and grldr -- skip linux mbr altogether by Anonymous Coward · · Score: 0

      Thanks that rocks. With GRUB for Win I could port something like: bootnext [warning: use adblock or privoxy].
       
      Lets me pick my next boot choice from Fedora without waiting for the GRUB menu or messing with my default. Would be cool to get that running on Windows too.

  76. Open Firmware is the answer. by Anonymous Coward · · Score: 0

    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!

  77. SYSLINUX? by Anonymous Coward · · Score: 0

    Anyone tried Syslinux to compare with?

  78. GRUB doesn't grok USB by Anonymous Coward · · Score: 0

    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. :-(

  79. Re:grub-2 usability? by Anomalyst · · Score: 1

    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.
  80. heh by Anonymous Coward · · Score: 0

    I for one use open firmware, if my open disk goes cuputs it almost impossible for it not send me to crApple Os 10

  81. Re:The need for a better BIOS by sparkz · · Score: 1

    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
  82. And another one.... by Bake · · Score: 1

    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.

    1. Re:And another one.... by weapon · · Score: 0

      The way I have gotten around this (for linux boot disks only) is to copy the boot parts off the cd and use grub to boot them with grub.

      When I installed FC3 + FC4 I just coppied the boot folder to the hard drive and rebooted and loaded up the other kernel and intrd from the Grub command line, (When I installed FC3 It was on a fat32 drive with 98 installed booting from a Grub floppy disk)

    2. Re:And another one.... by maxwell+demon · · Score: 1

      Grub boots just fine from floppy. AFAIK it can't boot a CD.

      However, I didn't know that Lilo can boot from CD. How is this done? Because I just got the idea to have Grub configured to have an option to chainload a Lilo which itself does nothing than directly boot from CD.

      BTW, are you sure you can boot from CD with Lilo on that particular computer? Because I guess booting from CD will not work without BIOS support (after all, for El Torito you need to have an emulated floppy drive, the code for which I doubt will be in the bootloader).

      --
      The Tao of math: The numbers you can count are not the real numbers.
  83. Don't forget the Mac side by Anonymous Coward · · Score: 0
    There is also a simple bootloader included with Darwin/x86. The source is publicly available here. As far as I know it's not based on grub or lilo. It probably comes from FreeBSD, but other than that I don't know how it relates to some of the other bootloaders mentioned here.

    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...

  84. Re:WHAT THE FUCK, SLASHDOT? by Anonymous Coward · · Score: 0

    Fuck offtopic or troll, that's FUNNY!

  85. FreeBSd by paxmark1 · · Score: 1

    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?

  86. Re:grub-2 usability? by SPY_jmr1 · · Score: 1

    I don't think i'd be brave enough to try *anything* in an x85 environment, ;-)

  87. I think it is called "NTLDR" by cciRRus · · Score: 1

    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
  88. who cares? by nblender · · Score: 1
    It's a bootloader! For a broken architecture nonetheless. Are you people really so bored that all you can think to discuss is which bootloader is best? How about which 'ls' is best? With color or without? Or how bout tabs versus spaces? Only uses LILO. Only the true race uses Grub...

    Please.. Shouldn't you kids be out on a date tonight?

  89. to all that are having problems with grub by Flunitrazepam · · Score: 1

    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.
  90. Re:The need for a better BIOS by back_pages · · Score: 1
    Yeah, with numbers like this, it's pretty clear I'm wrong - there is a serious boot loader flaw with the x86/IBM clone platform that needs to be fixed.

    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.

  91. The best thing about GRUB... by ceswiedler · · Score: 4, Informative

    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.

    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 /sbin/lilo to update the MBR.

    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.

  92. A serious error... by CptnHarlock · · Score: 1
    That was kinda funny.. But this isn't:

    boot=/dev/hda
    map=/boot/map
    install=/boot/boot.b
    prompt
    timeout=100
    compact
    default=Linux
    ima ge=/boot/vmlinuz-2.4.18-14
    label=Linux
    root=/dev/hdb3
    read-only
    password=linux
    other=/dev/hda
    label=WindowsXP
    The "other=/dev/hda" should read "other=/dev/hda1" Since he mentions that it's on the first partition on the first disk..

    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, ..

    other=/dev/hda1
    label=WindowsXP
    table=/dev/hda

    Cheers...

    --
    $HOME is where the .*shrc is
    -- silver_p
  93. Woo! Showdown! by dysprosia · · Score: 1

    My money's on GRUB! Go GRUB!

  94. SuSE and grub by Anonymous Coward · · Score: 0

    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...

  95. There should be no need for boot loaders. by master_p · · Score: 1

    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...

  96. Why LILO instead of GRUB by RedHat+Rocky · · Score: 1

    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.

    I do note that GRUB has finally added a "boot once" option, as documented here:

    http://www.gnu.org/software/grub/manual/html_node/ Booting-once_002donly.html#Booting-once_002donly

    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.
  97. Re:Is MS a cause of off by 1? by Anomalyst · · Score: 1

    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.
  98. Why LILO is better than GRUB by Medievalist · · Score: 1

    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.

  99. Something that just worked for me ... by Anonymous Coward · · Score: 0

    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.

  100. Re:The need for a better BIOS by sparkz · · Score: 1

    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