Solved

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

Posted on 2013-01-04
6
1,412 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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 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…
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…

929 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

9 Experts available now in Live!

Get 1:1 Help Now