Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-14-2003, 07:23 AM   #1
Citizen Bleys
Registered: Mar 2001
Location: Moncton, NB
Distribution: Gentoo 2006.0
Posts: 181

Rep: Reputation: 30
Full Metal Kernel Panic

I'm trying to update a RH8.0 box to Kernel 2.6.0-test9.

I used as my guide--It's been a long time since I've updated a kernel (it was back when RH7.3 was the hottest thing on the market, and I was updating 7.2 to use the kernel from 7.3)

I wasn't able to find a kernel RPM for 2.6.x, so I downloaded the .tar.gz from and compiled it myself, using make oldconfig to copy settings from the default RH8.0 kernel.

Now, I tried to be as redundant as possible; I copied bzImage to /boot/bzImage-2.6.0test-9 and then copied that to /boot/vmlinuz-2.6.0-test9 even though the guide didn't say to do that (the old kernel was named vmlinuz), and then I copied the executable vmlinux to the boot directory as well.

I ran mkinitrd from the /boot directory and added an entry in GRUB for the new kernel, and re-pointed to, and then rebooted.

Kernel panic. No init found.

That can't be right, I made an initrd.

Fortunately, I left the entry for the old kernel in GRUB, so I was able to boot back in using the 2.4.18 kernel to post this. I've found, however, that is once again pointing to the old 2.4.18 file.

I frigged around with it for about an hour. I even tried pointing the 2.6 kernel entry in grub.conf to the initrd file fro 2.4.18. No dice, no matter what I try, I get a Kernel Panic.

I can't even remember what Kernel Panic is. I thought it had something to do with bad installation media or something; I've had it before during install, and I just restarted the install and everything worked fine.

EDIT: here's grub.conf as it is right now
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/hda5
# initrd /boot/initrd-version.img
title Red Hat Linux (2.4.18-14)
root (hd0,4)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /boot/initrd-2.4.18-14.img
title Red Hat Linux (2.6.0-test9)
root (hd0,4)
kernel /boot/vmlinuz-2.6.0-test9 ro root=LABEL=/
initrd /boot/kernel-2.6.0-test9.img

EDIT2: If it's relevant, there are other partitions on the system; it's a shared workstation with BootMagic in the MBR, with two entries pointing to Windows installs for other people, and one entry pointing to /dev/hda5, which is where GRUB and my Linux install resides, in an extended partition.

EDIT3: And here, in case it's helpful, is a directory listing of /boot

total 19904
-rw-r--r-- 1 root root 5824 Sep 5 2002 boot.b
-rw-r--r-- 1 root root 1216301 Nov 13 11:43 bzImage-2.6.0-test9
-rw-r--r-- 1 root root 612 Sep 5 2002 chain.b
-rw-r--r-- 1 root root 42150 Sep 4 2002 config-2.4.18-14
-rw-r--r-- 1 root root 42589 Sep 4 2002 config-2.4.18-14debug
-rw-r--r-- 1 root root 38564 Sep 4 2002 config-2.4.18-14uml
-rw-r--r-- 1 root root 37619 Nov 14 08:28 config-2.6.0-test9
drwxr-xr-x 2 root root 4096 Nov 12 2001 grub/
-rw-r--r-- 1 root root 130326 Nov 12 2001 initrd-2.4.18-14debug.img
-rw-r--r-- 1 root root 130822 Nov 12 2001 initrd-2.4.18-14.img
-rw-r--r-- 1 root root 66162 Nov 14 08:33 initrd-2.6.0-test9custom.img
-rw-r--r-- 1 root root 67472 Nov 14 08:31 initrd-2.6.0-test9.img
-rw-r--r-- 1 root root 67882 Nov 14 09:07 kernel-2.6.0-test9.img
-rw-r--r-- 1 root root 473 Nov 12 2001 kernel.h
-rw-r--r-- 1 root root 23108 Sep 6 2002 message
-rw-r--r-- 1 root root 21282 Sep 6 2002 message.ja
lrwxrwxrwx 1 root root 21 Nov 12 2001 module-info -> module-info-2.4.18-14
-rw-r--r-- 1 root root 15436 Sep 4 2002 module-info-2.4.18-14
-rw-r--r-- 1 root root 15436 Sep 4 2002 module-info-2.4.18-14debug
-rw-r--r-- 1 root root 15436 Sep 4 2002 module-info-2.4.18-14uml
-rw-r--r-- 1 root root 640 Sep 5 2002 os2_d.b
lrwxrwxrwx 1 root root 22 Nov 14 09:07 ->
-rw-r--r-- 1 root root 507814 Sep 4 2002
-rw-r--r-- 1 root root 518875 Sep 4 2002
-rw-r--r-- 1 root root 341833 Sep 4 2002
-rw-r--r-- 1 root root 802956 Nov 13 11:43
-rwxr-xr-x 1 root root 3236438 Sep 4 2002 vmlinux-2.4.18-14*
-rwxr-xr-x 1 root root 3317752 Sep 4 2002 vmlinux-2.4.18-14debug*
-rwxr-xr-x 1 root root 3599926 Nov 14 08:48 vmlinux-2.6.0-test9*
lrwxrwxrwx 1 root root 17 Nov 12 2001 vmlinuz -> vmlinuz-2.4.18-14
-rw-r--r-- 1 root root 1125194 Sep 4 2002 vmlinuz-2.4.18-14
-rw-r--r-- 1 root root 1149556 Sep 4 2002 vmlinuz-2.4.18-14debug
-rwxr-xr-x 1 root root 2496392 Sep 4 2002 vmlinuz-2.4.18-14uml*
-rw-r--r-- 1 root root 1216301 Nov 14 08:41 vmlinuz-2.6.0-test9

EDIT4: Yes, it says ->, but I deleted and recreated the link; I haven't rebooted since.

Last edited by Citizen Bleys; 11-14-2003 at 07:29 AM.
Old 11-14-2003, 08:03 AM   #2
Registered: Aug 2003
Location: Manchester, England, UK, The World....
Distribution: Gentoo/SuSE 9.0
Posts: 291

Rep: Reputation: 30
the 2.4.18 and 2.6.0-test9 kernels are very different, you should reconfigure it.
also i am assuming that you compile and installed the modules (make modules && make modules_install), but you may want to check in /lib/modules to see if the linux-2.6.0-test9 directory actually has the modules in it.
i think init is different from an initrd. (init=the first process from which everything else spawns PID 1

P.S. i am currently halfway through compiling the 2.4.22 modules, when i've done that i'm going to compile the 2.6.0-test9 kernel


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
Can I do a Bare Metal Restore? bob151 Linux - Software 1 04-14-2005 06:41 PM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
Metal look-and-feel for Windows moeminhtun General 1 06-24-2003 11:29 AM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:23 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