linux系统查硬盘品牌,CentOS如何查看硬盘品牌型号等具体信息

CentOS如何查看硬盘品牌型号等具体信息

首先使用smartctl --all /dev/sda 指令来检查硬盘信息,该指令CentOS自带,得到的结果可能如下:

smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-358.el6.x86_64] (local build)

Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===

Device Model: WDC WD20EZRX-00DC0B0

Serial Number: WD-WMC301111333

LU WWN Device Id: 5 0014ee 601111622

Firmware Version: 80.00A80

User Capacity: 2,000,398,934,016 bytes [2.00 TB]

Sector Sizes: 512 bytes logical, 4096 bytes physical

Device is: Not in smartctl database [for details use: -P showall]

ATA Version is: 8

ATA Standard is: ACS-2 (revision not indicated)

Local Time is: Fri Jul 3 16:04:20 2015 CST

SMART support is: Available - device has SMART capability.

SMART support is: Enabled

这里的Device Model右侧的信息就是硬盘的具体型号,User Capacity右侧的信息就是硬盘的实际大小,同时也表明该机器并没有做磁盘阵列。 如果该机有做磁盘阵列,那么运行上述命令得到的结果可能如下:

Vendor: DELL

Product: PERC H310

Revision: 2.12

User Capacity: 999,653,638,144 bytes [999 GB]

Logical block size: 512 bytes

Logical Unit id: 0x6b083fe0e9aa11111cf094800440aee5

Serial number: 00e5ae40048094f01c1111aae9e03f08

Device type: disk

Local Time is: Fri Jul 3 15:39:02 2015 CST

Device does not support SMART

Error Counter logging not supported

Device does not support Self Test logging

这里的Vendor和Product实际上是磁盘阵列卡的信息,而不是磁盘信息。

这时可先安装smart工具,指令为yum install smartmontools,输入该指令并回车。之后输入指令: smartctl -a -d sat+megaraid,0 /dev/sda并回车,可得到如下的结果:

smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.el6.x86_64] (local build)

Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===

Device Model: ST91000640NS

Serial Number: 9XG3XXXF

LU WWN Device Id: 5 000x50 04fxxxx06

Firmware Version: AA02

User Capacity: 1,000,204,886,016 bytes [1.00 TB]

Sector Size: 512 bytes logical/physical

Device is: Not in smartctl database [for details use: -P showall]

ATA Version is: 8

ATA Standard is: ATA-8-ACS revision 4

Local Time is: Fri Jul 3 16:01:03 2015 CST

SMART support is: Available - device has SMART capability.

SMART support is: Enabled

这里的Device Model右侧的信息就是硬盘的具体型号,User Capacity右侧的信息就是硬盘的实际大小。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值