kernel panic: init not found

Posted on 2004-11-26
Medium Priority
Last Modified: 2013-12-15
because of inproper shutdown my linux server rh7.3 is not coming up..


Kernel panic: init not found.

please give me solution ASAP to fix thig.  I have 7.3 cd's.

408 480 3856
Question by:Sridhar_amujala
LVL 38

Accepted Solution

wesly_chen earned 1000 total points
ID: 12684096

  Boot from the RH7.3 first CD.
Type "boot rescue" at Linux boot prompt.
After the bash shell prompt show up, type "chroot /mnt/sysimage".
1. check the disk error:
# fsck -y /dev/hda1; fsck -y /dev/hda2; /dev/hda3; fsck -y /dev/hda5; fsck -y /dev/hda6; fsck -y /dev/hda7
   (do "fdisk -l /dev/hda" to check how many partitions you have)
2. If you use Grub boot loader, type "/sbin/grub-install --root-directory=/boot".
    If you use Lilo boot loader, type "cd /etc; lilo".

Then reboot.


Assisted Solution

jeiler earned 1000 total points
ID: 12690142
If you are getting the "init not found" message then the bootloader is fine.

Try passing init=/bin/sh as a boot arg, if that works then look to see if you actually have an /sbin/init (it could be /bin/init, I don't know what RH uses).  If you don't you could try to reinstall the SysVInit package, but if that file is gone then who knows what else may be missing.

If passing init=/bin/sh doesn't work then there is most likely a problem mounting the root partition.  Boot to the rescue cd and double check your (on your harddrive)/etc/fstab file.  Also look at (on your harddrive)/var/log/messages to see if there are any error messages about mounting your root partition.


Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question