LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-09-2004, 11:33 AM   #1
Momboking
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Linux Red Hat9 with Grub, Problems with Multiple boot.


here is my grub.config:

default=0
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Red Hat (2.4.20-8)
root (hd05)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABES=/
initrd /boot/initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1
title Morphix
rootnoverify (hd0,4)
chainloader +1
------------------------------------------------------------------------------------------------

Ok, Windows and Linux RH9 works fine. My problem is with Morphix (Phlak).
I installed Morphix on the root of hd0,4, with lilo as the boot loader.

the error is "Error 13: Invalid or unsupported executable format"

Please help me be able to boot all three OS's from grub.
 
Old 03-11-2004, 06:06 AM   #2
davemiles
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
I had this exact problem when trying to set up a multi-boot system with 2 x Fedora linux and FreeDOS.

Not sure if the underlying problem is actually a bug in grub, but its the same in Fedora Core 1 and in Redhat 9. You can work around this problem as follows for two linux systems ........

Here the second system was added after main system, main system is multi partition, second system is a single partition. During second install added config to grub to hopefully boot original system.

My config as follows:

Main System has /boot in /dev/hda4, root in /dev/hda5, others elsewhere
Second System is entirely in /dev/hda6

The second system boots ok, the original system can be selected from the menu, but the 'invalid or unsupported executable format' message appears.

The implication of this is the MBR on the root disk points to the new system.

Solution I used was to boot from diskette (you DO have a boot diskette for one of the systems I hope) to get the original system up. At the boot prompt 'boot: linux root=/dev/hda5'. Had a look at the original systems /boot/grub/menu.lst to find out exactly how it boots. Mounted the new systems root on a temporary mount point. Then modify the /boot/grub/menu.lst for the second system to point directly to the kernel

This is the resultant config file - note the paths to cope with the fact that on main system files are on a separate filesystem.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title Mini Fedora Core (2.4.22-1.2115.nptl)
root (hd0,6)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/1 hdc=ide-scsi
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title Main Fedora Core
root (hd0,4)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title DOS
rootnoverify (hd0,0)
chainloader +1

Hope this helps.
 
Old 03-11-2004, 06:58 AM   #3
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
In order for chainloader a partition to work a boot loader has to to installed to the partition boot sector, you couldn''t boot your main system because it only had GRUB in the MBR. Yeah adding an entry to load the kernel from another partition will also work, GRUB is not "tied" to the distro you install it with.
 
Old 03-12-2004, 03:40 PM   #4
davemiles
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Hmmmm - maybe not so smart

Thanks, pretty dumb of me not to spot this myself. How long have I used Linux ? I prefer not to say. Have made a few changes and of course it works as expected. Sometimes just need to say these things out loud.

Regards
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I do a dual boot system, with one HD for Red Hat9, and one HD for Win 98? chrisseattle Red Hat 1 03-24-2004 05:55 PM
gining up Red Hat9 txboozer Linux - Newbie 1 11-05-2003 07:30 PM
best book for Red Hat9? tedist_god Linux - Software 4 10-05-2003 09:04 PM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
using grub to boot multiple linux os's Smerk Linux - Software 9 03-21-2003 12:07 AM


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

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