LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub error 13 while choosing Red Hat Linux Server (http://www.linuxquestions.org/questions/linux-newbie-8/grub-error-13-while-choosing-red-hat-linux-server-621796/)

mehdiee 02-17-2008 10:40 AM

grub error 13 while choosing Red Hat Linux Server
 
Hi I have installed Kubuntu on my first partition as Ext 3
Red Hat Linux Server as second partition and
windows xp media center as my third partition
and Grub which is being used is the grub installed by KUBUNTU
(I somehow managed to reinstal it with the help of some other threads) but now when I choose to boot to the Red Hat Linux whixh is installed on the second partition I get the Grub error 13 : I don't know so much about the commands in menu.lst ....anyway I have pasted it here ....


title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=e17b381e-4995-4385-9886-ddf223fce885 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Windows XP Media Center Edition
root (hd0,2)
savedefault
makeactive
chainloader +1

title Red Hat Enterprise Linux Server release 5 (Tikanga) (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-8.el5xen root=/dev/sda2
savedefault
boot


title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=e17b381e-4995-4385-9886-ddf223fce885 ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet


as you see .... I have changed the order ...XP and UBUNTU work fine but for the RED hat enterprise Linux Server ... I get ther error 13 Invalid or unsupported executable format. Press any key to continue.

-------------------------------------------------------
at the end I have another Question here since you are reading this ...
If I install a new linux distro a new GRUB will be written as the new bootloader if I want to use the old bootloader what should I do ?

alan_ri 02-17-2008 11:35 AM

If you want to use the old bootloader then you don't install new one on the MBR,you install it on the root partition /.In your Menu.lst try to change "boot" to chainloader +1 and add makeactive before that.

bigrigdriver 02-17-2008 11:49 AM

Quote:

13 : Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not
recognized as Multiboot or one of the supported native formats
(Linux zImage or bzImage, FreeBSD, or NetBSD).
Book at the /boot folder. Make sure the kernel version number is correct in the RHEL stanza.

I notice that there isn't an initrd line after the kernel line. Is there an initrd in RHEL that should be referenced in menu.lst?

You could also comment out the current entry for RHEL, then add a modified one like this:
Code:

title Red Hat Enterprise Linux Server release 5 (Tikanga) (on /dev/sda2)
root (hd0,1)
chainloader +1


mehdiee 02-17-2008 01:05 PM

I did what you told me ...but the same error 13
 
title Red Hat Enterprise Linux Server
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-8.el5xen root=/dev/sda2
initrd /boot/initrd-2.6.18-8.el5xen root=/dev/sda2
savedefault
makeactive
chainloader +1

hey guys this is what you told me to do right ???
I found the initrd one as well on my /dev/sda2(which is the partition that RED HAT enterprise reside when I boot up with kubuntu) and I just added that below kernel and added SAVEDEFAULT and the rest ....

what do you think is wrong ??
should I add the properties "ro quiet splash" or commands like that ???
:confused:

bigrigdriver 02-17-2008 01:25 PM

Too much information in the menu.lst entry.

You have this:
Code:

title Red Hat Enterprise Linux Server
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-8.el5xen root=/dev/sda2
initrd /boot/initrd-2.6.18-8.el5xen root=/dev/sda2
savedefault
makeactive
chainloader +1

It should be this:
Code:

title Red Hat Enterprise Linux Server
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-8.el5xen root=/dev/sda2
initrd /boot/initrd-2.6.18-8.el5xen

or this:
Code:

title Red Hat Enterprise Linux Server
root (hd0,1)
chainloader +1

Since you have /boot in the root partition, grub knows to look in the /boot file, so you should probably do this:
Code:

title Red Hat Enterprise Linux Server
root (hd0,1)
kernel /vmlinuz-2.6.18-8.el5xen root=/dev/sda2
initrd /initrd-2.6.18-8.el5xen

because grub may be looking for /boot/boot/vmlinuz and /boot/boot/initrd, which don't exist.


All times are GMT -5. The time now is 05:21 PM.