Solved

Kernel Panic on startup on Redhat - please, please help for fix !

Posted on 2013-01-04
6
1,398 Views
Last Modified: 2013-01-04
I have a Redhat system that was fully working just now.

I started a "yum update" - but decided that the 650Mb of updates probably wasn't a good time to update.  So I typed "N".  I then restarted the system.

I'm now getting a "Kernel Panic - not syncing: attempted to kill init!"

When I go into grub, I can see two options :

Oracle Linux Server-uek (2.6.32-100.34.el6uek.x86_64)
Oracle Linux Server (2.6.32-131.0.15.el6.x86_64)

I've tried booting both to no avail.

My kernel arguments for the second option is :

root (hd0,0)
kernel /vmlinuz-2.6.32-131.0.15.el6.x86_64 ro root=/dev/mapper/vg_ussoadev02-lv_root rd_LVM_LV=vg_ussoadev02/lv_root rd_LVM_LV=vg_ussoadev02/lv_swap rd_NO_LUKS 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-131.0.15.el6.x86.x86_64.img

Heres the thing - I think when I ran a yum update, it updated the grub.conf to the above version - but its sister (which I didn't run a yum update on) has 2.6.32-100.34.1.el6.x86_64 as its version.

How do I check from grub command line to see what kernel I have available

How to I modify my grub.conf so that I can put it back to the right kernel

I appreciate all the help you can provide with this in advance  !
0
Comment
Question by:altquark
  • 3
  • 3
6 Comments
 
LVL 12

Accepted Solution

by:
ibrahim52 earned 500 total points
ID: 38744514
You should go through the page below. There are points regarding your query, well mentioned.

Referred link :
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-rescuemode.html
0
 
LVL 12

Expert Comment

by:ibrahim52
ID: 38744526
Otherwise , use this tool. I have come over such issues so many times and got it fixed with "boot-repair" give it a try, if you want.

http://sourceforge.net/p/boot-repair/home/Home/
0
 
LVL 1

Author Comment

by:altquark
ID: 38744540
ok - I can only get into grub.  I cannot install a rescue disk or apply a USB to this system.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 1

Author Comment

by:altquark
ID: 38744581
aha - I managed to boot into single-user mode - I had to add "selinux=0" at the end - which reminded me, I was trying to change the system from selinux=targeted to selinux=permissive, and I managed to change the wrong value in selinux.  The system is back up and running now !  Holy smokes, that was scary !!!
0
 
LVL 1

Author Closing Comment

by:altquark
ID: 38744584
Thankyou.  Not the complete answer, but it was a good link that got me started !
0
 
LVL 12

Expert Comment

by:ibrahim52
ID: 38744627
I am glad I was able to help you any way and  Thank you :) to posting your experience so it is easy for other users facing similar issues. Thanks once again.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now