Where to find hardware errors in Linux

Source: Internet
Author: User
Tags syslog dmesg

When a Linux system encounters a fault, the Administrator must first locate the error. Now there are many tools in Linux that can help users find the error and learn to use them to identify the problem. These tools include dmesg, lspci, lsmod, syslog/messages, and proc file systems, and these tools are fundamental. In other words, they will not change because of the different versions of Linux distributions. I hope you can use it skillfully.

 

Dmesg is usually useful, so we first introduce this tool. Dmesg is a command to read the kernel buffer. It contains kernel messages. It reports kernel detection with hardware or applicationsProgramThe current error provides a fast and easy way to capture the latest error from the kernel.

 

The dmesg outputs information about the kernel version to run, including the compiler used to create the kernel and when to compile the kernel. Therefore, if you compileSource codeA gcc fault occurs, which is the first place to begin the check.

 

In addition to dmesg, you can also find hardware errors, such as syslog. Dmesg reports all information to the Syslog daemon. syslog records/var/log/messages according to Sun Xu by default, we can use lspci,/proc, and dmesg/syslog To locate the faulty hardware. Lspci provides a hardware layout on the machine. Of course, we can also use dmesg to list the PCI bus information "demsg | grep PCI ". This article is just a start for everyone. Further research will surely play a role.

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.