Ubuntu – How to track the cause of random reboots


A Thinkpad X220 (Core-i5, SandyBridge, Intel GMA) running Precise 64bit has rebooted hard twice in the last four days. I was doing nothing more than writing an email. No warning. It just went black, and the next thing I saw was the Lenovo boot screen.

Where should I look to find the cause? I fear that this immediate reboot does not leave time for logs to be written…


Best Answer

Check /proc/sys/kernel/panic, if it's value is 1 then server will immediately reboot on panic. Bad drivers can cause kernel panic.

If it's not panic check last issue of reboot, maybe overheating is the issue.

last reboot
Related Question