|
|
| | Ask HN: What are some Linux tools to diagnose a system which keeps hanging? | | 2 points by chbkall 8 months ago | hide | past | favorite | 5 comments | | I have a laptop which runs Ubuntu. After running for a while (sometimes 5-10 mins, sometimes more), the system hangs and stops responding to keyboard or mouse inputs.
Before I open the system up or take them to a technician who can look at the hardware issues, I was wondering if there are ways I can diagnose the system using linux tools.
Can the issue happen due to bad blocks in the partition? The issue started after I used fdisk on the hard drive? Are there ways to confirm this? |
|

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
- Do you have sys-rq enabled and if so does the system respond to an emergency sync then emergency dismount then emergency reboot? [0] sysctl kernel.sysrq
- If you switch to run level 2 does this still occur? [1]
- Is there anything interesting in syslog messages in /var/log? Most notably Xorg.0.log and messages
- Do you have lm-sensors installed to watch temperature? sensors | grep -Ei ^temp Also check the temp of your drives smartctl -x /dev/sda | grep -Ei ^temp assuming your drive is sda. OpenIPMI can also get this data and fan speeds. If its hot do you have a dog or cat or something else that sheds hair? If so you may have to power it off, remove battery, open it up, use non metallic attachment on vacuum to remove hair, then compressed air, then vacuum again with non metallic attachment.
That would be my starting point. It could go a million directions from there.
[0] - https://en.wikipedia.org/wiki/Magic_SysRq_key
[1] - https://www.tecmint.com/change-runlevels-targets-in-systemd/