Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My headless Ubuntu (11.10) crashed. When I plug in keyboard and monitor, I see an non-interactive cursor (no blink) on a black screen. SSh, telnet don't work from other machines. Ping works.

I have restarted the machine. How could I check the log files of the last session, so I can know more about this crash?

share|improve this question
    
Look in /var/log –  micke Oct 16 '11 at 22:08
    
They are for this session right? I already restarted the box. What are the file name patterns for the last session's logs? –  Tom Fishman Oct 16 '11 at 22:10
2  
The ones that ends in .1 are from the last syslog session. A quick ls -lta /var/log will give you an idea of which files are new. –  micke Oct 16 '11 at 22:29
    
I discovered those files: alternatives.log.1 daemon.log.1 dpkg.log.1 kern.log.1 messages.1 syslog.1 auth.log.1 debug.1 jockey.log.1 lpr.log.1 pm-powersave.log.1 user.log.1 . messages.1 is the biggest file. So I assume it is the file that most likely has the information I need. –  Tom Fishman Oct 16 '11 at 22:44

1 Answer 1

On Ubuntu (running 13.10 as of this day), the /var/log/apport.log contains crash log messages, which is rotated per configuration in /etc/logrotate.d/apport. The actual crash reports are saved in /var/crash/ -- Not sure how relevant this information is with regard to other releases. Also, this may only be true with apport enabled (https://wiki.ubuntu.com/Apport#How_to_enable_apport).

share|improve this answer
    
Very nice answer. And the goal of SuperUser (and all SE network sites) is to get an answer so if you're posting an answer that fits the FAQ it's no problem. –  Chipperyman Feb 20 at 6:53

Your Answer

 
discard

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.