Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic: No Init Found, try init= option
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gaz
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2002
Posts: 126

PostPosted: Mon Oct 14, 2002 2:02 am    Post subject: Kernel Panic: No Init Found, try init= option Reply with quote

Hey, Ive gone through the installation fine

put the kernel in /boot and it boots the kernel through grub

ive never compiled a kernel before, this is my first attempt

It boots! but then it goes

Kernel Panic: no init found, try init= option

-Gaz
Back to top
View user's profile Send private message
mudskinny
n00b
n00b


Joined: 14 Oct 2002
Posts: 10
Location: utah

PostPosted: Mon Oct 14, 2002 2:17 am    Post subject: Reply with quote

most likely this is caused by the kernel not being able to find init!!
i must suggest a review of your grub kernel options

eg, kernel /boot/bzImage root=/dev/hda3
make sure root= points to your / directory
_________________
later
Back to top
View user's profile Send private message
Guiyon
n00b
n00b


Joined: 14 Oct 2002
Posts: 7

PostPosted: Mon Oct 14, 2002 3:34 am    Post subject: KP first boot with init not found Reply with quote

Just ran into a similar problem with my Gentoo install. Managed to get from stage 1-3 with no problems (ignoring the stupid mistakes). Rebooted and I am immediatly greeted with the common "Kernal Panic: No Init found" etc, etc. Init is located in /sbin/init (first thing I checked)

The exact text of the error is:
Code:
ds: no socket drivers loaded!
reiserfs: checking transaction log (device 03:03)
Using r5 hash to sort names
ReiserFS version 3.6.25
VFS: Mounted root (reiserfs filesystem) readonly
Mounted devfs on /dev
Freeing unused kernel memory: 104k freed
Kernel panic: No init found. Try passing init= option to kernel.


Already triple checked my kernel setup to include devfs, along with all the required options for it (and the ext3,ext2 and reiserfs tool support). They are not loaded as modules. Recompiled the kernel , checked to make sure /boot was mounted properly and copied the bzImage over. Compiled the kernel using the gentoo-sources.

my fstab is as follows:
Code:
/dev/hda1      /boot      ext3         noauto,noatime      1  1
/dev/hda2      none       swap         sw                  0  0
/dev/hda3      /          reiserfs     noatime,notail      0  0
proc           /proc      proc         defaults            0  0
(cdrom entry not listed)

My menu.lst:
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Main Boot
root (hd0,0)
kernel=/boot/bzImage root=/dev/hda3


Searched the forums for anything related to this and tried all the suggestions; still came up with nothing.

System specs:
1Ghz Athlon-TBird
64MB PC-133 RAM (have a 128MB chip in the mail)
Abit KT7-A motherboard (VIA chipset)
4GB IDE Drive
RealTek 8139 based network card
GeForce2MX AGP
ESS Allegro-based sound card (ESS1989S chipset)

Other than this problem the setup was fun!

If you need any more info about the system let me know.

Update: Adding init=/bin/bash will allow the system to boot (sort of). At the point where it usually panics, I instead get a prompt reading "init2.05a#"


Last edited by Guiyon on Mon Oct 14, 2002 12:50 pm; edited 2 times in total
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Oct 14, 2002 4:10 am    Post subject: Reply with quote

Can you try turning the notail option off on your root partition?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Guiyon
n00b
n00b


Joined: 14 Oct 2002
Posts: 7

PostPosted: Mon Oct 14, 2002 4:20 am    Post subject: Reply with quote

Removed notail and still doesn't boot.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Oct 14, 2002 5:56 am    Post subject: Reply with quote

/sbin/init is executable, right? It's probably just a typo in the post, and I don't think it matters anyway, because the root partition is getting mounted, but there's a tiny chance that it would matter when it tries to remount it r/w, but that 'reiserf' in /etc/fstab is really 'reiserfs' in the real thing, right?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Guiyon
n00b
n00b


Joined: 14 Oct 2002
Posts: 7

PostPosted: Mon Oct 14, 2002 1:03 pm    Post subject: Reply with quote

Yeah, that was just a typo in the post. It does actually read reiserfs in the fstab. Checked out init and it does have execute permissions on it (755).
Back to top
View user's profile Send private message
Guiyon
n00b
n00b


Joined: 14 Oct 2002
Posts: 7

PostPosted: Mon Oct 14, 2002 1:36 pm    Post subject: Reply with quote

Tried adding and init option to the boot parameters (init=/sbin/init). Still resulted in kernel panic. However, after I linked /sbin/init to /bin/init and used init=/bin/init the computer skipped the kernel panic. After that section however, it runs into a problem somewhere (didn't see anything, scrolled too fast. Is that output stored anywhere?). I did catch a bit of interesting text though:
Code:
In the meantime, mount /proc /proc -t proc
/sbin/rc killed      rm -rf ${svcdir}/failed >&/dev/null
/lib/dev-state/vc/* (repeated about 12 times with numbers 1-6)

INIT: Id "c1" respawning too fast. Disabled for 5 minutes
Spurious 8259A interrupt IRQ7
Back to top
View user's profile Send private message
oniq
Guru
Guru


Joined: 02 Sep 2002
Posts: 597
Location: Connecticut

PostPosted: Mon Oct 14, 2002 9:39 pm    Post subject: Reply with quote

Guiyon wrote:
(didn't see anything, scrolled too fast. Is that output stored anywhere?)


Try typing dmesg. I *believe* I had the same Kernel panic when I didn't compile the right root FS type into the kernel.
_________________
open like a child's mind.
Back to top
View user's profile Send private message
Luminion
n00b
n00b


Joined: 10 Oct 2002
Posts: 13
Location: Israel

PostPosted: Tue Oct 15, 2002 7:55 am    Post subject: Reply with quote

Quote:

Code:
title=Gentoo Main Boot
root (hd0,0)
kernel=/boot/bzImage root=/dev/hda3



Add devfs=mount to your kernel parameters in grub. Make sure your /etc/devfsd.conf is configured to produce compatibility links. Working example is at http://www.kyra.ath.cx/~meow/devfsd.conf .
_________________
"Against stupidity, Gods themselves contend in vain"
Back to top
View user's profile Send private message
Guiyon
n00b
n00b


Joined: 14 Oct 2002
Posts: 7

PostPosted: Tue Oct 15, 2002 1:36 pm    Post subject: Reply with quote

No such luck. Still ended up with a kernel panic. This thing is starting to become random. Rarely it will boot but then give me the above errors and nearly every other time kernal panic me. Once I get back from classes i'll try building a vanilla kernel to see if that helps at all.
Back to top
View user's profile Send private message
dmhaas
n00b
n00b


Joined: 12 Oct 2002
Posts: 6

PostPosted: Tue Oct 15, 2002 4:10 pm    Post subject: Reply with quote

Try turning off grsecurity and recompiling your kernel. I had the same problem and that fixed it for me...
Back to top
View user's profile Send private message
toruviel
n00b
n00b


Joined: 16 Oct 2002
Posts: 2
Location: POLAND

PostPosted: Wed Oct 16, 2002 10:52 pm    Post subject: its grsecurity Reply with quote

got the same problem. it happend on kernel compiled from gentoo-sources.
my own patched kernel (almost the same .config, except for different set of patches) worked OK, but it hasnt got devfs :) so now i'm compiling it with devfs and check it in hour.

BTW, using chpax utility on /sbin/init caused this broken kernel to run init, but failed (but no panic this time) few scripts further.
_________________
toruviel.
Back to top
View user's profile Send private message
Guiyon
n00b
n00b


Joined: 14 Oct 2002
Posts: 7

PostPosted: Wed Oct 16, 2002 11:17 pm    Post subject: Reply with quote

Thanks for the help! It ended up being the grsecurity that was screwing the boot up.
Back to top
View user's profile Send private message
toruviel
n00b
n00b


Joined: 16 Oct 2002
Posts: 2
Location: POLAND

PostPosted: Wed Oct 16, 2002 11:35 pm    Post subject: confirmed - grsecurity Reply with quote

ok, after compilation of my own patched kernel it works OK.
what is strange, my kernel also contains grsecurity (and its enabled) but it just work :-) looks like grsecurity from gentoo-sources is different (because AFAIK i got the same .config grsecurity options in both kernels).

Anyway short solution is: turn off grsecurity.
Long one: tweak grsecurity in your kernel until it starts working ;)
_________________
toruviel.
Back to top
View user's profile Send private message
kinsta
n00b
n00b


Joined: 07 Aug 2002
Posts: 8
Location: Chicago, Illinois

PostPosted: Thu Oct 17, 2002 3:27 am    Post subject: Reply with quote

I've got the same problem with no hope in sight.

Here's the partitions:
/dev/hda1 Windows (UDE & Upaint & UnrealEd!)
/dev/hda2 /
/dev/hda5 /boot
/dev/hda6 /usr
/dev/hda7 /home
/dev/hda8 /tmp
/dev/hda13 swap
/dev/hda14 /var

The missing partitions are blank, ext3 and
reserved for web & database & lfs.

Did not compile grsecurity into kernel, at all.
Added devfs=mount and compliled into kernel. Also
dmesg still complains about devfs.
Have a /boot holding grub & kernel plus /
Recompiled both gentoo & vanilla kernels.
Poured over menu.lst and grub. Everything seems
in order. If I can see the splash screen I kind of
assume that I understand the 0-based grub config.
Windows also boots perfectly from grub...kernel
problem?

I'm no expert but isn't the kernel looking for a
file to run immediately after load? for example initrd?
isn't that what init= is suggesting? Again, I'm not even
a knowledgeable person but I remember reading about
initrd somewhere, LinuxDreamcast? LFS?

Absolutely no idea where to go. I regret blowing away
a fully functional 1.2.

Any help much much appreciated. Thanks!
Mak
Back to top
View user's profile Send private message
kinsta
n00b
n00b


Joined: 07 Aug 2002
Posts: 8
Location: Chicago, Illinois

PostPosted: Thu Oct 24, 2002 12:34 am    Post subject: Got It?!?! Reply with quote

I just booted my new 1.4_rc1 successfully! I did some digging on
the init and what __I__ (your mileage may very) believed helped
was setting the root device for the kernel using the rdev command.

With rdev I set the image and location of said image. For example:

cp arch/i386/bzImage /boot/bzImage-install
ln -s /boot/vmlinuz /boot/bzImage-install
rdev /boot/vmlinuz /dev/hda5

Maybe giving that a try will help someone else.

I will have to say that the grub part of the installation guide
was confusing to me.

Good Luck
Mak
Back to top
View user's profile Send private message
halo666
n00b
n00b


Joined: 27 Oct 2002
Posts: 1

PostPosted: Sun Oct 27, 2002 2:26 pm    Post subject: Reply with quote

Hi fellow gentoo users,

I had the same problem, but solved it in a different way.

My setup (gentoo 1.4r1):
/boot /dev/hda3 reiserfs
/ /dev/hda5 reiserfs
/usr /dev/hda6 reiserfs

Having upgraded to grub 0.92 because standard 0.90 doesn't seem to like reiserfs, I got the same Kernel Panic.

The point that made me curious was that on grub's boot screen, I had to manually edit my boot-entry kernel /boot/bzImage root=hda3 to:
kernel /bzImage root=/dev/hda3 . However, the I didn't reach the login dialog due to Kernel Panic.

Then I restarted using the live cd, mounted my partitions and chrooted as in the installation instructions, and changed my /boot/grub/grub.conf to:
kernel /bzImage root=/dev/hda5 . This solved my problem.


As I'm new to gentoo, I don't exactly know why gentoo gets confused when the /boot is on a different partition than /.

halo666
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum