Ошибка ввода-вывода 5 (при копировании файлов на ntfs)

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

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

Аватара пользователя
Rmic
Сообщения: 87
ОС: Linux

Ошибка ввода-вывода 5

Сообщение Rmic »

Доброго времени суток!

При копировании директории с большим количеством файлов (суммарно порядка 10 Гб) на раздел с системой ntfs наблюдаются сообщения об ошибках создания целевого файла.
Так, Mignight Commander выводит сообщение: "Невозможно записать целевой файл, ошибка ввода-вывода (5), Пропустить, Повторить, Прервать". Если нажать "Повторить", то процесс копирования продолжается. Файлы, на которых возникают ошибки каждый раз разные; после нажатия "повторить" копируется нормально.
При копировании через команду "cp" возникает похожая ситуация, разве что только выводится информация об ошибке без запроса "что делать?".
При выполнении такого же копирования на другой раздел ntfs другого жёсткого диска ошибок не возникает.
В выводе dmesg какой-либо информации о ошибке я не обнаружил.

Подозревая, что дело в жёстком диске, я запустил на ночь badblocks через cron:
/sbin/badblocks -n -o /home/roman/badblocks_sdb.out /dev/sdb > /home/roman/badblocks_sdb.report.txt
После окончания проверки оба файла были пусты, из чего я сделал вывод, что битые секторы не обнаружены.

Далее решил посмотреть, что выводит smartctl -a /dev/sdb

Код: Выделить всё

$ sudo smartctl -a /dev/sdb
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.10 family
Device Model:     ST3200820AS
Serial Number:    6QE00X4Q
Firmware Version: 3.AAE
User Capacity:    200 049 647 616 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Mon Jun 13 13:09:20 2011 MSD
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:  (0x82) Offline data collection activity
                                        was completed without error.
                                        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:                 ( 430) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  74) minutes.

SMART Attributes Data Structure revision number: 10
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   108   088   006    Pre-fail  Always       -       20872386
  3 Spin_Up_Time            0x0003   095   095   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1570
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   045   045   030    Pre-fail  Always       -       17549396148202
  9 Power_On_Hours          0x0032   093   093   000    Old_age   Always       -       6636
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   098   098   020    Old_age   Always       -       2555
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   061   054   045    Old_age   Always       -       39 (Lifetime Min/Max 34/43)
194 Temperature_Celsius     0x0022   039   046   000    Old_age   Always       -       39 (0 16 0 0)
195 Hardware_ECC_Recovered  0x001a   096   062   000    Old_age   Always       -       61570930
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   150   000    Old_age   Always       -       4453
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   100   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 8917 (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 8917 occurred at disk power-on lifetime: 6164 hours (256 days + 20 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 00 c6 03 0e e0  Error: ICRC, ABRT at LBA = 0x000e03c6 = 918470

  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 3a 8d 03 0e e0 00      00:00:57.606  READ DMA EXT
  25 00 06 87 03 0e e0 00      00:00:57.606  READ DMA EXT
  25 00 23 dc 08 00 e0 00      00:00:57.606  READ DMA EXT
  25 00 1d bf 08 00 e0 00      00:00:57.606  READ DMA EXT
  25 00 12 ab 79 2d e0 00      00:00:57.590  READ DMA EXT

Error 8916 occurred at disk power-on lifetime: 6164 hours (256 days + 20 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 06 68 86 51 e0  Error: ICRC, ABRT 6 sectors at LBA = 0x00518668 = 5342824

  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 27 47 86 51 e0 00      00:00:56.607  READ DMA EXT
  25 00 30 cf 5a 00 e0 00      00:00:56.607  READ DMA EXT
  25 00 10 bf 5a 00 e0 00      00:00:56.606  READ DMA EXT
  25 00 10 c7 76 40 e0 00      00:00:56.606  READ DMA EXT
  25 00 06 c1 76 40 e0 00      00:00:56.632  READ DMA EXT

Error 8915 occurred at disk power-on lifetime: 6164 hours (256 days + 20 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 00 cf 82 40 e0  Error: ICRC, ABRT at LBA = 0x004082cf = 4227791

  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 09 c7 82 40 e0 00      00:00:54.725  READ DMA EXT
  25 00 36 91 82 40 e0 00      00:00:54.724  READ DMA EXT
  25 00 36 91 82 40 e0 00      00:00:54.724  READ DMA EXT
  25 00 0a 87 82 40 e0 00      00:00:54.724  READ DMA EXT
  25 00 07 87 81 40 e0 00      00:00:54.723  READ DMA EXT

Error 8914 occurred at disk power-on lifetime: 6164 hours (256 days + 20 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 15 b2 82 40 e0  Error: ICRC, ABRT 21 sectors at LBA = 0x004082b2 = 4227762

  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 36 91 82 40 e0 00      00:00:54.725  READ DMA EXT
  25 00 0a 87 82 40 e0 00      00:00:54.724  READ DMA EXT
  25 00 07 87 81 40 e0 00      00:00:54.724  READ DMA EXT
  25 00 31 56 81 40 e0 00      00:00:54.724  READ DMA EXT
  25 00 0f 47 81 40 e0 00      00:00:54.723  READ DMA EXT

Error 8913 occurred at disk power-on lifetime: 6164 hours (256 days + 20 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 22 25 44 2c e0  Error: ICRC, ABRT 34 sectors at LBA = 0x002c4425 = 2901029

  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 33 14 44 2c e0 00      00:00:53.632  READ DMA EXT
  25 00 0d 07 44 2c e0 00      00:00:53.631  READ DMA EXT
  25 00 32 d5 43 2c e0 00      00:00:53.631  READ DMA EXT
  25 00 0e c7 43 2c e0 00      00:00:53.623  READ DMA EXT
  25 00 31 96 43 2c e0 00      00:00:53.618  READ DMA EXT

SMART Self-test log structure revision number 1

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.

Судя по таблице значений атрибутов всё в норме, единственное, что смущает, так это список последних ошибок типа "Error: ICRC, ABRT 34 sectors at LBA = 0x002c4425 = 2901029"

Буду признателен за любую помощь.
Используется Kubuntu Karmic, ядро 2.6.31-19-generic
Пингвин - друг человека!
Спасибо сказали:

flank'er
Сообщения: 496
Статус: слаковщик
ОС: Slackware64

Re: Ошибка ввода-вывода 5

Сообщение flank'er »

199 UDMA_CRC_Error_Count 0x003e 200 150 000 Old_age Always - 4453

для начала поменяйте интерфейсный кабель
SMART Self-test log structure revision number 1

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

а после запустите самотестирование

Код: Выделить всё

smartctl -t long /dev/sdb

после чего сравнивайте значения смарта и делайте выводы. успехов.
Спасибо сказали: