linux下查看硬盘信息、内存信息
查看硬盘信息:
download soft:
http://www.smartmontools.org/wiki/Download#Installfromthesourcetarball
install:
#tar zxvf smartmontools-6.3.tar.gz
#cd smartmontools-6.3
#./configure
# make && make install
查看磁盘运行时间
#smartctl -A /dev/sda1
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.2.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 065 064 044 Pre-fail Always - 3493854
3 Spin_Up_Time 0x0003 094 094 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 14
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 100 253 030 Pre-fail Always - 248627
<span style="color:#ff6666;">
<span style="color:#ff0000;">9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 703</span></span>
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
查看磁盘硬件信息:
# smartctl -i /dev/sda
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.2.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Constellation.2 (SATA)
Device Model: ST91000640NS
Serial Number: 9XG6X5Z0
LU WWN Device Id: 5 000c50 06747b31c
Firmware Version: SN03
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Nov 20 18:57:14 2014 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
查看内存信息:
# dmidecode | grep -A 16 "Memory Device$"
Memory Device
Array Handle: 0x002A
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: SODIMM
Set: None
Locator: DIMMA1
Bank Locator: BANK 0
Type: DDR3
Type Detail: Synchronous Unbuffered (Unregistered)
Speed: 1600 MHz
Manufacturer: Samsung
Serial Number: 34111716
Asset Tag: BANK 0 DIMMA1 AssetTag
Part Number: M474B1G73QH0-YK0
--
Memory Device
Array Handle: 0x002A
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: SODIMM
Set: None
Locator: DIMMB1
Bank Locator: BANK 0
Type: DDR3
Type Detail: Synchronous Unbuffered (Unregistered)
Speed: 1600 MHz
Manufacturer: Samsung
Serial Number: 34111718
Asset Tag: BANK 0 DIMMB1 AssetTag
Part Number: M474B1G73QH0-YK0
阅读剩余
版权声明:
作者:SE_Yang
链接:https://www.cnesa.cn/2149.html
文章版权归作者所有,未经允许请勿转载。
THE END