How to deal with Ubuntu system crash

Source: Internet
Author: User
If your system crashes at random for a period of time, perform a memory test before entering the bug report or supporting requests. If your system crashes when a specific action occurs and the situation is similar (reproducible), you can try the following steps, try to reproduce the system crash in the text console (Control + Alt + F1) when

If your system crashes at random for a period of time, perform a memory test before entering the bug report or supporting requests. If your system crashes when a specific action occurs and the situation is similar (reproducible), you can try the following steps:

If possible, try to reproduce the system crash in the text console (Control + Alt + F1)
When the system crashes, press Alt + SysRq + 1 and then Alt + SysRq + t. If you are using the text console, you should see a set of trace information printed on the screen. If the system persists, the information will be recorded in the/var/log/kern. log file and can be seen in the output of the dmesg command. This information indicates the cause of the crash and should contain this information when any problem report is submitted.

Remote Solution

Many system crashes involve the X Window, and you cannot copy the prompt to the screen

Information. The best way is to use another computer to remotely log on to this computer.

On this computer

Install openssh-server on (if your computer can connect to the Internet, make sure that your account password is correct ).

On another computer
Install openssh-client. If the above is a windows system, install Putty, which is a free SSH client. If the MacOSX system is used, it comes with the SHH client.

Get this computer

Obtain the IP address by using the ifconfig command. If both computers are Ubuntu7.04 or MacOSX, you can replace the IP address with the computer name (for example, mycomputer. local.

Connect to this computer

, Such as the ssh myuser@192.168.1.3.

Run

Sudo cat/proc/kmsg.

Start a SHH session, just like

Tail-f/var/log/syslog or other commands.

Copy the prompt information.

Monitor any error information in SSH to submit an error report.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.