Solved

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

Posted on 2013-01-04
6
1,446 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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é.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

735 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