Linux Red Hat9 with Grub, Problems with Multiple boot.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.