Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic - not syncing: No init found
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
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Mon Jun 27, 2005 7:42 pm    Post subject: Kernel panic - not syncing: No init found Reply with quote

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
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Mon Jun 27, 2005 8:00 pm    Post subject: Reply with 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.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Mon Jun 27, 2005 9:01 pm    Post subject: Reply with quote

works sorry my silly mistake

cheers

offie
Back to top
View user's profile Send private message
imouthes
n00b
n00b


Joined: 06 Jul 2005
Posts: 2

PostPosted: Wed Jul 06, 2005 4:16 am    Post subject: same problem here... Reply with quote

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
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Wed Jul 06, 2005 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message
imouthes
n00b
n00b


Joined: 06 Jul 2005
Posts: 2

PostPosted: Wed Jul 06, 2005 5:21 pm    Post subject: Update.... Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Wed Jul 06, 2005 9:05 pm    Post subject: Reply with quote

You've to use

Code:
root=/dev/hda6


That's the partition with /, isn't it?
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