LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-17-2008, 10:40 AM   #1
mehdiee
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Rep: Reputation: 0
Smile 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 ?

Last edited by mehdiee; 02-17-2008 at 10:42 AM.
 
Old 02-17-2008, 11:35 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.

Last edited by alan_ri; 02-17-2008 at 11:38 AM.
 
Old 02-17-2008, 11:49 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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
 
Old 02-17-2008, 01:05 PM   #4
mehdiee
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Smile 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 ???
 
Old 02-17-2008, 01:25 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
  


Reply

Tags
error, grub, linux, server, while



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
Server Red Hat and error message Destination Host Unreachable zillah Linux - Networking 4 04-27-2007 10:41 PM
Can't Run Red Hat Fedora After Install - Grub Error Comptalk Linux - Distributions 1 01-23-2005 08:49 PM
Choosing a Red Hat Replacement now that they've bailed on us... add your info plz versaulis Linux - Software 28 11-06-2003 04:56 PM
grub + Red hat Linux 8 + Windows XP Naru Linux - Newbie 8 12-10-2002 07:23 PM
GRUB problem in Linux Red Hat 7.2 Fernandoch Linux - Software 2 03-28-2002 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration