smartctl 명령어로 사용이 가능하다.
smartctl 이 없으면 yum으로 설치하자
# yum install smartmontools
# smartctl -i /dev/sda
smartctl 5.39.1 2010-01-28 r3054 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Device Model: ST31000524AS
Serial Number: 5VPA15NK
Firmware Version: JC45
User Capacity: 1,000,204,886,016 bytes
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: Thu Jun 22 15:53:27 2017 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
위와 같이 명령어를 쓰면 하드 정보가 나온다.
# smartctl -i /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
Vendor: INTEL
Product: RS2BL080
Revision: 2.13
User Capacity: 87,999,993,872,384 bytes [87.9 TB]
Logical block size: 512 bytes
Logical Unit id: 0x600605b0031e21a01c40fcf11b8fcb17
Serial number: 0017cb8f1bf1fc401ca0211e03b00506
Device type: disk
Local Time is: Thu Jun 22 18:23:49 2017 KST
Device does not support SMART