LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-07-2007, 11:39 PM   #1
gdkool
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Rep: Reputation: 0
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
 
Old 11-08-2007, 01:07 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
label =/1
Look for that line in your grub.conf ... delete the "1".
 
Old 11-08-2007, 01:21 AM   #3
gdkool
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge View Post
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
 
Old 11-08-2007, 03:11 AM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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).
 
Old 11-12-2007, 03:10 AM   #5
gdkool
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Wink

Quote:
Originally Posted by Simon Bridge View Post
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
 
Old 11-12-2007, 04:49 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
well done!
 
Old 11-12-2007, 07:12 AM   #7
nassir019
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 11-12-2007, 10:31 PM   #8
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 4.5 Unable to uncompress linux kernel for Oprofile! inspiredbymetal Red Hat 1 05-29-2007 09:57 AM
CentOS install probelm - kernel panic cmarnell Linux - Newbie 9 04-25-2006 11:08 AM
Unable to install bcm 440x 10/100 ethernet card on Red Linux 9 kernel version 2.6.8.1 arsimsusuri Linux - Laptop and Netbook 1 06-30-2005 12:01 AM


All times are GMT -5. The time now is 12:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration