LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-17-2011, 06:51 PM   #1
jfraymondpa
Member
 
Registered: Oct 2005
Location: Northeast PA
Distribution: Fedora 15/Ubuntu 10.10
Posts: 53

Rep: Reputation: 15
How do I recover from Kernel Panic?


My desktop hung during an update of my Fedora 14 kernel. When I rebooted I got a Kernel Panic on the new kernel (91). Rebooted, went into GRUB and switched to the older kernel (90) and still got a Kernel Panic.

I'm stumped on what to do to get back short of a reinstall, which will cause a loss of data (My last backup is a month old).

I've tried to use "sysrescue" which boots ok and I can see the LV but can't figure how to access them so as to move the data from the /home/john directory out to a USB drive.

Help Please,
John
 
Old 06-17-2011, 07:29 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
First of all:

Boot a live cd and mount your system at /mmt:

Code:
# vgchange -a y
# mount /dev/mapper/VolGroup00-LogVol00 /mnt
# for d in dev proc sys; do mount --bind /$d /mnt/$d; done
# chroot /mnt
# mount -a
#
Then your system will be reasonably usable. You will have to adjust the commands to suit your own env.

Now, perform your backup!!!

Exit the chroot, unmount the partitions and perform fsck on each of them. Then remount the partitions, enter the chroot and try to upgrade kernel again.
 
Old 06-18-2011, 09:33 AM   #3
jfraymondpa
Member
 
Registered: Oct 2005
Location: Northeast PA
Distribution: Fedora 15/Ubuntu 10.10
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by phil.d.g View Post
First of all:

Boot a live cd and mount your system at /mmt:
...
Thanks for the instructions Phil,
One question, how do I get to a command line when booting a live cd?
I've tried all ways but can't find the key to the command line.

-- John
 
Old 06-18-2011, 09:34 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Try Ctrl+Alt+F2.

A GUI terminal will work just fine, though.
 
Old 06-22-2011, 07:51 PM   #5
jfraymondpa
Member
 
Registered: Oct 2005
Location: Northeast PA
Distribution: Fedora 15/Ubuntu 10.10
Posts: 53

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks Phil and MTK358,
My mistake in booting the Live CDs was trying to get to the command line from the start, not letting it boot all the way.
Phil your instructions worked to get me going. Need to do: su - to get to root from "liveuser" and then the vgchange and the mount didn't need the rest. Have gotten all the data I need backed up.
Now if I can solve my system hang problem I'll be back in clover.

Thanks again,
John
 
Old 06-23-2011, 03:18 AM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
The rest will drop you in your own local installation environment, from there you can use your distro's package manager, complete the upgrade, rebuild initrds, etc to fix your problems.
 
  


Reply



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
Attempting to recover from kernel panic with bad root inode greenphreak Linux - Software 2 08-27-2007 09:23 PM
Kernel Panic : How To Recover opensrctechie Linux - General 3 12-16-2005 01:51 PM
Kernel Panic : How To Recover opensrctechie Linux - General 3 12-15-2005 04:17 PM
Kernel panic+/etc/inittab recover problem sujith_marar Linux - Newbie 3 07-16-2004 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration