LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Failed to Execute Init. No Init found. (http://www.linuxquestions.org/questions/linux-server-73/failed-to-execute-init-no-init-found-4175437788/)

ihjaz 11-19-2012 07:32 AM

Failed to Execute Init. No Init found.
 
Hi All,

Am running RHEL 6.0 and recently installed the new kernel rpms by following the steps mentioned here : http://www.linuxtopia.org/online_boo...m-upgrade.html

I did install rather than update so now I have two different entries for each kernel in the boot loader.

Initramfs was created successfully as part of install and the entry in grub.conf has also come good.

But when I select the new kernel at the grub, I get an error which reads something like this:
Failed to execute Init.
No Init found.


Am able to successfully boot the old kernel.

I checked the entry in the grub.conf and its exactly as the old kernel entry except for the version number.

I searched for this error and found some suggestions like add 3 to the grub entry, add init=/sbin/init, create initramfs manually using dracut but none of these worked for me.

linosaurusroot 11-19-2012 10:54 AM

If it can't find /sbin/init I'm going to guess the non-working kernel has the wrong boot device in its definition.

http://www.gnu.org/software/grub/manual/grub.html#root

ihjaz 11-20-2012 12:52 AM

My grub.conf file is as shown below:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda9
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.32-279.1.1.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-279.1.1.el6.x86_64 ro root=UUID=9753f5c8-80e9-48d4-869e-11c7d1e317cb rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
initrd /initramfs-2.6.32-279.1.1.el6.x86_64.img
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=9753f5c8-80e9-48d4-869e-11c7d1e317cb rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
initrd /initramfs-2.6.32-71.el6.x86_64.img


Entries are same for both the kernel except the version number difference and also I removed the 'quiet' option from the failing kernel to see if I can get some more logs.

chrism01 11-20-2012 01:09 AM

Can I ask why you went for the Manual upgrade instead of 'Use Yum to Install Kernels Whenever Possible' as advised in that chapter?

ihjaz 11-20-2012 03:02 AM

Quote:

Can I ask why you went for the Manual upgrade instead of 'Use Yum to Install Kernels Whenever Possible' as advised in that chapter?
That's because I do not have Red Hat Network subscription. I got the rpms from another team in my organization that had the subscription.


All times are GMT -5. The time now is 07:25 PM.