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 


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值