View previous topic :: View next topic |
Author |
Message |
iancognito85 Apprentice
Joined: 31 Dec 2002 Posts: 283 Location: United Kingdom
|
Posted: Mon Jun 27, 2005 7:42 pm Post subject: Kernel panic - not syncing: No init found |
|
|
Hi there
Ok done a stage 2 install, unbzipped the stage tarball and portage tree, chrooted and did emerge system, emerged a kernel, configured grub. (I didnt follow the guide as I've done this about a zillion times...)
Restart computer.. i get:
Code: | Freeing unused kernel memory: 176k freed
Warning: unable to open initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
|
What have I done wrong? Any suggestions?
Cheers
offie |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Mon Jun 27, 2005 8:00 pm Post subject: |
|
|
Did you specify the correct root= in the kernel command line in grub.conf ? The kernel can't find /dev/console and /sbin/init on what it thinks is the root filesystem. |
|
Back to top |
|
|
iancognito85 Apprentice
Joined: 31 Dec 2002 Posts: 283 Location: United Kingdom
|
Posted: Mon Jun 27, 2005 9:01 pm Post subject: |
|
|
works sorry my silly mistake
cheers
offie |
|
Back to top |
|
|
imouthes n00b
Joined: 06 Jul 2005 Posts: 2
|
Posted: Wed Jul 06, 2005 4:16 am Post subject: same problem here... |
|
|
Quote: | Did you specify the correct root= in the kernel command line in grub.conf ? The kernel can't find /dev/console and /sbin/init on what it thinks is the root filesystem. |
I have the same exact problem and it has happened on two separate computers/installs. I followed the handbook for the install and opted to configure my kernel manually. Furthermore, I dont have a initrd file in my /boot directory only the kernel image. Ive tried the solution
here:http://www.linuxforums.org/forum/post-228112.html
and here:http://users.dslextreme.com/~craig.lawson/linux_notes/recovery.html to no avail. Maybe I missed it, but the handbook makes no mention on setting up a init file so I would think that this would be created automatically.
any suggestions would be great!
my grub.conf file:
Code: |
default 0
timeout 10
title= Gentoo Linux
root (hd0,0)
kernel=/kernel-2.6-11-gentoo-r3 root=/dev/hda1
|
thanks
marquis |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Wed Jul 06, 2005 9:04 am Post subject: |
|
|
imouthes wrote: | root=/dev/hda1 |
If you have a separate boot partition, and you used the "standard" partitionning (boot, swap, root), then your root partition is probably /dev/hda3 instead. |
|
Back to top |
|
|
imouthes n00b
Joined: 06 Jul 2005 Posts: 2
|
Posted: Wed Jul 06, 2005 5:21 pm Post subject: Update.... |
|
|
Quote: | If you have a separate boot partition, and you used the "standard" partitionning (boot, swap, root), then your root partition is probably /dev/hda3 instead. |
/dev/hda1 boot
/dev/hda2 usr
/dev/hda3 var
/dev/hda4 extented partition
/dev/hda5 swap
/dev/hda6 /
so I should use / instead of /boot ?
Seeing that my problem seems to be a lack of an initrd, I decided to do the genkernel compilation and see if it would generate initrd, and it did! however, when I put the path to initrd in grub.conf it still gave me the same error, with some extra stuff saying that I should 'exec /linuxrc' or set 'init=/linuxrc' . I tried the latter and gave me same error.
It seems I may have missed something important during the install. Going to try to start from scratch and this time compile using genkernel if I cant figure this out soon.
marquis |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Wed Jul 06, 2005 9:05 pm Post subject: |
|
|
You've to use
That's the partition with /, isn't it? |
|
Back to top |
|
|
|