kernel panic - mkrootdev: label /1 not found - when booting from newly compiled kerne
I have a Dell Precision 390 with a SATA HDD on which RHEL4 WS (kernel 2.6.9) has been installed. I built a new 2.6.9 kernel according to the instructions given here - http://voidmain.is-a-geek.net/redhat...nel_build.html , in short, I executed the following commands:
(I used the configuration of the working kernel)
(made changes to include Intel SpeedStep drivers)
When I try to boot from this newly built kernel I get the below error messages:
mkrootdev: label /1 not found
mount: error 2 mounting ext3
mount error 2 mounting none
switchroot: mount failed: 22
umount /initrd/dev failed :2
kernel panic - not syncing: Attempted to kill init
I am still able to boot using the old kernel.
After googling I found that many people corrected this by setting "root=/dev/sdax" (x is number of the root partition, in my case it is 5) in grub.conf. I tried the same and only the mkrootdev error disappeared, the other errors remain (setting "root=/dev/sdax" shouldnt be required in my case since I am able to boot using the old kernel and the entry for the old kernel in grub.conf also uses "root=LABEL=/1").
contents of grub.conf:
title Red Hat Enterprise Linux WS (2.6.9-new)
kernel /vmlinuz-2.6.9-new swiotlb=65536 ro root=LABEL=/1 rhgb quiet
title Red Hat Enterprise Linux WS (2.6.9-5.ELsmp)
kernel /vmlinuz-2.6.9-5.ELsmp swiotlb=65536 ro root=LABEL=/1 rhgb quiet
title Red Hat Enterprise Linux WS-up (2.6.9-5.EL)
kernel /vmlinuz-2.6.9-5.EL swiotlb=65536 ro root=LABEL=/1 rhgb quiet
Using e2label I found that the partitions are labeled correctly.
How do I solve this problem?
The error messages could probably be because the newly created initrd image does not include SATA drivers for the HDD. I am unable to find out how to build a new initrd image that includes the SATA drivers.
Any help will be greatly appreciated.
Where did you get the 2.6.9 kernel source from?? You do realize that Red hat typically backports thing like security and hardware support from the upstream kernel source?
If your going to build a new kernel from the vanilla kernel source then build from at least the 2.6.18 or newer series, mainly for SATA support an other hardware and secuity reason, best to build the latest released kernel source from kernel.org
I got the source (src rpm) from one of the Redhat CDs that came along with the DELL machine.
And I would like to use the same kernel i.e. 2.6.9.
Try building a test kernel from the source without any changes;
If I remember correctly you may not need to edit the kernel's Makefile, but check and make sure beforehand.
I still get the same errors. The only change I made before I executed the above commands was to modify the value of EXTRAVERSION in the makefile.
Well, I have never had good luck building Red Hat supplied kernels myself, I have heard from a number of others with the same issue. One can build the kernel and everything looks good, but it will not boot correctly, usually with the same errors you see. As a suggestion change from using the partition labels in both the /boot/grub/grub.conf file (just your built kernel) and in the /etc/fstab file as an experiment.
I usually build from the vanilla kernel sources at kernel.org with very good success, even with using partition labels.
I tried recompiling the kernel and booting using the recompiled kernel on a new DELL Precision running RHEL 5 (kernel 2.6.18-8). It worked and I will be using the same machine here onwards.
Many thanks for your help.
I am new to linux.trying to boot new kernel 126.96.36.199
but have stuck with same error
mkrootdev lable=/1 not found
mount error: 6 mounting ext3
i already have tried all the solution discussed above.
ne help will be highly appriciated..
|All times are GMT -5. The time now is 03:20 AM.|