LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2011, 03:47 PM   #1
sbfrank99
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
new kernel won't boot


I've been trying to build and install a 2.6.37 kernel on a RedHat Enterprise 5.4 system. The build completes with no errors and I get the bzImage file as expected. I used /sbin/installkernel to install the new kernel on my system.

When I attempt to boot the new kernel it fails. RedHat nash starts and a few seconds later it panics with the message

mount: could not find filesystem '/dev/root'

I checked the file that /sbin/installkernel named /boot/vmlinuz-2.6.37 and it shows that it is a "Linux kernel x86 boot executable".

The 2.6.18 kernel I'm trying to replace shows its filetype as "ELF 64-bit shared object"

There is a file in my build tree arch/x86/boot/compressed/vmlinux that is filetype "ELF 64-bit executable" which is closer. I test-installed this but GRUB said that this was an unsupported filetype.

I know I'm missing some small detail but can't figure out what it is.
 
Old 02-24-2011, 03:50 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
How did you configure the kernel? Errors about not being able to mount root are usually due to lack of filesystem or hardware support in the kernel.
 
Old 02-24-2011, 05:20 PM   #3
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Rep: Reputation: 2
Take a look in "/boot" and see if you have the file "initrd-2.6.37.img". This is required to configure RAMdisk support which the kernel needs during the boot process. If you don't have this file, you can run the following commands as root:

Code:
# update-initramfs -k 2.6.37 -c
# update-grub
-- MC --
 
Old 02-24-2011, 07:21 PM   #4
sbfrank99
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
I checked my initrd file and verified that all the required kernel objects were there. I compared the list against the older version and saw that all were present.

The problem seems to be when the init script is running the function mkblkdevs or later. I edited init to remove setquiet and a redundant call for dm-region_hash.ko

I watched all the drivers load then had the kernel panic.

It appears that the Makefile is building the wrong filetype and that is the problem. I'm not familiar enough with make or gcc to know where the problem can be located.
 
Old 02-24-2011, 07:56 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I'm not sure if this is a problem in RHEL, but I just upgraded my Debian box from Lenny to Squeeze and one of the release notes mentioned an incompatibility between the Lenny version of udev and kernels newer than 2.6.26.
 
  


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
When I boot with PXE Boot into openSuse, error says 'invalid or corrupt kernel image' rfelsburg SUSE / openSUSE 0 05-13-2010 09:51 PM
[SOLVED] lilo says my 2.6 kernel image is to large&new problem kernel will not boot smeezekitty Linux - Newbie 3 10-13-2009 09:41 PM
LXer: Boot Linux Over HTTP With boot.kernel.org (BKO) LXer Syndicated Linux News 0 09-27-2009 12:51 PM
no /boot/loader and no /boot/kernel/kernel error message on a free bsd install chownuseradd Linux - Newbie 1 02-09-2008 09:05 PM
DSL Kernel Wont detect Flash drive on boot, cant boot =( Javahulk Linux - General 1 03-24-2005 03:59 PM


All times are GMT -5. The time now is 10:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration