DMESG Command Reference Blog http://www.linuxso.com/command/dmesg.htmlDMESG is used to display the kernel ring buffer (kernel-ring buffer) content, and the kernel stores various messages here. At system boot time, the kernel fills in this buffer with information related to hardware and module initialization. Messages in the kernel ring buffer are often useful for diagnosing system problems. When you run DMESG
DMESG is the Linux kernel self-test command (which determines the hardware information of the current server), for example, to view linuxcpu information:DMESG | grep CPU650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/88/41/wKioL1fs42HCTHyTAACh8ZP7FvI374.png-wh_500x0-wm_3 -wmp_4-s_1114650583.png "title=" Qq20160929174823.png "alt=" Wkiol1fs42hcthytaach8zp7fvi374.png-wh_50 "/>This article is from the "Brother Hong Linux World" blog, so be sur
Recently engaged in LFS, follow the http://www.linuxsir.org/bbs/thread322894.html. Everything goes well!
However, when you start the instance, you may encounter the following problems:
Mounting kernel-based file systems:/proc/etc/rc. d/rcsysinit. d/s00mountkernfs: Line 24: Mount: Command not found
/Sys/etc/rc. d/rcsysinit. d/s00mountkernfs: Line 29: Mount: Command not found[Fall]Setting the console log level to 7.../Etc/rc. d/rcsysinit. d/s02conslelog: line 30: demsg: Command not found[Fail]Pop
Once a python process has been hung, use the following command.Can see the reason: Virtual machine total Memory 8082608KB, the result Python project consumes 7341764KB, memory leaks, cause the python process to be killed by the systemIncidentally, the following watch command is introduced:This command can be used in real time with the newly monitored content1, Tailf Log/web.log will see the screen constantly increase the display of new logs2, watch "tail-20 log/web.log" screen will only output 2
Phenomenon:
The server system log has warning details as follows:Warning:nr_cpus limit of 8 reached. Processor ignored.Process Steps & Solutions:
For example, the following kernel warning message can be seen on individual servers: Warning:nr_cpus
04. Run the kvm command line in ubuntu to install 64-bit ubuntu and report "Couldn't find hvm kernel for Ubuntu tree.", kvmhvm
1. The configuration of virt-install used for ubuntu installation:
virt-install \--name test4 \--ram 1024 \--disk path=/data/01_ubuntu/ubuntu4.img,size=6 \--vcpus 1 \--hvm \--os-type linux \--n
is set to 8196, which is equal to the size of the ring buffer.
-N: set the record information level.
Eight log levels in printk:
# Define KERN_EMERG "# Define KERN_ALERT "# Define KERN_CRIT "# Define KERN_ERR "# Define KERN_WARNING "# Define KERN_NOTICE "# Define KERN_INFO "# Define KERN_DEBUG "
However, the above method is not the best, because in Ubuntu, even if the log level is changed, you must switch to the console to see the output informatio
1. Configuration of the Virt-install used when installing Ubuntu:Virt-install \\1024x768 \path=/data/01_ubuntu/ubuntu4.img,size=6 \1 \ \--os-type linux \--network network=default \\--console Pty, target_type=serial \/data/00_osfile/ubuntu-16.04.1-server-amd64.iso \--extra-args ' Console=TTYS0,115200N8 serial 'The error is as follows:ERROR couldn ' t find HVM kernel for Ubuntu tree. not appear to has been
lsb_release-
11. display detailed system information
Lshw
Lshw-short
Lshw-C memory
12. Display kernel buffer system control information
Dmesg
13 kill
It was okay to use it at the beginning of the installation, but later I found that it would always be stuck when I used it for a while.
Later, we can see that the kernel of ubuntu12.04 is 3.2. Later, we upgraded the kernel to 3.5 and found that this situation would not happen.
View and upgrade the kerne
UCloner (formerly Ubuntu-cloner) is a system backup, recovery, and cloning tool for Ubuntu. With UCloner, you can back up the ubuntu system as a squashfs image file, you can also restore the system from the image file. The specific method is as follows: Backup: You can use a graphical interface or command line to back up UCloner. Here we will introduce the graphi
Ubuntu 16.04, Ubuntu, Ubuntu
When I used Ubuntu 14.04, I downloaded the official deb installation package of youdao dictionary and installed it. Now I can't install Ubuntu 16.04 because of some dependency problems. As a result, Google successfully solved the problem and bec
Boy finally can not endure win7 some egg pain set, see a lot of Daniel recommended Mac, but money tight, had to push and beg second use Ubuntu, but because the company working environment is windows, so also must keep Windows system, once decided dual system.Download Ubuntu image, use EASYBCD boot hard drive installation, these do not say, online tutorials abound.Tell me about the difficulties I encountered
Install the sogou Input Method on ubuntu (ubuntu 14.04, ubuntu 16.04), 14.04ubuntu16.04
This method is applicable to ubuntu 14.04 and ubuntu.
1. Download the deb installation package for sogou Input Method
:
Http://pinyin.sogou.com/linux? R = pinyin
2. Install sogou inp
View ubuntu hardware information 1, Motherboard information. view the serial number of the motherboard # use the command dmidecode | grep-iserialnumber # View board information cat/proc/pci -------------------------------
View ubuntu hardware information
1. motherboard information
. View the serial number of the motherboard
--------------------------------------------------
# Use commands
Dmidecode | grep-I
View Ubuntu hardware information
1. motherboard Information
. View the serial number of the motherboard--------------------------------------------------# Use commandsDmidecode | grep-I 'serial number'
# View Board informationCAT/proc/PCI--------------------------------------------------
2. CPU Information--------------------------------------------------
# Use the/proc file system1) CAT/proc/cpuinfo# View the boot Information2)
Because of the level control of the Linux kernel, the content that causes PRINTK to print does not necessarily output from the console normally, and you can use the DMESG command to output all levels of information.
Input: sudo dmesg–n 8 can output all log information
Linux command: DMESG function Description: Display the boot information.
Syntax:
the root privilege.Password:Root @ Ubuntu:/home/tony/mini2440/mtst # insmod tst. ko Note: The loading module must have the root privilege.Root @ Ubuntu:/home/tony/mini2440/mtst # dmesg | tail[1, 25.464531] r8169: eth0: link up[1, 25.464534] r8169: eth0: link up[1, 54.931357] UDF-fs: No VRS found[54.981587] ISO 9660 Extensions: Microsoft Joliet Level 3[55.013712]
Reprinted from http://terrychen.info/ubuntu-linux-beginners-guide-getting-to-know-and-work-with-ubuntu/In Ubuntu Linux Introduction (iv): Ubuntu Initial setup article, we have completed the basic configuration of Ubuntu, and now we will further learn some of the basic knowle
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.