LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 11-19-2004, 11:04 PM   #1
natsirc
LQ Newbie
 
Registered: Sep 2004
Distribution: FC2, FC3
Posts: 8

Rep: Reputation: 0
Question 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
 
Old 11-21-2004, 05:34 AM   #2
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
This is grub error .. is it possible for you to post your /etc/grub.conf here?
 
Old 11-21-2004, 05:19 PM   #3
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
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.
 
Old 11-22-2004, 07:55 PM   #4
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
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?
 
Old 11-22-2004, 10:01 PM   #5
natsirc
LQ Newbie
 
Registered: Sep 2004
Distribution: FC2, FC3
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 11-23-2004, 12:42 AM   #6
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

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


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
Loading module compiled on differenet version in 2.6 kernel shrey_j Programming 8 09-04-2006 09:03 AM
problem(s) with compiled kernel nice_indian Linux - Newbie 4 01-31-2005 05:28 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 12:10 PM
Compiled kernel problem movitto Linux - Software 8 07-25-2004 01:27 AM
error loading a kernel module, "compiled using gcc2" taozilla Linux - Software 0 11-21-2003 04:23 PM


All times are GMT -5. The time now is 10:19 PM.

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