Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11175 - kernel panic: no init found. Try passing init= option to kernel. (can't find libc.so.6)
Summary: kernel panic: no init found. Try passing init= option to kernel. (can't find ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-24 20:03 UTC by Guy
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2002-11-24 20:03:36 UTC
Scenario: 
 
Running 'emerge -u world' 
 
One of the ebuild items is the latest 'ext2progs'. 
 
emerge quits with a "can't find ls:" message. 
 
Attempted reboot results in kernel panic message above. 
 
"/" is ext3 based. 
 
"/" is mountable and appears to be intact when booting off of the 1.4-rc1 iso 
and toms boot linux. 
 
Current recovery method: 
 
Move root hard disc to secondary position. Insert new primary hard disk. Build 
new copy of gentoo on new hard disk (I used reiserfs). Mount old disk and 
retrieve data. So far, this has happened to three different people including 
myuself.
Comment 1 Guy 2002-11-24 20:05:28 UTC
Note: I was running 'emerge -u world' from an xterm window while in kde. 
Comment 2 rgm 2002-11-24 20:08:41 UTC
I don't remember what the error message was when ebuilding, and I can't be
absolutely certain it has to do with e2fsprogs, but this happened to me to while
emerge -u world on my Gentoo 1.4rc1 system, while I was in X windows (in an
aterm, in OpenBox 2.1.3).

The system seemed to lose track of where my root partition was.  Upon examining
/etc/fstab (with rescue disk) I found fstab had entries like "/dev/ROOT" instead
of /dev/hda3, but I don't actually think this is a problem (but some in #gentoo
said it was).  No avail changing fstab.

Kernel is definitely booting with correct "root=" option (/dev/hda3 in my case).
Comment 3 rgm 2002-11-24 21:52:55 UTC
*sigh*

Note: http://forums.gentoo.org/viewtopic.php?t=21077
Comment 4 SpanKY gentoo-dev 2002-11-24 22:05:48 UTC
you could have always booted with a livecd and attempted a repair of system that way 
... chroot-ing, rebuilding of kernel, etc... 
Comment 5 rgm 2002-11-24 22:10:55 UTC
I've confirmed the following:
ldd /sbin/init
    libc.so.6 => /usr/lib/libc.so.6 (0x2aac6000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaab000)

And there is no libc.so.6 on my system.
I'm going to try booting a liveCD and such, but am quite a newbie.  This bug is
likely a portage bug, something about unmerging glibc when you're not supposed to.
Comment 6 SpanKY gentoo-dev 2002-11-24 22:22:44 UTC
what version of glibc do you guys have installed ? 
Comment 7 SpanKY gentoo-dev 2002-11-24 22:36:04 UTC
chroot to the old root partition and then run `qpkg glibc` ... 
if you dont have `qpkg` then `emerge gentoolkit` 
Comment 8 Guy 2002-11-25 16:05:23 UTC
Please note: everywhere I said 'ext2progs' I meant to say 'e2fsprogs'. 
 
I've already fdisked my old drive and re-partitioned it as a single partition. 
I've also formatted it for reiserfs. It is now dedictated as my /pub directory. 
 
I 'emerge -pu world' and usually 'emerge -u world' at least weekly. Often twice 
a week. So I'm fairly certain that the version of glibc I was running was the 
second to last one. (or there abouts anyway depending on how fast changes have 
been made.) If you roll back to November 11th to the 14th, the then state of 
portage would be representative of my system prior to the emerge which gave me 
problems. 
 
Sorry I can't provide more information. This is my critical system and I 
couldn't take any risks with the data nor could I let it stay down long. :( 
Comment 9 rgm 2002-11-25 22:07:12 UTC
FYI: My immediate problem is somewhat fixed, currently bootstrapping a new system.
Summary of this bug should be changed.

Upon rebooting system, init can't find libc.so.6 causing a kernel panic.
It seems impossible to chroot to the old system from rescue, because all the
shells expect this library.
Comment 10 Guy 2002-11-27 05:27:56 UTC
modified to include new additional info in the summary line.

See RGM's last post.
Comment 11 Brandon Low (RETIRED) gentoo-dev 2003-01-09 15:23:28 UTC
So whats going on with this?  Reopen it if it is still an issue.