LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2010, 01:54 AM   #1
vivkepat
LQ Newbie
 
Registered: May 2010
Posts: 14

Rep: Reputation: 0
kernel upgradation


i have upgraded my redhat linux 5.3 kernel 2.6.18.128.el5PAE to 2.6.34
after rebooting i am getting this message

mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

what should i do
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-24-2010, 02:46 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
i have upgraded my redhat linux 5.3 kernel 2.6.18.128.el5PAE to 2.6.34
My first question is how?

The current stable release of RHEL 5 Update 5, is on the 2.6.18-194.el5 kernel. This is as of this morning where I did full updates on my RHEL 5 servers.

The 2.6.34 kernel is currently used in Fedora 12; which definitely will not be part of any RHEL 5 release.

Your system is not booting because this kernel was not built for RHEL 5; and thus is completely incompatible with all your other packages.
 
2 members found this post helpful.
Old 05-24-2010, 03:30 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you run RHEL then first make certain that running unsupported kernel versions does not invalidate your support (if you bought it). If you haven't bought support then shouldn't you be running RHEL-compatible Centos instead?

As for the error: you're early on in the boot process at the point where your initrd was loaded. Commands inside the initrd environment are run to pivot_root or switchroot from the "virtual root" inside the initrd to the real root of your GNU/Linux installation. As far as I know if you're missing kernel compile-time options like CONFIG_EXT3_FS=y (if using ext3) or CONFIG_SYSFS_DEPRECATED_V2=y (dunno), if you have not included modules in the initrd for RAID, LVM or other file-systems in use, if you've changed system labeling then such errors may occur.

I'd say boot the old kernel and review your .config for your 2.6.34.
 
Old 05-24-2010, 03:35 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
You should also be checking if your new kernel is using the new PATA drivers in place of the old IDE ones, which is more than likely.

There's a basic difference in the naming convention they use (the old ones would name your disks as hdX, the new ones name them as sdX, just like usb sticks and SATA drives). If that's the case then you will need to update your boot loader configuration and your fstab file accordingly.
 
Old 05-25-2010, 05:30 AM   #5
vivkepat
LQ Newbie
 
Registered: May 2010
Posts: 14

Original Poster
Rep: Reputation: 0
upgraded kernel

could you please give me the link form where i can download upgraded kernel.
i am currenlty using redhat 5.3 kernel version is 2.6.1.128-el5PAE.
i tried 2.6.33.4 and 2.6.34 but after upgrading im getting these errors.

mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
 
Old 05-25-2010, 05:35 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

Have you read the responses in post #2, #3 and #4?

As mentioned, using an unsupported kernel for RHEL is definitely not the way to go.

Repeating your original question won't help.
 
Old 05-25-2010, 07:20 AM   #7
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Have you upgraded the kernel with rpm -Uvh?

Also let us know what the necessary for you to go with 2.6.3x kernels.
 
Old 05-25-2010, 11:14 PM   #8
vivkepat
LQ Newbie
 
Registered: May 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Thnks alot for your support guys..
could you let me know what would be the compatible kernel that i want to upgrade..
and the any link where the required steps are mentioned....
I am very new into LINUX... please do help me.

Last edited by vivkepat; 05-25-2010 at 11:28 PM.
 
Old 05-26-2010, 09:16 PM   #9
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
You can install any RPM based kernels which supported by Redhat. The simplest way to upgrade kernel by yum.

yum update kernel kernel-devel kernel-header


If yum doesn't have latest kernels, you'll have to download the kernels from http://rpm.pbone.net/index.php3

Have a try and let us know if you encounter any problems.
 
Old 05-26-2010, 10:03 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
vivkepat

For any one release(5.x, 4.x, 3.x, etc) of RHEL(or Centos) there is only ONE base kernel. In the case of RHEL5.X, 5.0 came with a 2.6.18 based kernel and 5.9 (or whatever the last 5.X will be) will also have a 2.6.18 based kernel. This does NOT mean that the kernel is not updated. The features of newer kernels(such as 2.6.34) are back ported (where possible) into the 2.6.18 kernel. This does tend to lag behind the current kernels as it must be thoroughly vetted for stability and security issues. As a rough guess I would say that the current EL5.X kernel(2.6.18-194.) is roughly equivalent to a .30 kernel. In other words the 2.6.18-194 kernel is far closer to a vanilla 2.6.30 kernel than it is to a vanilla 2.6.18 kernel.

Why do you think you need a newer kernel?

On another issue: RHEL is not free. You can download and use it for free but to get access to the updates you have to pay the subscription. The few "core" OS updates you might find for free are at best a high security risk. The easier/cheaper way to get around this is to use Centos instead. Centos is built from RHEL source code. They just remove the logos and other proprietary bits. It is roughly 99.9% binary compatible with RHEL. Centos is free to download/update but it's only support is through forums.
 
Old 05-26-2010, 11:16 PM   #11
vivkepat
LQ Newbie
 
Registered: May 2010
Posts: 14

Original Poster
Rep: Reputation: 0
I am currently working as system admin. I am a fresher and my boss asked me to practice and gave me a task to upgrade the current kernel. so i am doing this as an assignmetn if there is any link relaterd to kernel upgradagtipon plz let me knw...
and thnks again guys for support
 
Old 05-27-2010, 04:36 AM   #12
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
vivkepat,

Quote:
I am currently working as system admin. I am a fresher and my boss asked me to practice and gave me a task to upgrade the current kernel. so i am doing this as an assignmetn if there is any link relaterd to kernel upgradagtipon plz let me knw...
People here have tried to explain to you how to go about doing this and what the latest RHEL 5 kernel is.

You will not get a step by step explanation at LQ - here we help people with specific situations.

Your first post shows a particular problem, which we've already explained why/how you can resolve.

Please read the posts above in DETAIL
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in kernel upgradation East Linux - Software 4 02-24-2008 04:47 AM
KERNEL upgradation aashishdhabarde Linux - Kernel 2 01-20-2008 07:23 PM
kernel upgradation kris.c Linux - Software 14 05-24-2007 11:43 PM
kernel upgradation coss Linux - Distributions 1 09-15-2006 12:50 PM
Problem in kernel upgradation from 2.4.20 to 2.6 uma_mahesh_2005 Linux - Software 2 03-31-2006 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration