LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2002, 02:13 AM   #1
pvc9
LQ Newbie
 
Registered: Oct 2002
Distribution: Redhat 7.2
Posts: 2

Rep: Reputation: 0
Kernel panic : No init found


Hi all,
System Specs - AMD Duron 1 GHz, 256 MB SDRAM, 2 HDDs, 2 CDDs.

One of the HDDs is 40 GB, the other is 2 GB. As I had only one jumper, I couldnt connect all the drives at once. So I had to disconnect the 40 GB HDD, make the 2 GB HDD master, install RH Linux. Hope this is clear. I installed Linux with only the 2 GB HDD connected!

So, if I had to work with Linux I had to disonnect the 40 GB HDD and make the 2 GB HDD master...

Recently I got few jumpers from my friend() so I changed the settings, connected all the drives. Now the setup is -

Primary Master - 40 GB HDD
Primay Slave - CDROM Drve

Secondary Master - 2 GB HDD
Secondary Slave - CD Writer

When I boot through the 2 GB HDD, I get the bootloader(GRUB), the booting process continues for few seconds but it stops and the error message dsiplayed is -

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



Have searched on the net about the same, found some info but still

Quote:
Boot using linux init=/bin/bash, and then check that /etc/fstab is not corrupted, that /sbin/init is still there. Also check /etc/inittab for errors, but I do not expect that to be the problem.

Unless /etc/fstab shows corruption, I would suspect that the box was cracked by someone that didn't realy know what they were doing, and they goofed...
---------------------------------------
That could mean two things:
1. You don't have /sbin/init; ensure that you uncomment it in Config.h, and ensure you have the link to busybox.

2. You don't have required shared libraries; use chroot and ldd to check what is needed.

"Try passing init= option" means that you could give a init=/bin/sh argument to the kernel when LILO ask you which image to use.
I used the bootable Linux Cd, started the Rescue mode...got the shell, looked in Grub.conf...lost.

I can re-install the OS in less than 15 minutes but thats the last option...

TIA!
 
Old 12-22-2002, 04:54 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Re: Kernel panic : No init found

Quote:
Originally posted by pvc9

Primary Master - 40 GB HDD
Primay Slave - CDROM Drve

Secondary Master - 2 GB HDD
Secondary Slave - CD Writer

It's pretty simple, grub is looking for your init file to be located (somewhere) on /dev/hda and now it's (somewhere) on /dev/hdc.

Note the "(somewhere)", that's a hint...


Anyways, pass the string "init=/dev/hdc?/sbin/init" inside of grub.

Where you would replace the "?" with the actual partition number.

From there, you would edit your /boot/grub/menu.lst to reflect the partition changes, and then run grub-install. Then you would edit your /etc/fstab file so that it knew about the changes to your mount points.

And of course you would probably want to relocate from your 2G platter to your 40G platter. Do the "dd" for this. Then it's another round with grub & fstab (and whatever else I have forgotten about).

Let me know when you reach your 15 minute limit


John
 
Old 12-23-2002, 10:50 PM   #3
pvc9
LQ Newbie
 
Registered: Oct 2002
Distribution: Redhat 7.2
Posts: 2

Original Poster
Rep: Reputation: 0
Hi rootboy,
Thanks for the reply. I was having some problems with the other hardware connections, so I had to change the setup again. I had to change the 2 GB HDD to Primary Slave...so again lot of editing/changes. Instead re-installed Linux and things working fine now.

TA.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic: No init found. Try passing init= option to kernel ridak Fedora 0 07-14-2004 07:23 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
Kernel Panic: No Init Found Try Passing Init=option To Kernel Bakame Mandriva 7 03-14-2004 02:37 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:24 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