apt-get install smartmontools
W pliku /etc/default/smartmontools ustawić:
enable_smart="/dev/hda" start_smartd=yes
Następnie zrestartować deamona:
/etc/init.d/smartmontools restart
idefix:~# smartctl -t long /dev/hda smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION === Sending command: "Execute SMART Extended self-test routine immediately in off-line mode". Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful. Testing has begun. Please wait 37 minutes for test to complete. Test will complete after Fri Jan 28 18:46:46 2005 Use smartctl -X to abort test.
idefix:~# smartctl -a /dev/hda|grep Reallocated_Sector 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
Ostatnia wartość (tutaj 0) pokazuje ile bloków było uszkodzonych.
Lepiej zapobiegać, niż leczyć, czyli sprawdzamy temperaturę:
smartctl -a /dev/hda|grep Temperature 194 Temperature_Celsius 0x0002 196 196 000 Old_age Always - 28
28 stopni Celsjusza
2004.10.08 - LiNiO 2005.01.28 - LiNiO - opis wykonywania testów i sprawdzania wyniku
|
![]() |
|