Ошибки при работе с жёстким диском

IDE, SATA, SCSI, внешние USB-HDD, SSD, USB-Flash накопители

Модератор: Модераторы разделов

lex4051
Сообщения: 6
ОС: Archlinux amd64

Ошибки при работе с жёстким диском

Сообщение lex4051 »

Доброго времени суток.
Использую Debian Lenny amd64.
Жёсткий диск Samsung 501LJ [/dev/sda].
Файловая система ext3 (на весь жёсткий диск [/dev/sda1]).
До некоторого времени работало всё хорошо. Потом были проблемы с бэдблоками. Решил их с помощью mhdd полным стиранием диска (ремап не помог). Потом всё работало нормально в течение трёх месяцев (жёсткий диск используется для хранение фильмов-видео и подобного контента). Сегодня появилась ошибка

Код:

[ 346.853967] ata1.00: exception Emask 0x50 SAct 0x1 SErr 0x680900 action 0x6 frozen [ 346.860246] ata1.00: irq_stat 0x08000000, interface fatal error [ 346.864245] ata1: SError: { UnrecovData HostInt 10B8B BadCRC Handshk } [ 346.868573] ata1.00: cmd 60/08:00:1f:3a:53/00:00:2f:00:00/40 tag 0 ncq 4096 in [ 346.868575] res 40/00:04:1f:3a:53/00:00:2f:00:00/40 Emask 0x50 (ATA bus error) [ 346.874559] ata1.00: status: { DRDY } [ 346.877577] ata1: hard resetting link [ 347.455747] ata1: softreset failed (device not ready) [ 347.458656] ata1: failed due to HW bug, retry pmp=0 [ 347.624240] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 347.650622] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd [ 347.820090] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd [ 347.824092] ata1.00: configured for UDMA/133 [ 347.828104] ata1: EH complete [ 347.830793] sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB) [ 347.885136] sd 0:0:0:0: [sda] Write Protect is off [ 347.889124] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 347.889143] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA


Проверял mhdd, потом делал fsck. Он нашёл какие-то ошибки, поисправлял. Пару минут диск работал нормально, пока я не начал считывать файлы, которые были повреждены. Тогда снова появилась эта ошибка. Подскажите пожалуйста как решить эту проблему. Форматировать не желательно.
Спасибо сказали:
Аватара пользователя
(asper
Бывший модератор
Сообщения: 1661
Статус: nano vi sed awk !
ОС: Работает как часы !

Re: Ошибки при работе с жёстким диском

Сообщение (asper »

я так понимаю что бэдблоки расползаются по поверхности всего винчестера.
Решить эту проблему можно заменой самого винта.
Доставайте данные которые ещё целые, хранить что-либо на таком харде нецелесообразно и даже, как вы уже поняли, опасно, может привести к их потере.
Сомнительно доброе привидение
Спасибо сказали:
lex4051
Сообщения: 6
ОС: Archlinux amd64

Re: Ошибки при работе с жёстким диском

Сообщение lex4051 »

Пока что он примонтирован ro. Так что вероятность потери данных немного ниже. Буду их копировать... Но всё-же кроме замены жёсткого диска что бы вы мне посоветовали?

ПС
Поставил тест на бэд блоки в fsck [fsck.ext3 -c /dev/sda1]. В итоге, на 0,88% оно застряло.
Спасибо сказали:
Аватара пользователя
(asper
Бывший модератор
Сообщения: 1661
Статус: nano vi sed awk !
ОС: Работает как часы !

Re: Ошибки при работе с жёстким диском

Сообщение (asper »

Попробуйте ещё прогнать badblocks
Сомнительно доброе привидение
Спасибо сказали:
lex4051
Сообщения: 6
ОС: Archlinux amd64

Re: Ошибки при работе с жёстким диском

Сообщение lex4051 »

Так я его запустил вечером. За 7-8 часов на пол процента продвинулось. Жду вот.
При чём при проверке постоянно вылазит та ошибка в dmesg.
Спасибо сказали:
lex4051
Сообщения: 6
ОС: Archlinux amd64

Re: Ошибки при работе с жёстким диском

Сообщение lex4051 »

Сам не понял почему, но оно заработало.
В биосе включил AHCI (вместо IDE). С 3 раза получилось запустить
# fsck.ext3 -c /dev/sda1
Оно проверило, что-то наисправляло и оно работает.
Буду рад, если кто-нибудь объяснит в чём было дело.
Спасибо сказали:
Аватара пользователя
(asper
Бывший модератор
Сообщения: 1661
Статус: nano vi sed awk !
ОС: Работает как часы !

Re: Ошибки при работе с жёстким диском

Сообщение (asper »

Давайте посмотрим, что smart скажет.
smartctl --all /dev/<your_disk>
Сомнительно доброе привидение
Спасибо сказали:
lex4051
Сообщения: 6
ОС: Archlinux amd64

Re: Ошибки при работе с жёстким диском

Сообщение lex4051 »

Код:

smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright © 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: SAMSUNG SpinPoint T166 series Device Model: SAMSUNG HD501LJ Serial Number: S0MUJFWQ265076 Firmware Version: CR100-12 User Capacity: 500 107 862 016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 3b Local Time is: Thu Aug 6 21:30:24 2009 SAMST 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: (0x02) Offline data collection activity was completed without error. 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: (9069) 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: ( 155) minutes. SCT capabilities: (0x003f) 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 0x000f 100 100 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0007 100 100 015 Pre-fail Always - 6016 4 Start_Stop_Count 0x0032 099 099 000 Old_age Always - 1395 5 Reallocated_Sector_Ct 0x0033 253 253 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 253 253 051 Pre-fail Always - 0 8 Seek_Time_Performance 0x0025 253 253 015 Pre-fail Offline - 9443 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 4679 10 Spin_Retry_Count 0x0033 253 253 051 Pre-fail Always - 0 11 Calibration_Retry_Count 0x0012 253 100 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 554 13 Read_Soft_Error_Rate 0x000e 100 100 000 Old_age Always - 432839049 187 Reported_Uncorrect 0x0032 253 253 000 Old_age Always - 0 188 Unknown_Attribute 0x0032 097 097 000 Old_age Always - 355 190 Airflow_Temperature_Cel 0x0022 065 054 000 Old_age Always - 35 194 Temperature_Celsius 0x0022 133 100 000 Old_age Always - 35 195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 432839049 196 Reallocated_Event_Count 0x0032 253 253 000 Old_age Always - 0 197 Current_Pending_Sector 0x0012 253 097 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 253 253 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 12 200 Multi_Zone_Error_Rate 0x000a 100 100 000 Old_age Always - 0 201 Soft_Read_Error_Rate 0x000a 100 100 000 Old_age Always - 0 202 TA_Increase_Count 0x0032 001 001 000 Old_age Always - 32767 SMART Error Log Version: 1 ATA Error Count: 3 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 3 occurred at disk power-on lifetime: 3235 hours (134 days + 19 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 08 7f 5a c5 e7 Error: ICRC, ABRT 8 sectors at LBA = 0x07c55a7f = 130374271 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 7f 5a c5 e7 00 2d+04:04:45.000 READ DMA c8 00 f8 87 59 c5 e7 00 2d+04:04:45.000 READ DMA c8 00 08 7f 59 c5 e7 00 2d+04:04:45.000 READ DMA c8 00 f8 87 58 c5 e7 00 2d+04:04:45.000 READ DMA c8 00 08 7f 58 c5 e7 00 2d+04:04:45.000 READ DMA Error 2 occurred at disk power-on lifetime: 3235 hours (134 days + 19 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 08 9f 57 c2 e6 Error: ICRC, ABRT 8 sectors at LBA = 0x06c2579f = 113399711 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 9f 57 c2 e6 00 2d+04:02:30.250 READ DMA c8 00 f8 a7 56 c2 e6 00 2d+04:02:30.250 READ DMA c8 00 08 9f 56 c2 e6 00 2d+04:02:30.250 READ DMA c8 00 f8 a7 55 c2 e6 00 2d+04:02:30.250 READ DMA c8 00 08 9f 55 c2 e6 00 2d+04:02:30.250 READ DMA Error 1 occurred at disk power-on lifetime: 3235 hours (134 days + 19 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 08 ef 5c 95 e5 Error: ICRC, ABRT 8 sectors at LBA = 0x05955cef = 93674735 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 ef 5c 95 e5 00 2d+04:00:20.438 READ DMA c8 00 f8 f7 5b 95 e5 00 2d+04:00:20.438 READ DMA c8 00 80 77 5b 95 e5 00 2d+04:00:20.438 READ DMA c8 00 88 ef 5a 95 e5 00 2d+04:00:20.438 READ DMA c8 00 08 e7 5a 95 e5 00 2d+04:00:20.438 READ DMA SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Completed without error 00% 3316 - # 2 Extended offline Completed without error 00% 3280 - # 3 Extended offline Completed without error 00% 3272 - # 4 Extended offline Interrupted (host reset) 90% 3234 - SMART Selective Self-Test Log Data Structure Revision Number (0) should be 1 SMART Selective self-test log data structure revision number 0 Warning: ATA Specification requires 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.
Спасибо сказали: