Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Redhat 4 distro, running 2.6.9. I downloaded 2.6.10, build the image, created an initrd image, and updated the grub.conf file.
The entries my grub.conf looks as follows:
default=1
timeout=5
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS 4 Update 5 (2.6.9-55.ELsmp)
root (hd0,2)
kernel /boot/vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/1 console=ttyS0,9660 rhgb quiet
initrd /boot/initrd-2.6.9-55.ELsmp.img
title Linux 2.6.10
root (hd0,2)
kernel /boot/vmlinuz-2.6.10 ro root=LABEL=/1 console=ttyS0,9660 rhgb quiet
initrd /boot/initrd-2.6.10.img
When I boot into 2.6.10, I get the error "mkrootdev: label \1 not found" right at the beginging, followed by a kernel panic. Screen output as follows:
Red Hat nash version 4.2.1.10 starting
^[[C^[[Dmkrootdev: labelKernel panic - not syncing: Attempted to kill init!
/1 not found
I checked with "e2label", my partition has the right label. What could be the issue. Is the right driver not getting included in the initrd image? Any help is very appreciated.
I was running 2.6.9, moving to 2.6.10, to a newer kernel version. Not sure how you deduced I was running an older version.
My reason for posting my original message is to figure out why I am getting the error message / kernel panic in the first place since I should not be. I would like to understand the cause of the failure.
Anyone who is more familiar with Linux boot process could shed some light, would highly appreciate it.
Also, I tried googling for info on "mkrootdev". Any pointers would be appreciated.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
OK, first going by version numbers alone does not work when dealing with Red Hat, please review the Red Hat link about backporting it is extremly important that you understand this. The 2.6.10 kernel from kernel.org was released on 24-Dec-2004, the 2.6.9-55.ELsmp kernel for RHEL4 update 5 was released on 05-May-2007 so which is newer???
Second the cause of the error and failure is you forgot something (like the make oldconfig step) or you did not take the time create an working kernel configuration, taking or using the defaults from the kernel source will not build a working kernel on a Red Hat based system. As a suggestion have a look at your .config file used to build the kernel and compare it to the /boot/config-2.6.9-55 file.
The steps I provided in my earlier reply actually do work, I have been doing this for years now;
Code:
$ uname -a
Linux Aspire5100 2.6.24.3 #1 Wed Feb 27 10:11:58 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.24.3)
root (hd0,0)
kernel /vmlinuz-2.6.24.3 ro root=LABEL=/ vga=790 notsc quiet iommu=off
initrd /initrd-2.6.24.3.img
title CentOS (2.6.18-53.1.13.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.1.13.el5 ro root=LABEL=/ vga=790 notsc quiet iommu=off
initrd /initrd-2.6.18-53.1.13.el5.img
title CentOS (2.6.21.6)
root (hd0,0)
kernel /vmlinuz-2.6.21.6 ro root=LABEL=/ vga=790 quiet iommu=off
initrd /initrd-2.6.21.6.img
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.