Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-22-2003, 09:48 AM   #1
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 141

Rep: Reputation: 15
Unhappy Kernel recompile no workee

Hey guys,

I just downloaded the latest 2.4.21 kernel sources from and ran into some difficulty. I think the last time I did a kernel recompile I used Lilo as my bootloader, but now I am using Grub (with which I am less familiar). My familiarity with grub may or may not be the source of my troubles, but to start here's the message I am getting when trying to reboot into the new kernel.:

"root (hd1,0)
Filesystem type is ext2fs, Patition type 0x83
Kernel /vmlinuz-2.4.21 ro root=LABEL=/
[Linux-bzImage, setup=0xa00, size=0x12273d]

Error 15: File not found

Press any key to conintue"

I was using the "Mastering RedHat 7.1" book by Sybex as my reference and following the instructions therein.

I first went to my /usr/src/linux-2.4.21 directory (that is where I un-tarred the new kernel archive) and ran 'make xconfig' to use the graphical kernel configuration tool. Saved the config I just made and (this is all as root btw) from the same directory issued the following commands:

"make dep; make clean; make bzImage; make modules; make modules_install"

computer goes clunkity clunk as it churns through the task for a nice while then issued the command:

"/sbin/mkinitrd /boot/2.4.21.img 2.4.21"

This is where I think I may have started having problems, because the book wasn't very descriptive about the syntax of this command and I didn't really find the info pages or the man page for this very informative. But having done this successfully once before I trusted the process described in the book.

Then I copied the new kernel to the proper location issuing:

"cp /usr/src/linux-2.4.21/arch/i386/boot/bzImage /boot/vmlinuz-2.4.21"

Lastly, I went into my grub.conf file so that I could boot the new kernel. I added this stanza to the grub.conf file:

"title Red Hat Linux (2.4.21)
root (hd1,0)
kernel /vmlinuz-2.4.21 ro root=LABEL=/
initrd /initrd-2.4.21.img"

The full grub.conf file reads:

title Red Hat Linux (2.4.20-8)
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Red Hat Linux (2.4.21)
root (hd1,0)
kernel /vmlinuz-2.4.21 ro root=LABEL=/
initrd /initrd-2.4.21.img
title DOS/Windows (various flavors)
rootnoverify (hd0,0)
chainloader "

The first and 3rd entries work, but the middle one (which is the one that I made) gives the error message I pointed out at the beginning of this screed.

Any thoughts or suggestions will be immensely welcomed.
Old 06-22-2003, 09:57 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
not sure if that's from the bzimage or the initrd entry, but try reomving the initrd entry, as you seldom *need* one... see if you can get back in then.

don't know if it's a typo though as you first say you create "/2.4.21.img" and then try to load "/initrd-2.4.21.img"


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
SuSE 9.3 USB Memory Stick No Workee goofbaw SUSE / openSUSE 1 08-17-2005 02:52 AM
gentoo dell laptop external monitor no workee bookwench Linux - Newbie 2 09-16-2004 07:35 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 05:32 PM
How do I recompile the kernel? christong Linux - General 4 11-12-2003 12:29 PM
Recompile kernel? wmeitzen Linux - Newbie 5 08-12-2003 01:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration