HN 提问:您如何排查桌面 Linux 崩溃/冻结的问题?
2 分•作者: Curiositry•3 个月前
我一生都在使用 Linux。我很想说它很稳定,但我的经历并非如此 :) 所以我想提高从冻结和崩溃中恢复的能力,并找出根本原因。
我大量使用 Ctrl+Alt+f3,以及 Magic System Request 键(Ctrl+Alt+PrtSc+f;Ctrl+Alt+PrtSc+reisub)。但很多时候系统已经损坏到无法切换到虚拟终端。在这些情况下,我通常会尝试在 dmesg/syslog/journalctl 中寻找线索。
大部分问题似乎是由 Nvidia GPU 和挂起引起的。
你常用的恢复命令是什么?当这些方法无效时,重启后你如何进行事后分析?
查看原文
I've been using Linux all my life. I’d like to be able to claim that it’s stable, but that’s not my experience :) So I’d like to get better at recovering from freezes and crashes, and finding the root cause.<p>I make extensive use of Ctrl+Alt+f3, and magic system request keys (Ctrl+Alt+PrtSc+f; Ctrl+Alt+PrtSc+reisub). But often the system is too far gone to drop to a virtual terminal. In these cases, I usually try to find clues in dmesg/syslog/journalctl.<p>The bulk of issues seem to be caused by Nvidia GPUs, and suspend.<p>What are your go-to commands for recovery? And, when that isn't an option, how do you post-mortem after rebooting?