Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernal panic: No init found problem :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Gentoo_boy
n00b
n00b


Joined: 22 Aug 2004
Posts: 45

PostPosted: Sun Aug 22, 2004 11:07 am    Post subject: Kernal panic: No init found problem :( Reply with quote

Hi there,
I'm new to this forum, need help to solve a problem:


Kernel panic: No init found, Try passing init=option to kernal



Code:

#boot settings
grub edit> kernel (hd0,1)/boot/bzImage root=/dev/hda2


No idea how to fix this problem, please give me a hand on this...



Last edited by Gentoo_boy on Sun Aug 22, 2004 11:14 am; edited 1 time in total
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Sun Aug 22, 2004 11:13 am    Post subject: Reply with quote

You wrote kernal instead of kernel.
Back to top
View user's profile Send private message
Gentoo_boy
n00b
n00b


Joined: 22 Aug 2004
Posts: 45

PostPosted: Sun Aug 22, 2004 11:16 am    Post subject: Reply with quote

oumpah-pah wrote:
You wrote kernal instead of kernel.



thats not the problem.. :p

the real problem isn't fixed yet... :(
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Sun Aug 22, 2004 11:26 am    Post subject: Reply with quote

In that case, be more specific. When, in the boot process, does the error message arise ? Also check your kernel configuration to see if you compiled support for your root filesystem into the kernel.
Back to top
View user's profile Send private message
yinyang
n00b
n00b


Joined: 29 Jul 2003
Posts: 65
Location: Berlin/Germany

PostPosted: Sun Aug 22, 2004 11:38 am    Post subject: Reply with quote

Your partition scheme might be of help too.
Have you a seperate boot partition for example?
Back to top
View user's profile Send private message
Gentoo_boy
n00b
n00b


Joined: 22 Aug 2004
Posts: 45

PostPosted: Sun Aug 22, 2004 12:14 pm    Post subject: Reply with quote

yinyang wrote:
Your partition scheme might be of help too.
Have you a seperate boot partition for example?


hd0 is the boot patition.. I'm kinda new to linux too, pls tell me more clearly :)

why commands are limited in grub edit? cannot use: lilo/nano/edit editors to see configuration files...


boot setting looks like this:
Code:
root (hd0,1)
grub edit> kernel (hd0,1)/boot/bzImage root=/dev/hda2 init=/linuxre real_root=/dev/hda2

Setting the init also didn't help much... :(

How to find kernel's real location in grub edit.. cuz I think that kernel path is set wrongly, not sure... :(
Code:

kernel (hd0,1)/boot/bzImage
Back to top
View user's profile Send private message
yinyang
n00b
n00b


Joined: 29 Jul 2003
Posts: 65
Location: Berlin/Germany

PostPosted: Sun Aug 22, 2004 12:34 pm    Post subject: Reply with quote

I don't think your boot partition is hd0 ;)

hd0 is your harddrive, I assume you installed grub there which means that you have written it to the master boot record (MBR) of your harddrive. Your partitions following grub style syntax are labeled hdx,y where x is your harddrive and y is a number from 0-... which marks the actual partition on that drive.

Btw, you don't need to use the grub editor for configuring everything. The only time where you need it is right after emerging grub (though there are other ways here too) to write it to whichever boot record you want it to be and afterwards just use a normal editor to edit /boot/grub/grub.conf.

For the partition scheme I am interested in the partitioning you did prior to installing gentoo the time you used fdisk and at least made 2 partitions for gentoo and swap.
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Sun Aug 22, 2004 12:55 pm    Post subject: Reply with quote

Code:
root (hd0,1)
grub edit> kernel (hd0,1)/boot/bzImage root=/dev/hda2 init=/linuxre real_root=/dev/hda2


change it to

Code:
grub edit> kernel (hd0,1)/boot/bzImage root=/dev/hda2 real_root=/dev/hda2
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Sun Aug 22, 2004 12:59 pm    Post subject: Reply with quote

Please post the content of your /etc/fstab.

If you proceeded according to the installation guide your
boot partition will be on hda1 and your root partition
will be on hda3. Hence the line should read sth like

Code:

kernel (hd0,0)/boot/kernel-2.6.7 root=/dev/hda3


BTW: You should edit the file /boot/grub/grub.conf instead
of doing it from the grub command line.
Back to top
View user's profile Send private message
Gentoo_boy
n00b
n00b


Joined: 22 Aug 2004
Posts: 45

PostPosted: Sun Aug 22, 2004 4:48 pm    Post subject: Reply with quote

hi,
found the problem, /etc/ is missing from the drive and 2nd hdd is showing that it has nil data, it's very wiered.. Bootable drive has all other files and folders except /etc/ directory..

I checked that by Gentoo's LiveCD.. have no idea how it got erazed.
I think I need to install the fresh copy of Gentoo.



Thanks to you guys for trying to solve the problem..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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