Ubuntu: Can I understand which hardware failure caused my system to restart?


I have seen similar questions asked here about how one can know what cause the system to restart.

However if I'm not mistaken, they wouldn't show specifically which hardware failed or if it was caused by CPU because of high temperatures or even GPU.

So my question is, is there a way that I can check for the cause of system restart?


You can inspect the system's logs for the boot-before-last (the one that ended with the crash) with

journalctl -b -1  

HOWEVER, not all failures get logged. Some failures cause the system to go down so quickly that logs don't get written - overheat is one.


There are two syslog files that you can check for error messages... /var/log/syslog and /var/log/syslog.1.

If you know about what day/time the restart occurred, you can more /var/log/syslog or more /var/log/syslog.1 looking for errors occurring in that time frame.

If you don't remember what day/time the restart occurred, you can grep for things like grep temp /var/log/syslog*, or grep error /var/log/syslog*.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »