LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unable to install linux kernel 2.6.23.1 on CentOS 4 (https://www.linuxquestions.org/questions/linux-general-1/unable-to-install-linux-kernel-2-6-23-1-on-centos-4-a-597952/)

gdkool 11-07-2007 11:39 PM

Unable to install linux kernel 2.6.23.1 on CentOS 4
 
Hi All,

I was trying to install kernel version 2.6.23.1 which I downloaded from kernel.org. After going through the install procedure, my system goes in to kernel panic, with the following errors:

###################################################
mkrootdev: label =/1 not found
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
mount /initrd/dev failed: 2
kernel panic - not syncing: Attempted to kill init!
####################################################

Following is the system info:

Disto: CentOS 4
Bootloader: GRUB
grub.conf
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 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,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=2
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.23.1)
root (hd0,1)
kernel /boot/vmlinuz-2.6.23.1 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.23.1.img
title CentOS-4 i386 (2.6.9-42.ELsmp)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.9-42.ELsmp.img
title CentOS-4 i386-up (2.6.9-42.EL)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.9-42.EL.img
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I googled a lot but couldn't solve the problem: Specifically, I compiled in the ext3 fs which was originally set as a module in the .config

I am unable to understand why the label could not be found with the new kernel entry as the same label is being used for the previous kernel as well. Can someone please explain?

If I replace the label with the actual device /dev/sda2, I go ahead with the label error but the mount errors persist.

Any help in this regard will be highly appreciated.

Regards,
gdkool

Simon Bridge 11-08-2007 01:07 AM

Quote:

label =/1
Look for that line in your grub.conf ... delete the "1".

gdkool 11-08-2007 01:21 AM

Quote:

Originally Posted by Simon Bridge (Post 2951812)
Look for that line in your grub.conf ... delete the "1".

Thanks Simon for your response but that didn't help. Same error was reported this time too:
mkrootdev: label =/ not found
mount: error 6 mounting ext3
mount: error 2 mounting none
.....

Actually, on running the mount -l command, I found the following info:
/dev/sda2 on / type ext3 (rw) [/1]
none on /proc type proc (rw)
none on /sys type sysfs (rw)

which shows that the label is "/1" and not "/".

1. Why is this label not found with new kernel when its running fine with the old kernel?

2. What's the reason for these mount issues?

Regards,
gdkool

Simon Bridge 11-08-2007 03:11 AM

http://forums.fedoraforum.org/showthread.php?t=59544

Compare the grub.conf entries for the new kernel with those for the old one.

Possibly the new kernel or the initrd dosn't have tho drivers for your root partition... could it be SATA? Try remaking the initrd. (see link above).

gdkool 11-12-2007 03:10 AM

Quote:

Originally Posted by Simon Bridge (Post 2951882)
http://forums.fedoraforum.org/showthread.php?t=59544

Compare the grub.conf entries for the new kernel with those for the old one.

Possibly the new kernel or the initrd dosn't have tho drivers for your root partition... could it be SATA? Try remaking the initrd. (see link above).

Problem solved... There was an issue with installation of ATA_PIIX module which was the cause of all problems... Thanks for your support.

Regards
gdkool

Simon Bridge 11-12-2007 04:49 AM

well done!

nassir019 11-12-2007 07:12 AM

This is my BIG PROBLEM.
I have this msg when the pc strat up.
GNU GRUB version 0.95 (639K lower/ 522496K upper memory )
[ Minimal BASH _Like line editing is supported.for the first word , TAB lists possible command completion.Anywhere else TAB lists the possible completions of a device/filename ]
Grub> _
..please anyone can help i ill be hapy ..,,,
thanks for all

Simon Bridge 11-12-2007 10:31 PM

Watch more closely, you probably got an error message before that.

What you are looking at is the GRUB terminal. You only get that if there is something wrong with your menu.lst/grub.conf file. There are a lot of different things that could be - the circumstances would help here... my psychic powers suggest a general square beige-ness and round things spinning. Am I close?

Please edit your profile to show your location and which distro you use. This helps you get more appropriate help.


All times are GMT -5. The time now is 06:40 PM.