LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   Problem loading the kernel that i compiled (https://www.linuxquestions.org/questions/fedora-installation-39/problem-loading-the-kernel-that-i-compiled-257086/)

natsirc 11-19-2004 10:04 PM

Problem loading the kernel that i compiled
 
Hi there peeps im having a problem w/ my kernel coz after i compile it and use the new kernel that i compiled it says an error:

Booting Fedora
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.8.1-mykernel1-1
[Linux-bzImage, setup=0x1200,size=0x26e644]
default 0
Error 27: Unrecognized command

Press Any Ket to Continue...

well its quite hard for me to find a solution w/ this error right now so im asking some help w/ u guys thanks

wiraone 11-21-2004 04:34 AM

This is grub error .. is it possible for you to post your /etc/grub.conf here?

gd2shoe 11-21-2004 04:19 PM

The grub configuration file is sometimes in slightly different places. Try:

/boot/grub/menu.lst
/boot/grub/grub.conf
/boot/menu.lst
/boot/grub.conf

Usually when you compile a new kernel you want to test it by adding a new section at the bottom of the file (starting with the "title" command), and leaving the old kernel alone, just in case...

(note, unlike lilo, grub does not need to be reinstalled after editing it's configuration)

I'm making the assumption that you replaced your old kernel with your new in the file system and didn't touch grub's configuration (because it says "Booting Fedora" instead of "Booting Fedora My New Kernel" or some such). I could be wrong. Ignore me if I am.

mjmwired 11-22-2004 06:55 PM

What was the final steps you used to compile your kernel?
Did you do a 'make install'? Or did you copy the files manually?
Did you verify that every entry in the '/boot/grub/grub.conf' matches to a proper file?

natsirc 11-22-2004 09:01 PM

yes i've make an make install.

this is the config of my /etc/grub.conf
vmlinuz-2.6.8.1-mykernel1-1# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda7
# initrd /initrd-version.img
#boot=/dev/hda

default=0
timeout=10
title Fedora Core (2.6.8.1-mykernel1-1)
root (hd0,0)
kernel /vmlinuz-2.6.8.1-mykernel1-1

default=0
timeout=10
#splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/
initrd /initrd-2.6.5-1.358.img

gd2shoe 11-22-2004 11:42 PM

You only need one "default" entry and one "timeout" entry. I'd remove the second pair. I'd guess that those could be interpreted as bogus commands. GRUB takes everything between a title and the next title to be instructions on how to boot a particular kernel. GRUB wide settings such as time out and default selection should be located at the top, before the first title section.

If this doesn't help, then I'll need to rack my brain a bit harder...


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