LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to log a Kernel Panic (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-log-a-kernel-panic-387649/)

Basta 11-29-2005 02:39 PM

How to log a Kernel Panic
 
Hi,

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 03: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.



Cheers,
Tink

Basta 11-30-2005 09: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 07: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 08:50 AM.