[lug] Help!

Trent Jarvi taj at parcelfarce.linux.theplanet.co.uk
Tue Mar 12 16:24:04 MST 2002

On Tue, Mar 12, 2002 at 03:57:07PM -0700, Kevin Fenzi wrote:
> Terry> I just upgraded using the 2002-03-01 KRUD disk. The first
> Terry> problem was that several packages caused errors during the
> Terry> install; by deselecting the packages that caused errors I was
> Terry> finally able to complete an installation.  (I can send the
> Terry> install dump from the error if needed.)
> what kind of errors? I would love to see the dump... ;) 
> Terry> Now the big problem: I cannot boot into Linux! I get the error
> Terry> Kernel panic: no init found
> Terry> How can I get my Linux back?
> so it's getting to the point where it can load the kernel, but can't
> run /sbin/init after the kernel is done booting. 
> Try booting with: 
> linux init=/bin/bash 
> and see if that works. Looks like your init package is messed up or
> the partition with the init package on it. 
> Terry> Thanks, Terry Branaman
You may be able to pass init=/bin/sh to the kernel.  If lilo is used it
would look something like:

lilo: <tab> to see kernels
linux linux-old linux-testing (kernels)
lilo: linux init=/bin/sh

I suspect you upgraded init but not one of the libs it links to or 

ldd /sbin/init
        libc.so.6 => /lib/libc.so.6 (0x40023000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

If thats the case you will need to find a rescue disk, mount the hd and start
manually installing rpms until its bootable...

ldd /bin/sh  
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x40023000)
        libdl.so.2 => /lib/libdl.so.2 (0x40027000)
        libc.so.6 => /lib/libc.so.6 (0x4002b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

sash is a static shell that will let you boot (init=/bin/sash) but its
not usually installed.  You would have to mount the partition and copy
the file over.

Tom's rescue disk can be handy for situations like this.


Trent Jarvi
trentjarvi at yahoo.com

More information about the LUG mailing list