Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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.
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.
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.
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:
"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.)
"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.
"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.)
"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.
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 ?
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.