Para revisar el estado de tu disco duro en linux, existe el paquete smartmontools…. lo instalamos de la siguiente manera
└─> ¯\_(ツ)_/¯ sudo yum install smartmontools Complementos cargados:fastestmirror, langpacks Loading mirror speeds from cached hostfile epel/x86_64/metalink | 48 kB 00:00:00 * base: mirror.ci.ifes.edu.br * epel: epel.mirror.liquidtelecom.com * extras: mirror.nbtelecom.com.br * nux-dextop: li.nux.ro * updates: mirror.ci.ifes.edu.br Resolviendo dependencias --> Ejecutando prueba de transacción ---> Paquete smartmontools.x86_64 1:6.5-1.el7 debe ser actualizado ---> Paquete smartmontools.x86_64 1:7.0-1.el7_7.1 debe ser una actualización --> Resolución de dependencias finalizada Dependencias resueltas ============================================================================================================= Package Arquitectura Versión Repositorio Tamaño ============================================================================================================= Actualizando: smartmontools x86_64 1:7.0-1.el7_7.1 updates 546 k Resumen de la transacción ============================================================================================================= Actualizar 1 Paquete Tamaño total de la descarga: 546 k Is this ok [y/d/N]:

Respondemos afirmativamente para instalar el paquete
Is this ok [y/d/N]: y Downloading packages: No Presto metadata available for updates smartmontools-7.0-1.el7_7.1.x86_64.rpm | 546 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Actualizando : 1:smartmontools-7.0-1.el7_7.1.x86_64 1/2 Limpieza : 1:smartmontools-6.5-1.el7.x86_64 2/2 Comprobando : 1:smartmontools-7.0-1.el7_7.1.x86_64 1/2 Comprobando : 1:smartmontools-6.5-1.el7.x86_64 2/2 Actualizado: smartmontools.x86_64 1:7.0-1.el7_7.1 ¡Listo!
Luego se ejecuta la orden y se revisan los resultados….
└─> ¯\_(ツ)_/¯ sudo smartctl -a /dev/sdb | tee -a 3EstadoDisco.out
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-957.12.2.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: WDC WD10SPZX-24Z10T0
Serial Number: WD-WX51A38RC2T0
LU WWN Device Id: 5 0014ee 65ddf1b78
Firmware Version: 01.01A01
User Capacity: 1.000.204.886.016 bytes [1,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Tue Feb 18 09:59:26 2020 -05
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: ( 8820) seconds.
Offline data collection
capabilities: (0x71) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No 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: ( 179) minutes.
Conveyance self-test routine
recommended polling time: ( 3) minutes.
SCT capabilities: (0x303d) SCT Status supported.
SCT Error Recovery Control 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 193 192 021 Pre-fail Always - 1333
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 55
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 100 100 000 Old_age Always - 47
10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 24
187 Reported_Uncorrect 0x0032 098 098 000 Old_age Always - 2
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 10
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 87
194 Temperature_Celsius 0x0022 118 096 000 Old_age Always - 25 (Min/Max 21/48)
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 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0
206 Flying_Height 0x0022 100 000 000 Old_age Always - 36
240 Head_Flying_Hours 0x0032 100 100 000 Old_age Always - 15
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.
En este disco no se encontraron errores …
Veamos el caso de un disco con fallos
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-957.12.2.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 2.5" HDD MK..59GSXP (AF)
Device Model: TOSHIBA MK7559GSXP
Serial Number: 8037B05ZB
LU WWN Device Id: 5 000039 2b9480b16
Firmware Version: GN001U
User Capacity: 750.156.374.016 bytes [750 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Feb 18 09:53:46 2020 -05
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: ( 120) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 194) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control 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 0x000b 100 100 050 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline - 0
3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always - 2931
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 817
5 Reallocated_Sector_Ct 0x0033 100 100 050 Pre-fail Always - 104
7 Seek_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 050 Pre-fail Offline - 0
9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 1070
10 Spin_Retry_Count 0x0033 116 100 030 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 753
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 3
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 333
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 7613
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 31 (Min/Max 20/50)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 10
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 320
220 Disk_Shift 0x0002 100 100 000 Old_age Always - 8247
222 Loaded_Hours 0x0032 100 100 000 Old_age Always - 227
223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 0
224 Load_Friction 0x0022 100 100 000 Old_age Always - 0
226 Load-in_Time 0x0026 100 100 000 Old_age Always - 340
240 Head_Flying_Hours 0x0001 100 100 001 Pre-fail Offline - 0
SMART Error Log Version: 1
ATA Error Count: 319 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 319 occurred at disk power-on lifetime: 1034 hours (43 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 01 06 61 60 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x00606106 = 6316294
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 00 08 ff 60 60 e0 00 00:13:19.699 READ DMA EXT
25 00 08 8f 5f 60 e0 00 00:13:19.699 READ DMA EXT
25 00 08 0f 61 60 e0 00 00:13:19.698 READ DMA EXT
25 00 08 87 60 60 e0 00 00:13:19.698 READ DMA EXT
25 00 08 8f 5b 60 e0 00 00:13:19.698 READ DMA EXT
Error 318 occurred at disk power-on lifetime: 1034 hours (43 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 01 56 28 27 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x00272856 = 2566230
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 00 08 4f 28 27 e0 00 00:12:54.705 READ DMA EXT
25 00 08 47 28 27 e0 00 00:12:54.704 READ DMA EXT
25 00 08 3f 28 27 e0 00 00:12:54.704 READ DMA EXT
25 00 08 37 28 27 e0 00 00:12:54.704 READ DMA EXT
25 00 08 2f 28 27 e0 00 00:12:54.697 READ DMA EXT
Error 317 occurred at disk power-on lifetime: 1034 hours (43 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 01 1e 5d 96 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x00965d1e = 9854238
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 00 08 17 5d 96 e0 00 00:12:52.810 READ DMA EXT
25 00 08 6f bc f8 e0 00 00:12:52.810 READ DMA EXT
25 00 08 ff f6 19 e0 00 00:12:52.794 READ DMA EXT
25 00 08 df e0 c1 e0 00 00:12:52.780 READ DMA EXT
25 00 08 67 bc f8 e0 00 00:12:52.780 READ DMA EXT
Error 316 occurred at disk power-on lifetime: 1034 hours (43 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 01 1e de db e0 Error: ICRC, ABRT 1 sectors at LBA = 0x00dbde1e = 14409246
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 00 08 17 de db e0 00 00:12:52.474 READ DMA EXT
25 00 08 37 bb f8 e0 00 00:12:52.474 READ DMA EXT
25 00 08 6f 71 d0 e0 00 00:12:52.458 READ DMA EXT
25 00 08 87 bb f8 e0 00 00:12:52.458 READ DMA EXT
25 00 08 27 75 02 e0 00 00:12:52.444 READ DMA EXT
Error 315 occurred at disk power-on lifetime: 1034 hours (43 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 01 5e c1 fc e0 Error: ICRC, ABRT 1 sectors at LBA = 0x00fcc15e = 16564574
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 00 08 57 c1 fc e0 00 00:12:52.125 READ DMA EXT
25 00 08 4f c1 fc e0 00 00:12:52.099 READ DMA EXT
25 00 08 f7 bf fc e0 00 00:12:52.098 READ DMA EXT
25 00 08 e7 59 08 e0 00 00:12:52.092 READ DMA EXT
25 00 08 2f c0 fc e0 00 00:12:52.091 READ DMA EXT
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.
Lo recomendable en este caso es pasar los datos a otro disco. Luego de ello reemplazarlo.
Sin respuestas