-   Linux - Newbie (
-   -   How to log a Kernel Panic (

Basta 11-29-2005 03:39 PM

How to log a Kernel Panic

I'm getting a Kernel Panic on a Debian system during startup. I have two options in the lilo bootmanager one causes the Kernel Panic the other works fine. How do I get the log files for the startup with the Kernel Panic? The system hangs on the Kernel Panic so I can't look into the log files then and rebooting will overwrite the log files. What's the workaround for this?

Thnx Bas

Tinkster 11-29-2005 04:00 PM

Try to memorise/write down the error and post it here :)

vfs: root file system not found is quite common, that happens
e.g. if you compile the file-system for your setup as a module
rather than built-in. Similar effects if the hardware support for
the HDDs isn't built-in.


Basta 11-30-2005 10:36 AM

Memorizing hmmm....:confused: Even if my memory wasn't the problem the text scrolls so fast that my eyes can't follow it. I was thinking, booting with the kernel panic and then booting Knoppix form CD. This would allow me to browse for the /var/log/dmesg isn't it?

btmiller 11-30-2005 08:28 PM

Using dmesg is tricky -- if the panic happens early enough in the boot, say before the filesystems are mounted, then there will be no log written. One option is to set LILO or GRUB to use a serial console as the boot console and then hook a laptop up with a serial cable and use a terminal emulator to capture the boot. I've never actually done this, but I believe GRUB and LILO support it, try this howto.

All times are GMT -5. The time now is 01:56 AM.