View previous topic :: View next topic |
Author |
Message |
Gentoo_boy n00b
Joined: 22 Aug 2004 Posts: 45
|
Posted: Sun Aug 22, 2004 11:07 am Post subject: Kernal panic: No init found problem :( |
|
|
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 |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Sun Aug 22, 2004 11:13 am Post subject: |
|
|
You wrote kernal instead of kernel. |
|
Back to top |
|
|
Gentoo_boy n00b
Joined: 22 Aug 2004 Posts: 45
|
Posted: Sun Aug 22, 2004 11:16 am Post subject: |
|
|
oumpah-pah wrote: | You wrote kernal instead of kernel. |
thats not the problem.. :p
the real problem isn't fixed yet... |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Sun Aug 22, 2004 11:26 am Post subject: |
|
|
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 |
|
|
yinyang n00b
Joined: 29 Jul 2003 Posts: 65 Location: Berlin/Germany
|
Posted: Sun Aug 22, 2004 11:38 am Post subject: |
|
|
Your partition scheme might be of help too.
Have you a seperate boot partition for example? |
|
Back to top |
|
|
Gentoo_boy n00b
Joined: 22 Aug 2004 Posts: 45
|
Posted: Sun Aug 22, 2004 12:14 pm Post subject: |
|
|
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 |
|
|
yinyang n00b
Joined: 29 Jul 2003 Posts: 65 Location: Berlin/Germany
|
Posted: Sun Aug 22, 2004 12:34 pm Post subject: |
|
|
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 |
|
|
rush_ad l33t
Joined: 22 Jul 2004 Posts: 863 Location: New Jersey, USA
|
Posted: Sun Aug 22, 2004 12:55 pm Post subject: |
|
|
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 |
|
|
didl Retired Dev
Joined: 09 Sep 2003 Posts: 1106 Location: Pittsburgh, PA
|
Posted: Sun Aug 22, 2004 12:59 pm Post subject: |
|
|
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 |
|
|
Gentoo_boy n00b
Joined: 22 Aug 2004 Posts: 45
|
Posted: Sun Aug 22, 2004 4:48 pm Post subject: |
|
|
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 |
|
|
|