LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-01-2005, 09:04 AM   #1
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Rep: Reputation: 15
kernel panic - not syncing:no init found


Hi friends!
First of all... happy new year!
Ok, i'm going with my issue.
I have the 2.4 and 2.6.9 kernel working fine. Well the 2.6.9 gives me some module not found errors and i have must to comment in /etc/modules.conf, but this is not the matter now. Well, I don't like it neither then if somebody can tell me why i have this module missing... wonderfull.
But the problem i have is the next:
I have installed the 2.6.10 kernel from sources.
When i boot with it i take this error:

Kernel Panic - not syncing: init not found. try passing init= option to the kernel

Maybe I can solve the problem passing init=/bin/sh to the kernel, but i can't do it because the token "init" is not recognized by lilo. Furthermore, if init is not found the kernel searchs it through different values, one of them is the shell that i will pass to init. Then I don't think this is the solution.

If somebody can tell me another way to tell the kernel where can found init or something about this issue it will be a great magic kings present ;-)

Maybe is any option wrong in my kernel-config??? I have compiled kernels since a lot of time, then i have a bit experience and i think this is not, but if you know some option to check,... it will be fine too.

Thanks.
 
Old 01-01-2005, 09:20 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
this error comes if

u do not have correct File System support
if u have mounted a wrong partiton for root partition
or missed out something from ur kernel config.

regards
 
Old 01-01-2005, 05:14 PM   #3
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Original Poster
Rep: Reputation: 15
Hi, thanks for your response...
The system is apparently well mounted because the kernel panic i have after

VFS: mounted root
Freeing unused kernel memory: 356k freed

i have cheked all the options for the raiserfs, what is the file system i have,...

any other suggest more explicit ?

thanks !
 
Old 01-02-2005, 01:15 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

post the contents of lilo.conf or grub.conf
and
fdisk -l /dev/hda
if u have primary partiton

u can do this by goingbinto rescue mode

and how did u build ur 2.6.10 kernel
did u load the settings that worked for u in 2.6.9

regards
 
Old 01-02-2005, 05:21 AM   #5
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Original Poster
Rep: Reputation: 15
Hi man !
Here the post:

-----------------------------------------------
####### lilo.conf #######
# Support LBA for large hard disks.
lba32

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
boot=/dev/hda3

# Specifies the device that should be mounted as root. (`/')
root=/dev/hda3

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
install=/boot/boot.b

# Specifies the location of the map file
map=/boot/map

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
prompt
single-key
delay=100
timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
vga=normal

# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.

# i will try this option now...
append="init=/sbin/init"


# Boot up Linux by default.
default=Linux

image=/vmlinuz
label=Linux
read-only
initrd=/initrd.img
alias=1

image=/boot/bzImage-2.6.10
label=Linux-2.6.10
alias=2

image=/vmlinuz.old
label=LinuxOLD
read-only
alias=3


####### fdisk -l /dev/hda #######

Disk /dev/hda: 10.1 GB, 10110320640 bytes
255 heads, 63 sectors/track, 1229 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 31 248976 82 Linux swap
/dev/hda2 32 778 6000277+ 83 Linux
/dev/hda3 * 779 1229 3622657+ 83 Linux
------------------------------------------------------

I don't have used the 2.6.9 config, because this one i have installed from the .deb kernel image.

Thanks a lot for your helping !
Take care
 
Old 01-02-2005, 06:31 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
in ur default linux entry

u are using a initrd image
so i think ur system requires initrd image
and so should make urself a initrd image

regards
 
Old 01-03-2005, 03:57 AM   #7
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Original Poster
Rep: Reputation: 15
Hi there !
Thanks for following the issue.
I will try to make an initrd for the new kernel, but is not always needed. As you can see in the other kernel image there is no initrd and it starts fine too.
Anyway, i'm going to test your suggestion when i come back home.
 
Old 01-03-2005, 04:14 AM   #8
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Original Poster
Rep: Reputation: 15
I was trying to do remotely but i found the problem of how to make an initrd for the kernel 2.6.10 if i'm running the 2.6.9.
I have taken a look for man about initrd, mkinitrd but i don't have anything clear and i don't want to risk to delete my functional initrd for the kernel i'm running.

Maybe is:
#mkinitrd -r root 2.6.10

the way to do it ?

thanx
 
Old 01-03-2005, 04:53 AM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
for making initrd images

mkinitrd /boot/initrd-2.6.10.img 2.6.10
this will make an initrd image of the name 2.6.10.img in ur /boot
assuming that u have the corresponding modules in the directory /lib/modules/2.6.10


regards
 
Old 01-04-2005, 11:52 AM   #10
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Original Poster
Rep: Reputation: 15
hi again!
i have created the initrd but all stays the same...

any other suggestion ?
 
Old 01-04-2005, 12:01 PM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
ok
so we are back to where we started!
and as u posted u have 2.6.9 kernel working on ur system
what i do in these situations is to load the config file of the 2.6.9 kernel in 2.6 10 and make no changes to that configuration and see if that kernel works

regards
 
Old 01-11-2005, 08:35 AM   #12
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Original Poster
Rep: Reputation: 15
Hi again!
This is the last post about this issue because i write to you only to tell you that i have reinstalled all my system with windows,... this is a serious OS and too much easy...
Juas !!! Have to trust me mate ??? No man... i haven't done this... But i forget the kernel 2.6.10 for instance and i work with the 2.6.8 (or 9?)image provided by SARGE.
I was thinking about and maybe i was wrong in the chip selection, i don't know why, but i'm thinking if i confused the mother chip with graphics chip and then i have put ati instead i810, but well i'm not sure and i have remounted all my system since zero because i want to do this also. Now i'm going to control better what in my system is and maybe i retry to install the 2.6.10 kernel but paying more atention ;-)

Thanks for your following assistance !

Best regards.
 
Old 01-11-2005, 11:15 AM   #13
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
all ur queries are very much welcome !

and
Happy B'Day..

regards
 
Old 01-12-2005, 03:13 AM   #14
amimusa
Member
 
Registered: Aug 2004
Location: Spain
Distribution: debian | ubuntu
Posts: 67

Original Poster
Rep: Reputation: 15
Thank you man!
I didn't know why there are forums where ask for your birthday day... now i know

Feel free to attach me in your contact program if you use any: amimusa@hotmail.com

I also have jabber, but i dont have buddies there, then i don't used it.
If you would like to attach me with this protocol we can do it also... then tell me your id if you want or let's let this like a funny and graetfull post discussion.

Regards!
 
Old 01-12-2005, 03:58 AM   #15
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
he i run a linux -group
it's very much young

have a look at

www.linux-iips.tk

and I have a yahoo group for that also

regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic - not syncing: Attempted to kill init! potsilui Linux - Kernel 28 05-09-2012 11:46 AM
Kernel panic-not syncing: No init found joirnange Linux - Newbie 7 09-12-2010 04:27 AM
Kernel Panic - Not Syncing: Attempted To Kill Init! tegralens Linux - Software 13 06-23-2008 03:15 PM
"Kernel panic - not syncing: No init found." rwhite7890 Linux - General 6 06-26-2005 05:13 AM
kernel panic not syncing no init found CloudBuilder SUSE / openSUSE 2 04-30-2005 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration