LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 02-07-2008, 02:47 PM   #1
samkraju
Member
 
Registered: Jun 2006
Location: Dubai, UAE
Distribution: Fedora Core 17
Posts: 35

Rep: Reputation: 15
kernel panic while booting custom compiled 2.6.24 kernel on RHEL 4 AS


Hi,

I had successfully compiled the kernel 2.6.24 but when I tried to boot with the kernel, the kernel panic - saying the lvm unable to find the VolGroup00 and exited abnormally. I tried with both RAID and device-mapper as built-in and as module but none worked.

Kernel documentation mentioned that udev version must me 089 and mine was 039 earlier. So I downloaded the udev's latest version (118) and installed but the boot problem is still not solved.

The current kernel version is 2.6.9-55ELsmp. Earlier I successfully compiled and booted the 2.6.17.3 kernel and but the latest kernel 2.6.24 is giving me the problem.

Please help me........

Thanks,
SAM
 
Old 02-07-2008, 03:12 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,530
Blog Entries: 3

Rep: Reputation: 209Reputation: 209Reputation: 209
here is the problem when you did the make install you did not go to lilo.cof file and add the kernel the big problem is you did not rename your old kernel from vmlinuz to vmlinuz-2.6xx what ever then change it to let grub or lillo to use it that way so now when you did your make install it changed your old /boot/vmlinuz to vmlinuz.old. and now your system cant boot it.
you should always rename your old kernel before installing the new one and add it to you lilo or groub menu1st. make sure you did a make module_install also. so if your old vmlinuz is like mine 2.6.21.5-smp-huge-smp and and it was symlinked to a vmlinuz when you did your make install it changed it. if you did everything right and it panics then the reason is in grub or lilo you did not till it where the root is /dev/hda1 etc. or if you have a system that needs a initrd.img to boot also with the vmlinuz then you need to make one. but lets hope you did have a couple other kernels already built with modules so you can get the suystem running again to fix it because even with a live distro that is work fixing it. so if you can get it booted go into you grub or lilo and make sure that it is pointin to the right kernels and initrd.imges if needed and and save it the run lilo again or start grub good luck.
 
Old 02-07-2008, 03:17 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,530
Blog Entries: 3

Rep: Reputation: 209Reputation: 209Reputation: 209
the old 2.6.17 kernel scrpits would actualy rewite lilo and add the kernel. but I have notices sence about 2.6.18 it does not do that for you. you will have to do it manually then re run /sbin/lilo
 
Old 02-09-2008, 05:30 AM   #4
samkraju
Member
 
Registered: Jun 2006
Location: Dubai, UAE
Distribution: Fedora Core 17
Posts: 35

Original Poster
Rep: Reputation: 15
Hi Drakeo,

I am using grub instead of lilo. It doesn't seem like a problem with boot loader. Here are the commands I used to configure, compile and install.
1) make O=build/ gconfig
2) make O=build/
3) make O=build/ modules_install
4) make O=build/ install

The 4th command automatically installed the kernel image, changed the symbolic link of vmlinuz to my kernel image and added the new kernel's boot menu to the grub.conf file.

The problem is with the "LVM". The new kernel is not able to find the volume group of LVM.
The exact error message is as given below:
===================================================================================
Loading ata_piix.ko module
Loading dm-mod.ko module
device-mapper: ioctl: 4.12.0-ioctl (2007-10-02) initialised: dm-devel@redhat.com
Loading jbd.ko module
Loading ext3.ko module
Loading dm-mirror.ko module
Loading dm-zero.ko module
Loading dm-snapshot.ko module
Making device-mapper control node
Scanning logical volumes
Reading all physical volumens. This may take a while...
No volume groups found
lvm used greatest stack depth: 2408 bytes left
Activating logical volumnes
Volume group "VolGroup00" not found
ERROR: /bin/lvm exited abnormally! (pid 464)
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switch to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!
===================================================================================

Hope this error message might help you to solve my problem.
 
Old 02-10-2008, 12:55 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,530
Blog Entries: 3

Rep: Reputation: 209Reputation: 209Reputation: 209
I dont use grub alot but I have it on two of my debian system and it looks nothing like that here is on of my grubs. this is the menu.1st file that grub looks at to load the systems. if you do not have a menu.1st file the you have to type by command.
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
title Linux (on /dev/sda1)
root (hd2,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/hdb1)
root (hd1,0)
kernel /boot/vmlinuz root=/dev/hdb1 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,1)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/hda2)
root (hd0,1)
setup (hd0,1)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
not I built my kernels so I do not need a initrd.img good luck.
 
  


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
kernel panic after building custom kernel for macbook sparrott Linux - Laptop and Netbook 1 06-29-2007 05:06 PM
errors while booting a custom compiled kernel can't figure out wich module? krmane Linux - Kernel 1 08-18-2006 01:09 AM
compiled kernel 2.6.10 with slackware 10.0, kernel panic salviadud Linux - Newbie 1 02-09-2005 04:05 PM
Compiled Custom Kernel booting problem _flaab_ Mandriva 3 11-13-2003 06:34 AM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 09:40 AM


All times are GMT -5. The time now is 02:26 AM.

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