LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel 3.0 giving me panic :) (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-3-0-giving-me-panic-883902/)

pinga123 06-01-2011 04:35 AM

Kernel 3.0 giving me panic :)
 
I was very exited to try out new kernel version so i decided to give it a try.
http://www.conceivablytech.com/7683/...-linux-3-0-rc1

So i downloaded the kernel 3.0-rc1 from
http://www.kernel.org/


It was my first kernel compilation everything went smooth until i reboot the system .New kernel is not loading and giving me following error.

The root partition is using LVM and its having no trouble booting from previous 2.6.18-92.el5 kernel .
Code:

Red Hat nash version 5.1.19.6 starting
reading all physical volumes. This may take while...
No volume groups found
Volume group "VolGroup00" not found
mount: could not find filesystem '/dev/root'
Kernel panic - not syncing :attempted to kill init!

I m not sure why its happening.Is it because the previous kernel was el5 and not rhel5.
Code:

# uname -r
2.6.18-92.el5
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release:        5.2
Codename:      Carthage


markush 06-01-2011 05:34 AM

Quote:

Originally Posted by pinga123 (Post 4372866)
Code:

Red Hat nash version 5.1.19.6 starting
reading all physical volumes. This may take while...
No volume groups found
Volume group "VolGroup00" not found
mount: could not find filesystem '/dev/root'

Kernel panic - not syncing :attempted to kill init!


It seems your kernel lacks drivers for the filesystem and LVM.

Could you please describe in more detail how you did the configuration of your kernel?

Markus

pinga123 06-01-2011 06:24 AM

Quote:

Originally Posted by markush (Post 4372914)
It seems your kernel lacks drivers for the filesystem and LVM.

Could you please describe in more detail how you did the configuration of your kernel?

Markus

I did it exactly as described in following blog .I used previous kernel configuration file to avoid any error.My previous kernel has support for lvm so in that regard the new kernel should be having the support for LVM.

http://www.howtoforge.com/kernel_compilation_fedora_p2

markush 06-01-2011 06:43 AM

Did you check with
Code:

make xconfig
if the configuration is really correct? You may as well use grep to check your .config file. For example
Code:

grep -i _md .config
Markus

grail 06-01-2011 07:07 AM

Also did you read any background on the 3.0 kernel? Could be they have changed the way some options are stored. This may affect the fact that you used the old config and those options were named different or not compatible. Markus' idea about grepping for the desired elements should help.

markush 06-01-2011 08:23 AM

Quote:

Originally Posted by grail (Post 4372987)
Also did you read any background on the 3.0 kernel? Could be they have changed the way some options are stored. This may affect the fact that you used the old config and those options were named different or not compatible...

Well, I've compiled linux-3.0-rc1 and it's running yet
Code:

Linux samsung 3.0.0-rc1 #1 SMP Wed Jun 1 15:06:53 CEST 2011 x86_64 AMD Athlon(tm) II Dual-Core M320 AuthenticAMD GNU/Linux
There are no big differences to the 2.6.38.2 Kernel which I was running before with Slackware64-13.37. I did a
Code:

make oldconfig
(after copying the .config from the 2.6.38.2 kernel) and used all the defaults on new features and checked whith make xconfig.

Markus

grail 06-01-2011 08:55 AM

Fair enough ... haven't had a go yet myself so just throwing up some ideas :)

sundialsvcs 06-01-2011 09:27 AM

The root cause of the problem is in the "Volume not mounted" message.

The message, "not syncing - attempted to kill init" is slightly cryptic, but here is what it really means:
  1. "Not syncing" actually means that Linux was not in the middle of a disk-write when the error occurred. It is not a comment on the problem itself. (It does mean, happily, that your filesystem has probably not just been destroyed.)
  2. "Attempted to kill init" would be better stated as, "init just died ... but init is not allowed to die!"

And so it is. init is one of those very-special processes that are "hand-made" by Linux during the startup sequence. It is fundamental to the operation of the system, such that Linux cannot run if this process is not in good health. If this process dies, or fails to start, or gets killed, for any reason at all, the kernel will stop cold ("panic") with this message.

But, as you can now see, this message is a symptom, or perhaps a consequence, of "the real problem" which occurred moments before. Conditions prevailed at startup-time which made it impossible for init either to start or to stay started, and Linux has no choice but to halt if this ever happens.

markush 06-01-2011 09:55 AM

Quote:

Originally Posted by sundialsvcs (Post 4373127)
  1. "Not syncing" actually means that Linux was not in the middle of a disk-write when the error occurred. It is not a comment on the problem itself. (It does mean, happily, that your filesystem has probably not just been destroyed.)
  2. "Attempted to kill init" would be better stated as, "init just died ... but init is not allowed to die!"
...

thanks for the detailed explanation. In my post #2 above I referred to this
Quote:

Originally Posted by pinga123
Code:

mount: could not find filesystem '/dev/root'

I had this message sometimes with Gentoo when the kernel was missing either the driver for the filesystem or the SATA-driver (which I had forgotten to compile into the kernel instead of building it as a module). Maybe (otherwise) the system of the OP needs an initrd which was not yet installed.

Markus

pinga123 06-01-2011 10:06 PM

Quote:

Originally Posted by markush (Post 4372975)
Did you check with
Code:

make xconfig
if the configuration is really correct? You may as well use grep to check your .config file. For example
Code:

grep -i _md .config
Markus

Code:

# grep -i _md .config
CONFIG_SCTP_HMAC_MD5=y
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID10=m
CONFIG_MD_RAID456=m
CONFIG_MD_RAID5_RESHAPE=y
CONFIG_MD_MULTIPATH=m
CONFIG_MD_FAULTY=m
CONFIG_USB_MDC800=m
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=m

Any clue?

grail 06-02-2011 12:07 AM

You could try setting all the 'm' to 'y' as it may be that the driver cannot be a module as Markus mentioned in earlier post.

pinga123 06-03-2011 12:44 AM

Quote:

Originally Posted by grail (Post 4373773)
You could try setting all the 'm' to 'y' as it may be that the driver cannot be a module as Markus mentioned in earlier post.

I did it and recompiled the kernel still facing the same problem.

However i forget to give you some information which i m revealing now.
I was running short of disk space in / partition so i added a new disk and added to / partition using LVM.

Is this a cause of the trouble.
I have also googled the problem and found something which might be related to the error.
http://www.gentoo.org/doc/en/lvm2.xml
Since this is my first kernel compilation i m little confused on what to do ?

markush 06-03-2011 02:54 AM

Hi,

are you sure, that you can boot with your old kernel? After your last post I'm not sure if the problem actually is the new kernel.

BTW, I read the announcement for kernel 3.0-rc1 at linux.kernel and Linus Torvalds states that there is no big changes in the kernel:
Quote:

Originally Posted by Linus Torvalds at linux.kernel on May 30
...
So what are the big changes?

NOTHING. Absolutely nothing. Sure, we have the usual two thirds driver
changes, and a lot of random fixes, but the point is that 3.0 is
*just* about renumbering, we are very much *not* doing a KDE-4 or a
Gnome-3 here. No breakage, no special scary new features, nothing at
all like that. We've been doing time-based releases for many years
now, this is in no way about features. If you want an excuse for the
renumbering, you really should look at the time-based one ("20 years")
instead.
...

Note that if you have any drivers which are compiled with the old kernel, for example firmware-network-drivers, you'll have to rebuild them with the new kernel. But this requires that you can boot your system and has (as well) nothing to do with kernel 3.0

Markus

evo2 06-03-2011 03:12 AM

Just want to point out that while there are only small changes between 2.6.39 and 3.0-rc1, there are some very significant changes between 2.6.18 and 2.6.39.

Evo2.

markush 06-03-2011 04:55 AM

Hello evo2,

that's a very good point, I didn't recognize that the OP's old kernel is outdated.

Markus

Karl Godt 06-03-2011 07:07 AM

Quote:

Maybe (otherwise) the system of the OP needs an initrd which was not yet installed.
Because md drivers are essential @boottime and most big linux OS's come with an initrd and the md drivers are build as modules, they should probably be inside the intrd.[img|gz|.*] . To check this you have to mount -o loop /boot/initrd.img /FOLDER or to unarchive it , change the drivers inside and repack it .

pinga123 06-05-2011 11:37 PM

Quote:

Originally Posted by markush (Post 4374830)
Hi,

are you sure, that you can boot with your old kernel? After your last post I'm not sure if the problem actually is the new kernel.

BTW, I read the announcement for kernel 3.0-rc1 at linux.kernel and Linus Torvalds states that there is no big changes in the kernel:

Note that if you have any drivers which are compiled with the old kernel, for example firmware-network-drivers, you'll have to rebuild them with the new kernel. But this requires that you can boot your system and has (as well) nothing to do with kernel 3.0

Markus

Thanks for the help .I will keep this in mind.Currently i have formatted the disk with No LVM support (With old kernel) .Now i will try to upgrade it with New kernel If i would be successful in doing that i will definitely come to the inclusion that it was a LVM driver issue.
Other wise I will have to explore more options.

Yes i can boot with old kernel .

pinga123 06-05-2011 11:42 PM

Quote:

Originally Posted by markush (Post 4374830)
Hi,

are you sure, that you can boot with your old kernel? After your last post I'm not sure if the problem actually is the new kernel.

BTW, I read the announcement for kernel 3.0-rc1 at linux.kernel and Linus Torvalds states that there is no big changes in the kernel:

Note that if you have any drivers which are compiled with the old kernel, for example firmware-network-drivers, you'll have to rebuild them with the new kernel. But this requires that you can boot your system and has (as well) nothing to do with kernel 3.0

Markus

Not sure about all this as this is my 1st exp in compiling the kernel .However i suppose

Code:

make mrproper
cp /boot/config-`uname -r` ./.config

change all *_md* to yes in newly copied config
then
Code:

manu menuconfig
should do the trick
If something else is required then please let me know.

pinga123 06-05-2011 11:43 PM

Quote:

Originally Posted by evo2 (Post 4374843)
Just want to point out that while there are only small changes between 2.6.39 and 3.0-rc1, there are some very significant changes between 2.6.18 and 2.6.39.

Evo2.

Ohhh Should i first upgrade to 2.6.18 to 2.6.39 ---> kernel 3.0

markush 06-06-2011 12:24 AM

Quote:

Originally Posted by pinga123 (Post 4377427)
Not sure about all this as this is my 1st exp in compiling the kernel .However i suppose

Code:

make mrproper

then
Code:

make oldconfig
which generates a .config for the new kernel and asks for new options.
Quote:

Code:

cp /boot/config-`uname -r` ./.config
change all *_md* to yes in newly copied config
don't do that, .config is an automatically generated file, you must not make any changes manually.
Quote:

then
Code:

make menuconfig
should do the trick
If something else is required then please let me know.
The md-settings are in the section "Device-Drivers->LVM...."

Markus

evo2 06-06-2011 01:18 AM

Quote:

Originally Posted by pinga123 (Post 4377428)
Ohhh Should i first upgrade to 2.6.18 to 2.6.39 ---> kernel 3.0

Not necessarily, I just thought it worth pointing out that problems you are having are likely not specific to the 3.0 kernel.

Evo2.

pinga123 06-06-2011 06:10 AM

I have tried compiling the kernel from a machine with no LVM support .Its still giving me the error.

The exact error message is posted as an image here.
https://lh3.googleusercontent.com/-J...ernelError.jpg

I have no clue what the error message is saying that it is unable to load /dev/root.

This time i have not set all _md to y as the compilation is done using old kernel config as the old kernel is able to boot so the new should do the same( In an ideal scenario).

Also after selecting the old config file using menuconfig i m getting following error .

Code:

.config:656:warning: symbol value 'm' invalid for IP_DCCP_CCID3
.config:657:warning: symbol value 'm' invalid for IP_DCCP_TFRC_LIB
#config:1353:warning: symbol value 'm' invalid for FIXED_PHY
# configuration written to .config 'm' invalid for IWL4965
#config:1619:warning: symbol value 'm' invalid for ISDN
.config:2721:warning: symbol value 'm' invalid for RTC_INTF_SYSFS
.config:2722:warning: symbol value 'm' invalid for RTC_INTF_PROC
*** End of Linux kernel configuration. invalid for RTC_INTF_DEV
*** Execute 'make' to build the kernel or try 'make help'._LOCKING_DLM

Not sure what the problem is.
Need an expert help here.


All times are GMT -5. The time now is 11:37 PM.