Linux hardware information collection and analysis the hardware devices detected by the linux kernel are recorded in/proc and/sys. In addition to directly viewing files, we can also use some commands to view the hardware information detected by the kernel. Www.2cto.com fdisk: You can use fdisk-l to list hdparm in the Partition Table. You can view the hard disk information and test the read/write speed. dmesg: view the information records shown during kernel running. vmstat: analysis System (CPU/RAM/IO) Current Status lspci: list the PCI interface device lsusb for the entire PC system: list the status of each USB port on the current system and the connected USB device iostat: similar to vmstat, you can list the I/O status of the entire CPU and interface device in real time. Lspci # lspci [-vvn]-v: displays more information about PCI interface devices-vv: more information than-v-n: directly view the pci id instead of the vendor name/usr/share/hwdata/pci. ids: all data is obtained here. For more parameter man, see the detailed analysis reference. Lsusb # lsusb [-t]-t: Use a tree-like directory to display the relevance of each USB port iostat the default system does not install this software, you need to first install. "Yum install sysstat" # iostat [-c |-d] [-k |-m] [-t] [interval seconds] [detection times]-c: only the CPU status is displayed.-d: only the status of the storage device is displayed. Do not use it with-c.-k: block is displayed by default, here, we can change the size of KB to display-m: similar to-k, with MB to display-t: Display date
Drive USB device boot USB flash drive: If the usb has been unable to drive, manually attach the USB-storage module to try. Flash memory is not a traditional hard disk. It does not use a disk to read headers and disks to record data. Therefore, you can only use files such as/dev/sda1 for mounting, theoretically, no additional partitions are allowed.