# Ubuntu – How to determine what happened and locate the problem when the system freezes

10.04debuggingfreezetroubleshooting

Hello I had some freezes with my desktop. It is Lucid 10.04 on a Lenovo 3000 N200. System freezes completely.

How can I locate the problem?

• Sometimes it's just the X server that is frozen. Try to get a console by hitting CTRL-ALT-F1. If that won't do, try logging it your machine using SSH (install openssh-server package first). If you can't get a shell, reboot.
Once you have a shell, check the system logs (/var/log/syslog, /var/log/messages, /var/log/Xorg.0.log and ~/.xsession-errors). Scroll up to the time the crash happened. If you didn't have to reboot, the dmesg command will show you the kernel log buffer in case it can't write to your filesystem.