LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-08-2012, 11:50 AM   #1
jaxzen
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
Red Hat 5 - Kernel panic


I've been assigned the task of recovering the root password on a system that has a lot of data on it but the only people who know the root password have died/retired on bad terms and will not supply such.

I've messed around trying to follow this: http://docs.redhat.com/docs/en-US/Re...escuemode.html

the best I can, but no dice. Now, Red Hat won't even boot and when the computer is turned on, after the BIOS message I get the following:


Memory for crash kernel (0x0 to 0x0) not within permissible range
blah blah blah

VFS: Can't find ext3 filesystem on dev dm-0
mount: error mountaing /dev/root on sysroot as ex3: invalid argument
setuproot: moving /dev failed: no such file or directory
setuproot: error mountain /proc: no such file or directory
setuproot: error mounting /sys: no such file or directory
switchroot: mount failed: no such file or directory
Kernel panic - not syncing: attempted to kill init!

Is the drive corrupted? Is it possible to save it? The software/data on this machine is quite valuable to our company and there exist quite a few things on it that are a mystery as well. Can anyone help please? I'm not computer illiterate (BS EE), just terrified that I've done something awful and want someone knowledgeable to help.
 
Old 05-08-2012, 11:55 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,568

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Give us some more info on what you did here. RedHat should install a secondary kernel into Grub so you should be able to hit any key when the message comes up to go into grub. Follow these instructions and try selecting the alternate kernel version.

At the GRUB splash screen at boot time, press any key to enter the GRUB interactive menu.
Select Red Hat Enterprise Linux with the version of the kernel that you wish to boot and type a to append the line.
Go to the end of the line and type single as a separate word (press the Spacebar and then type single). Press Enter to exit edit mode.

Once the server boots into single user mode just type 'passwd' and change the root user's password.
 
Old 05-10-2012, 08:08 AM   #3
jaxzen
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have tried doing the a for append, and then typing single to no avail. After the first time I did this, it would no longer boot into Red Hat at all. Now, for whatever reason, I cannot get it to boot whatsoever and always get a kernel panic. I'm going to try what you said today, but any insight on how to stop the kernel panic would be much appreciated.
 
Old 05-10-2012, 08:26 AM   #4
jaxzen
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I know this is a double post, but I did exactly what you said and it wouldn't boot into single user mode, it gave me another script of kernel panic. Is there a way with recovery discs or anything to fix this?
 
Old 05-10-2012, 10:56 AM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,568

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Did you try the secondary kernel? When you go into grub you should see two kernels. If you are getting kernel panics on both the only option is going to be a re-install of the OS in most cases.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat 4.3 kernel panic bianchwl Linux - Newbie 2 05-26-2009 08:38 AM
Kernel Panic in Red Hat 9 cschafer Red Hat 2 02-17-2005 11:58 AM
Kernel panic on Red Hat Fedora 2 rtroxel Fedora - Installation 8 01-10-2005 12:45 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM


All times are GMT -5. The time now is 05:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration