Re: Kernel Panic/ Error 15



Artnut wrote:

#make bzImage

#make modules

#make modules_install

Do instead

make && make modules_install

It will do the same as the above but slightly faster


Until this point, everything went smoothly.

#cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18-8

Overwrite the file? y

You should have answered no, you should never copy it over an previous version, always keep the old one untouched, this way you have something to boot with if you mess things up with your configuration.



Now from the next command something went wrong.

# ln -s /boot/System.map-2.6.25-9 /boot/System.map

Got error : File already exists

This tells that there is already a 2.5.25.9 kernel


# Checked in /lib/modules/ and found 2.6.25-9 was created.

Thats not so strange, as you did a "make modules_install"


# mkinitrd /boot/initrd-2.6.25-9.img 2.6.25-9

Got error : File already exists

mkinitrd refuses to create a new one, you have to wither rename the old one or pick a new name.


#vi /etc/grub.conf

default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.6.18-8.EL)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-8.EL.img



Obviously, the new kernel failed to show up in grub. May I know what could be possibly wrong?

If you don't use the package manager (rpm) to install an kernel rpm, no new entries will be added to grub, you have to do that manually.


Upon booting I got Kernel Panic error which did NOT show "Attempted to Kill" message. It was something else which I forgot to write.

Upon changing grub entry I got Error 15.




All help appreciated. Thank you all in advance.

Boot into rescue mode with your RHEL install CD/DVD, chroot to your installation, check for the kernel rpm on the boot media, uninstall the 2.6.18 kernel with the "rpm -e" command and then install the kernel you found on the media with "rpm -ivh", if you still have troubles, then do it again, but reinstall grub first.


--

//Aho
.



Relevant Pages

  • Re: Help 10.3 a mess After YOU Upgrade
    ... GRUB stage1. ... The stage1 goes in boot sector of system root partition. ... sda6=/1st SUSE install ... and kernel as defined for selected menu item. ...
    (alt.os.linux.suse)
  • Re: RHEL kernel update install problem!
    ... Because if you did an install, the previous version should still be there, and it should be simple to get you en route again. ... "root " means that grub is installed on the first partition of the first hard drive. ... All that needs to be done now, is boot the older kernel, remove the potentially defective new one, and free enough space on /boot. ... Each entry in the grub menu starts with the "title" tag, so you can try to construct a new entry along the same lines, referencing your new kernel and corresponding initrd. ...
    (RedHat)
  • SUSE Security Announcement: Linux Kernel (SuSE-SA:2004:001)
    ... installable through rpm, because of a bug in RPM (update of ... the kernel source is not ... sources that the binary kernel rpm packages are made from. ... are being offered to install from the maintenance web. ...
    (Bugtraq)
  • [Full-Disclosure] SUSE Security Announcement: Linux Kernel (SuSE-SA:2004:001)
    ... installable through rpm, because of a bug in RPM (update of ... the kernel source is not ... sources that the binary kernel rpm packages are made from. ... are being offered to install from the maintenance web. ...
    (Full-Disclosure)
  • RE: EL4 ES kernel recompile
    ... We need to build the source rpm to get the sources. ... Install kernel-.src.rpm (given the default RPM configuration, ... the kernel tree will be located ...
    (RedHat)