Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Is it possible to in any way shape or form of code be able to make it so a file runs when a kernel panic happens? I'm hoping for ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    12

    Kernel Panic

    Hi,

    Is it possible to in any way shape or form of code be able to make it so a file runs when a kernel panic happens? I'm hoping for an image (kind of like a mac's kernel panic message).

    And, is it possible to edit the kernel panic (im sure it is, just wondering how).

    Thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    When the kernel panics, it means that the system has become so unstable that further operation may irreparably corrupt the system. So, don't even THINK about trying what you suggest! There are log files that should help show what happened, as well as a crash-dump facility you can install to get debuggable kernel images after a panic, LKCD (Linux Kernel Crash Dump). Here is a link to the current version for Intrepid Ibex. A google search on the terms "ubuntu crash dump" will provide you with a bunch of other useful links.

    Ubuntu -- Details of package linux-crashdump in intrepid
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    Forgot to mention what the log files are. I think that you will find what you need in /var/log/messages, though to read that file you either need to be root or sudo.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...