Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're trying to debug a kernel panic/oops on Ubuntu 10.04. The stacktrace isn't quite enough for us. How can we configure the system to spit out a core dump and where can we find it after the crash?

There is a lot of information on how to get a user-mode core dump, but very little (or old) information on getting a kernel core dump.

LKCD exists, but looks as though it hasn't been updated since 2002.

share|improve this question
up vote 14 down vote accepted

Installing the linux-crashdump package will install the kexec tools and set up grub to pass the needed kernel options to have the crashdump kernel available.

This should automatically catch kernel crashes. For non-crash kernel problems such as an oops you should be able to use the magic sysrq key's c command to kexec the crashdump kernel and get a dump.

You may also want to enable apport to have the dump nicely processed into a crash report for submission to Launchpad or for local retracing. To do that you need to edit /etc/default/apport.

share|improve this answer
how to run linux-crashdump and get the last crash report of ubuntu 11.10? – sam Oct 25 '11 at 9:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.