Xandros Broke My Boot!
I had configured (with much blood, sweat, and tears) a multi-boot system, with WinXP Pro, Mandrake 9, and Slackware 8.1, on the same IDE0 drive on different partitions using LILO. I then created an extended partition, so I could add another partition and install another Linux distro. I chose Xandros, and it installed without incident and runs perfectly, as does WinXP. It also imported the other OSes, although incorrectly, it seems, and incorporated them into the "Xandros" boot menu. However, selecting any OS other than Xandros or XP from this menu results in a boot error:
Loading kernel Unexpected EOF Apparently, Xandros uses some flavor of LILO in their menu, but it seems to use some sort of custom label names for all OSes. Obviously, I could just go ahead and change the label names to those originally assigned, but I wonder:[list=1][*]Has anyone ever tried this with Xandros and dual/multi-boot?[*]What exactly does Xandros do to create its menu, and is it purely a LILO adaptation?[*]Is this an error that simply correcting label names will fix?[*]Is this gonna blow up my machine for good?[*]I've done some research on LILO, but does anyone know of a good LILO guide or a template I can use to overhaul my boot options?[/list=1] As always, thanks very much for your help. |
1. No
2. It is more than likely either a Lilo or Grub configuration 3. No 4. No 5. There should be a good howto at TLDP (see my sig). Ok, now that I have the minimalistic answers out of the way, I can tell you why I think it's not working... With both Lilo and Grub, to boot Windows all you need to do is point it at the correct partition. With other Linux distros, however, you will need to copy their kernel file (and possibly their initrd file) over to your Xandros boot partition and edit the boot config file. This is not as hard as it seems. If you boot to Xandros and list your partitions (fdisk -l /dev/hda) then you can see which are your Linux partitions. You should mount the one with the distro in question... if, for example, you had this: Code:
/dev/hda1 = Windows XP HTH |
Thank you Thymox; great help!
I didn't think to check for GRUB files while I was still home (at work now), but the clues do indeed indicate the loader is LILO-based. There are two LILO files in /etc very similar in name and size: lilo.conf and lilob.conf. I noticed two things in lilo.conf:[list=1][*]The third line of the file reads: "message=/boot/splash.lilo", which tells me where Xandros's boot loader background is kept, and[*]The label for the partition on which Slackware exists (/dev/hda5) reads: "label=Welcome_to_", and the image line reads: "image=/disks/welcome/dev/hda1". This hardly seems like a normal Linux image/path.[/list=1] BTW, what window manager do you use? ;) |
Hehe! No, it doesn't!
Setting up this to quadboot should be no more difficult than any other, now that we know which bootloader it uses. Basically, lilo needs to be able to read the kernels when it's being installed and when its being run. In order to do this, the easist way is to simply have all the necessary files in one place! And as for the Window Manager... I'll let you guess :D I was getting sick of every other thread being 'Which window manager is best... which do you use and why... I use XXX and it's slow, what do you use...' you get the idea. So, I put it in my sig. Glad to see someone reads these things! |
Ya just point lilo/grub to the right partitions.
|
OK, the more I look at the LILO config file Xandros has created, the more confused I'm getting; lots of stuff I've never seen before... I can't cut&paste it from work, but I did print it out, so I'll have to retype it... check out some of these lines like install= and map=, and the wacky label names Xandros comes up with! The file has no comments, so I'll add some below:
Quote:
|
Quote:
|
I'm not too sure about the Xandros boot menu options, but try this for the others:
Code:
boot=/dev/hda Code:
su root Hope this helps and good luck! |
Thymox, this is a thing of beauty... you've even spelled out my copy and mount commands for me... for what more could I ask? ;)
I will try them later from home and post the results. I do recall that, when I had LILO working previously, it didn't always present the boot menu... it just showed the LILO version line, then booted straight to the default OS without showing the menu, unless a certain key combination was pressed, a combination of which I'm not sure because it didn't always seem to be the same (unless I'm just that bad of a typist). Is this normal? I see a "timeout" value in these conf files, but nothing to denote how to activate the menu itself... Is this always <TAB> or is this configurable somehow? |
Lifted straight from the command man lilo.conf:
Code:
prompt Automatic booting (see `delay' above) will not take place unless |
I thought I'd better post some more information that I've found while doing some more research (since I'm still at work and can't yet tinker with my system at home!). Some miscellany that I've found, and unfortunately, not all in one place:
|
OK Thymox, I had to make some small changes to adjust to true file names; here's what I did:
Code:
linwinbox:~# mkdir /mnt/mandrake |
It worked!!! :D All OSes booted!! Details:
WinXP: booted & shut down perfectly! Xandros: booted & shut down perfectly! Mandrake: some errors on boot, froze during shutdown Slackware: some errors on boot, shut down perfectly As Mandrake booted, one error I saw was modprobe: can't locate fb0 . As Mandrake shut down, it spit out some errors: Unmounting NFS fils system: Cannot MOUNTPROG RPC: RPC: program not registered Umount2: device or resource busy Umount: /net device is busy FAILED FAILED As Slackware booted, two errors I saw were: SIOCSIFNETMASK: no such device eth0: unknown interface: no such device The only thing I can think of with the net/eth0 errors is that the machine has an ECS K7S5A motherboard and the ethernet card is built in, but it does have the latest drivers installed and it's not a problem with the other OSes. I don't recall seeing these errors before. Thanks for your help with LILO! If you've any ideas on the other problems, I'm all ears. |
I thought I should add some new info to finish this off. I installed another OS this weekend, and with Thymox's guidance below, it was no problem to add it to LILO!
However, I saw that once I rebooted, LILO was altered without my doing... here's some info I got back directly from Xandros support: Quote:
|
All times are GMT -5. The time now is 01:12 PM. |