LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-30-2004, 03:38 AM   #1
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Rep: Reputation: 15
Kernel bootup problem


Mandrake 9.2
2.6.1

When I boot my new kernel I get a blank screen, so I ask lilo vga=ask, when I boot I choose 0. Goes through some stuff then give me this message.

Kernel panic: No init found Try passing init: option to kernel

I have tried going "newkernel init=/bin/bash" but that doesn't work

Am I missing something. The kernel was make from scrach, I didn't use any old configs or anything.
 
Old 01-30-2004, 04:22 AM   #2
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
Try using recompile the kernel, using grub
 
Old 01-30-2004, 04:27 AM   #3
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by irfanhab
Try using recompile the kernel, using grub
lol newbie
since when did a gui really matter when compiling kernels?
lol
 
Old 01-30-2004, 05:57 AM   #4
vintermann
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora
Posts: 28

Rep: Reputation: 15
Uh, I don't know much about this, but shouldn't the init argument point to the init program (it's in /sbin/init at my home box)? If it's somewhere else on your machine that could explain why your kernel doesn't find it.

I assume that you installed the kernel from sources and not a cooker rpm or something, and that this problem appeared first time you tried your new kernel?
 
Old 01-30-2004, 08:08 AM   #5
ambelos
Member
 
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Rep: Reputation: 30
i ran into the same problem last night, after repartitioning my hard drive with partition magic(dual boot XP). if it is not pointing where it needs to be, how to i make point to it. how can i make this whole thing just....go away...and don't say to format my hd or do any sort of rm :-D thnx
 
Old 01-30-2004, 06:55 PM   #6
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
I found out what the problem was or accually why it was doing it. I disabled it and recompiled the kernel, didn't appear again but came up with a load of other errors like
ext3 not supported by the kernel
NFS etc crap

Linux is not working anymore because when I booted Mandrake did some stuff to the partions. So now I can't use it.

If I do compile a perfect kernel what should I expect to see? (only in the gui)
 
Old 01-30-2004, 07:00 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
i am not sure exactly what you mean by what you will see only in the gui....

but to guess what you mean, my answer would be :
you won't see nothing ... other than no errors
the machine boots up just normal, just like it does with the other kernel
and i guess when you type
uname -r
you will see the new kernel version, but other than that , that be it ...
 
Old 01-30-2004, 08:31 PM   #8
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
IC

Remind me again why I am upgrading kernel?
 
Old 01-30-2004, 08:38 PM   #9
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
only you should know the answer to that
 
Old 02-02-2004, 02:09 PM   #10
ambelos
Member
 
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Rep: Reputation: 30
please people, i still need help.

Ok, i repartitioned my hardrive, giving linux 3 more gigs. now, when linux trys to boot:

kernel panic: no init found. try passing init= option to kernel.

please, how do i fix this? i am using RH9(upgraded from 8). I still have my RH8 cds, but the RH9 cds where somebody elses, and i have no way of contacting him, for now. what should i do? what's the easiest way of fixing this without losing all my files i already have? thnx

jay
 
Old 02-02-2004, 03:26 PM   #11
vintermann
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora
Posts: 28

Rep: Reputation: 15
Did you try finding the init file? Init is the first program that runs after your system boots. It's hopefully there in your filesystem somewhere! try booting in knoppix/the old kernel or whatever you can do to get access to your filesystem. Find out where init lies in your system, (I would expect it to be /sbin/init, that's where it's _supposed_ to be in RH)

try running your kernel with init=/sbin/init or whatever the path to your init is.
 
Old 02-02-2004, 05:45 PM   #12
ambelos
Member
 
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Rep: Reputation: 30
how do i do that though? i think i can get to my filesystem, but only if i boot from cd and use the RH rescue. but still, from there, i don't know where to go and what to do. i have found a few forums in here that talk about this, but when i try to follow what they are talking about, i keep running into trouble. if i do a RH update, even though i going from 9 to 8, do u think it would help me get passed this problem? and then possibly when i get RH 9, i just do the upgrade again?
 
Old 02-03-2004, 01:39 AM   #13
vintermann
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora
Posts: 28

Rep: Reputation: 15
I doubt that the installation CD will allow you to do a "reverse upgrade". Have you tried booting with the boot disk?

You did make a boot disk didn't you? :-) If you didn't, you can probably do it easily with your rh8 disks, it offers to make one at the end of the installation (just choose to install nothing).

It's worth a try, but I don't think bootdisk will work if your init is missing or corrupted. Your best shot is really a knoppix disk or another system rescue tool. If you don't have one, it's a good investement in time and money to get one anyway.

You could just guess about the whereabouts of init without looking at the filesystem. Try init=/sbin/init first. If that doesn't work, try init=/bin/init. If that doesn't work either, try googlling for linux init or something, try to find out where it could possibly be on your system. In the worst case, try putting a new init on your system somehow - I have no idea if that will work, it may break something, but it's what I would try.
 
Old 02-03-2004, 06:31 AM   #14
ambelos
Member
 
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Rep: Reputation: 30
well, your right about trying to upgrade, acctualy, i can even install again. it says that it can't find the device period. i get stuck where it asks about my partitioning. why would repartitioning my hardrive make my linux and RH8 cd's not even know my hd is there? this is so wierd. i think i'm going to end up formatting the entire system, and install ONLY linux on the entire thing. mabe, MABE, i'll save a few gigs for windows, only for the very few programs i wish to run on it.

but either case, i still would like to know why it's doing this. i would like to recover all my files before erasing everything.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem adding kernel modules on bootup irmark Linux - Hardware 1 02-10-2006 12:44 AM
kernel panic on bootup MattJohnson Fedora 3 11-24-2004 11:18 AM
Slow bootup with new kernel Pho Debian 2 09-11-2004 09:03 PM
bootup kernel message in 2.6.4 csvke Linux - Software 3 03-23-2004 07:11 PM
update to new kernel ,bootup still boot old kernel? kalmen Linux - General 3 06-21-2003 06:55 PM


All times are GMT -5. The time now is 03:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration