Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-01-2008, 09:25 AM   #1
Registered: Jul 2007
Location: On an iland on the Gulf of finland
Distribution: openSUSE, Mageia, Ubuntu, ArchLab etc.
Posts: 32

Rep: Reputation: 15
Question How to "translate" grub bootloader to extlinux?

It's my habit to install 2-3 linux's on my computer (some people say it's a bad habit). Usually it's relatively easy for me to edit the /boot/grub/menu.lst to get my old linux's to start after the installation of the new one.

Recently I installed foresight-1.9.9.alpha4+20080222-x86_64. Alpha4 is test version of Foresight which I have used before. It is possible to start Alpha4 either using Syslinux/Extlinux or Grub as the bootloader. I chose Grub to get my other linuxes to start also.

Unfortunately Foresights installer configured the Grub bootloader in such a way that none of my OS's did start. But I used my Mandriva 2007 USB Flash to edit Alpha4's menu.lst and got WinXP and the linux's to start except Alpha4

Can you find the error in /boot/grub/menu.lst:
The bootloader displays
Booting 'Alpha4 kernel'

root (hd1,2)
Filesystem type is ext2fs, partition type 0x83

kernel /boot/vmlinux- root=LABEL=/ quiet vga=0x317 splash ro

Error 13: Invalid or unsupported executable format

Press any key to continue ...
title Alpha4 kernel
   root (hd1,2)
   kernel /boot/vmlinux- root=LABEL=/ quiet vga=0x317 splash ro
   initrd /boot/initrd-
and the Alpha4's boot-foulder contains
[root@localhost media]# ls   /mnt/foresight/boot/
extlinux/                                     vmlinux-
grub/                                         vmlinuz-
[root@localhost media]#
There must be some simple error somewere, but what

Or shall I install Alpha4 again and hope it will generate a working bootloader if I let it use Extlinux?

I will try that but although I have used Google I have not found any examples or other good text how to include the other OS's to the bootloader.
Old 03-01-2008, 09:44 AM   #2
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,727

Rep: Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695Reputation: 695
Your boot files are here -->
Your entry in grub points to -->
root (hd1,2)
kernel /boot/
Edit the grub entry to read /mnt/foresight/boot.....

and try again. The only other thing I can not verify from your post is the partition; hd1,2. Just remember grub counts from 0 not 1.
Old 03-02-2008, 12:44 AM   #3
Registered: Jul 2007
Location: On an iland on the Gulf of finland
Distribution: openSUSE, Mageia, Ubuntu, ArchLab etc.
Posts: 32

Original Poster
Rep: Reputation: 15
Red face

Originally Posted by camorri View Post
Edit the grub entry to read /mnt/foresight/boot
Sorry! I gave misleading information:

The situation:

I have installed Foresight Alpha4 in my second hard disk and Foresight's grub bootladers 1. part is in MBR. When starting the computer grub displayes the list of OS's to be booted. Trying Foresight the unfortunate result is "Error:13". Most propably there is only some small trick to get Foresight booting.

My other OS's boot well because I have edited Foresights /boot/grub/menu.lst copying the relevant text from the OS's own menu.lst's except WindowsXP which is chainloaded.

I can not start Foresight but for ex. Mandriva starts well. Foresight is installed on /dev/hdb3 which I have in Mandriva mounted on /mnt/foresight, thus
[root@localhost media]# ls   /mnt/foresight/boot/
shows the situation in /dev/hdb3 which is / for Foresight's bootloader.

There may be something to develop in Alpha4's installer because it's Foresight 2's test version. I have already raported of that, but I hope I could pass the problem by. And it is also possible I have have made some simple error in editing the menu.lst.


I have an other option too:

Foresight will propably start well if it uses Selinux/Extlinux bootloader. Unfortunately I do not know anything about it (except that it is a bootloader able to start OS's using chainload). Does anybody know were to get advice how to configure Extlinux?
Old 03-19-2008, 05:56 PM   #4
LQ Newbie
Registered: Jan 2007
Location: Edmonton, AB
Distribution: Ubuntu Gutsy
Posts: 10

Rep: Reputation: 0
I believe that the Foresight 2.0 installer does not install grub correctly. When I tell it to install grub to MBR, it does not work and my old grub menu is not replaced. When I tell it to install to the beginning of /dev/hda6 (the foresight / partition) i cannot chainload it using grub from MBR.

When i told it to install with syslinux/extlinux, it did replace my MBR. Because of troubles with it detecting my refresh rate, i couldn't get it to do anything. I also could not boot to my main (ubuntu) partition using the new syslinux bootloader because i am ignorant, and a little slow.

Perhaps I will try to chainload syslinux on hda6 from grub on the MBR... anyone know how to do that?

I'll post again about that somewhere else...

Logan W
Old 03-20-2008, 03:25 AM   #5
Registered: Jul 2007
Location: On an iland on the Gulf of finland
Distribution: openSUSE, Mageia, Ubuntu, ArchLab etc.
Posts: 32

Original Poster
Rep: Reputation: 15
Now I have the new Foresight 2.0. But again it's impossible to get it installed to my 2 IDE and 1 SATA hard disk computer.

I ones had Foresights previous version and I liked it. Perhaps it's the time to wait for 2.1 or later version or
Old 03-21-2008, 02:31 AM   #6
LQ 5k Club
Registered: Oct 2003
Location: Australia
Distribution: PCLinuxOS
Posts: 5,480

Rep: Reputation: Disabled
grub chainloader is easy.

title chainload partition 3 on drive2
root (hd1,2)
chainloader +1

saikee did this with all 145 distros he thinks he has too much time.

note that I use root rather than rootnoverify so if above fails change it pls


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub bootloader stops at "grub" at bootup i_lurve_linux Ubuntu 2 02-24-2007 09:12 AM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
"GRUB _" when booting, nothing but "ctrl+alt+del" functions rabidpencil Linux - Newbie 15 08-08-2006 10:20 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM
GRUB bootloader spits out "GRUB hard disk error" Crampedson Linux - Software 2 01-26-2005 06:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration