LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-11-2007, 07:34 PM   #1
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Rep: Reputation: 16
How to Troubleshoot Kernel Panic?


I'm using Kubuntu 7.04 on a new Dell XPS PC. Occasionally after selecting Kubuntu from the grub screen, a kernel panic will occur resulting in a screen full of error codes and such.

How can I configure Kubuntu to create a dump log so this panic can be troubleshot? There are simply too many characters on the screen to copy down onto paper and type into a post here. Thanks very much.
 
Old 10-11-2007, 07:44 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Doug Vitale View Post
I'm using Kubuntu 7.04 on a new Dell XPS PC. Occasionally after selecting Kubuntu from the grub screen, a kernel panic will occur resulting in a screen full of error codes and such.

How can I configure Kubuntu to create a dump log so this panic can be troubleshot? There are simply too many characters on the screen to copy down onto paper and type into a post here. Thanks very much.
It depends on how far you get into boot before you have the kernel panic. After a certain point kernel messages are logged and you can print the messages using the dmesg command:

dmesg > /tmp/kernel.panic.txt

See:

man dmesg

-------------------
Steve Stites

Whoops, the log will be overwritten by the next boot so you should boot a live CD and then retrieve the kernel log by running dmesg against the old kernel log on your hard drive.

Last edited by jailbait; 10-11-2007 at 07:49 PM.
 
Old 10-11-2007, 10:12 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
The most common kernel-panic that occurs at-or-near boot time is that init dies ... which is reported as "attempted to kill init." (By definition, init is not allowed to die.)

There are various root causes, which will be found in messages which shortly precede the actual fall-over-and-die. Unfortuantely it's not easy to categorize those causes.
 
Old 10-15-2007, 07:39 PM   #4
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jailbait View Post
It depends on how far you get into boot before you have the kernel panic. After a certain point kernel messages are logged and you can print the messages using the dmesg command:

dmesg > /tmp/kernel.panic.txt

Whoops, the log will be overwritten by the next boot so you should boot a live CD and then retrieve the kernel log by running dmesg against the old kernel log on your hard drive.
I got one of those panics so I rebooted with an Ubuntu installation disc. However, I don't know how to access my usual Ubuntu partition (/dev/sda4) after booting to Live CD mode. When I run "mount /dev/sda4" I get the message: "mount: can't find /dev/sda4 in /etc/fstab or /etc/mtab".

How should I proceed from here? Thanks.
 
Old 10-16-2007, 12:26 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Doug Vitale View Post
I got one of those panics so I rebooted with an Ubuntu installation disc. However, I don't know how to access my usual Ubuntu partition (/dev/sda4) after booting to Live CD mode. When I run "mount /dev/sda4" I get the message: "mount: can't find /dev/sda4 in /etc/fstab or /etc/mtab".

How should I proceed from here? Thanks.
Assuming that your root filesystem is ext3

mkdir /fixit
mount -t ext3 /dev/sda4 /fixit
chroot /fixit
dmesg


-----------------
Steve Stites
 
Old 10-16-2007, 07:33 PM   #6
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
In the ubuntu livecd, just go to Places>Computer and on the side there should be something like
30 gb volume, just double click on that
 
  


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
troubleshoot kernel freeze michal017 Linux - Software 6 11-01-2005 10:34 AM
How to troubleshoot this? Unable to handle kernel paging request black hole sun Linux - Software 1 08-17-2004 12:51 AM
Please help to troubleshoot network problem after a kernel upgrade davidas Debian 3 04-07-2004 06:53 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

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

All times are GMT -5. The time now is 02:28 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