6/11/2016

Berapakah usia hard drive anda?

Barang bekas yang saya pesan dari Amazon akhirnya datang juga, SATA 3.5in 160GB seharga 400 yen (sekitar Rp 50.000). Untuk ukuran hard drive, 50rb untuk 160GB adalah harga yang cukup murah saya kira. Namun, apakah kualitasnya masih bagus atau tidak, siapa yang tahu kalau tidak dicek terlebih dahulu. Sekilar dari info yang tertera pada hard drive telihat 26 Januari 2011, ini berarti usia hard drive setidaknya sudah mencapai sekitar hampir 6 tahun. Bagaimana dengan usia penggunaannya? apakah juga mencapai 6 tahun? dan bagaimanakah cara mengetahui usia penggunaan hard drive? jika ingin tahu lebih lanjut, silahkan baca tulisan singkat ini.

my second-hand hdd 160GB
Tahukah kalian bahwa computer hard drive saat ini telah dilengkapi dengan SMART (Self-Monitoring, Analysis, and Reporting Technology) yang memperbolehkan kita untuk melihat status "kesehatan" suatu hard drive secara keseluruhan? Banyak sekali informasi yang bisa kita peroleh saat mengakses SMART, dan informasi tersebut dapat pula menjadi sebuah "pertanda" atau "peringatan dini" jika terjadi suatu masalah pada hard drive kita.

Hampir semua Linux dilengkapi dengan paket "smartmontools" yang akan memperbolehkan kita untuk memonitoring hard drive melalui SMART. Sebelum menggunakan paket ini, pastikan paket tersebut sudah ter-install pada komputer anda dengan cara mengetik

---------------------------------

my-ubuntu@my-PC-HP:~$ sudo apt-get install smartmontools
 
---------------------------------

Salah satu program yang tersedia pada paket ini adalah smartctl. smartctl memiliki indikator "Power_On_Hours" yang secara fungsi mengindikasikan berapa lama suatu hard drive telah digunakan dalam kondisi "on". Bagaimana cara menggunakannya, perhatikan contoh berikut ini.

--------------------------------- 

my-ubuntu@my-PC-HP:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0   199M  0 part
├─sda2   8:2    0 287.8G  0 part
├─sda3   8:3    0   923M  0 part
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0  15.6G  0 part [SWAP]
├─sda6   8:6    0  51.9G  0 part /
└─sda7   8:7    0 109.4G  0 part /home
sdb      8:16   0 149.1G  0 disk
└─sdb1   8:17   0 149.1G  0 part /media/my-ubuntu/48785E133250D7C8
sr0     11:0    1  1024M  0 rom


Hard drive yang baru saja saya beli berada di "sdb". Sehingga perintah untuk menggunakan SMART untuk menampilkan seluruh info yakni

my-ubuntu@my-PC-HP:~$ sudo smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.2.0-36-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Blue Serial ATA
Device Model:     WDC WD1600AAJS-55M0A0
Serial Number:    WD-WMAV3J523846
LU WWN Device Id: 5 0014ee 0ad47224f
Firmware Version: 01.03E01
User Capacity:    160,041,885,696 bytes [160 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.5, 3.0 Gb/s
Local Time is:    Sat Jun 11 06:53:42 2016 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x84)    Offline data collection activity
                    was suspended by an interrupting command from host.
                    Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever
                    been run.
Total time to complete Offline
data collection:         ( 3060) seconds.
Offline data collection
capabilities:              (0x7b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                    General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   2) minutes.
Extended self-test routine
recommended polling time:      (  40) minutes.
Conveyance self-test routine
recommended polling time:      (   5) minutes.
SCT capabilities:            (0x3037)    SCT Status supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   134   134   021    Pre-fail  Always       -       4291
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       677
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1098
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       674
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       24
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       677
194 Temperature_Celsius     0x0022   113   100   000    Old_age   Always       -       30
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


---------------------------------

Seperti terlihat di atas, ada banyak sekali informasi yang kita peroleh. Informasi terkait lama penggunaan dapat dilihat pada baris yang bertuliskan "Power_On_Hours" atau bisa juga dilakukan dengan mengetik

---------------------------------

my-ubuntu@my-PC-HP:~$ sudo smartctl -a /dev/sdb | grep Power_On_Hours
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1098


---------------------------------

Seperti yang terlihat dari hasil di atas, sepertinya saya sedang beruntung karena hard drive bekas ini hanya digunakan kurang lebih 1098 jam.

Sekian dulu. Semoga tulisan ini ada manfaatnya.

No comments:

Post a Comment