I want to enable kernel crash dumps for my Debian 5.0.7 machine. The kernel version is 2.2.26 amd64.
How can I configure this?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
You may also want to look at Debian's
kdump-tools package to automate some of the necessary boot-time steps.
The steps are roughly,
sudo apt-get install kdump-tools
crashkernel=128Mto the kernel command-line given in bootloader configuration (e.g.
/etc/default/grub). It also doesn't hurt to pass
nmi_watchdog=1as well to ensure that hard hangs are caught.
sudo sync; echo c | sudo tee /proc/sysrq-trigger
crashtool to look at the resulting crash dump
A short answer, but...
Go to your kernel source (E.g. cd /usr/src/linux/ ) and configure the options for the next kernel (make menuconfig). Go to "Processor type and features". Enable "kernel crash dumps". (CONFIG_CRASH_DUMP=y)
Build new kernel, install.