Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Yesterday, I ran a bash script for about 10 hours. When I went to use the computer, it locked up.

  • I have an Eee PC with Debian.
  • The screen was still visible, but the mouse or keyboard had not effect.
  • I tried CtrlAltDelete, CtrlAltBackspace, CtrlAltF1, but to no effect.
  • The hard drive light showed no activity.

How can I determine what went wrong? What logs can I check?

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

You can find all messages in /var/log/syslog and in other /var/log/ files. Old messages are in /var/log/syslog.1, /var/log/syslog.2.gz etc. if logrotate is installed.

However, if the kernel really locks up, the probability is low that you will find any related message.

It could be, that only the X server locks up. In this case, you can usually still access the PC over network via ssh (if you have installed it). There is also the Magic SysRq key to unRaw the keyboard such that the shortcuts you tried could work, too.

share|improve this answer
add comment

you can read /var/log/dmesg for any software problems like [ kernel ] , if it was a service error you may read the service's log like apache for example /var/log/apache/error.log

I guess some hardware errors can't have log

share|improve this answer
add comment

I can't give you with exact commands that can help you get data. But general approach to find the culprit is to some how capture output of commands at regular interval. This will help as you will have data from commands executed before system crashed.

You can capture output of these commands by scheduling them using crontab (HowTo: Add Jobs To cron Under Linux or UNIX?).

Alternatively, there is a service SeaLion - Linux server monitoring and debugging tool where you can schedule commands and check your system's status online.

Hope it helps...

share|improve this answer
add comment

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.