Naprawa partycji lub dysku z Debianem

Wszystko związane z jądrem systemowym, sterownikami, sprzętem itp.
Lxns
Posty: 2
Rejestracja: 01 czerwca 2011, 11:56

Naprawa partycji lub dysku z Debianem

Post autor: Lxns »

Witam na forum.

Mam pewne problemy z dyskiem, z którymi w żaden sposób nie mogę dać sobie rady.
  1. Kod: Zaznacz cały

    40 51 03 a0 db 4b e1  Error: UNC 3 sectors at LBA = 0x014bdba0 = 21748640
    - ten blok znajduje się na /dev/sda2 - partycja z Windows XP, nie odczuwam specjalnie skutków tego błędu, niemniej jednak chciałbym wiedzieć o co tutaj chodzi, nie podejmowałem żadnych działań zmierzających do naprawy tego błędu.
  2. Kod: Zaznacz cały

    # 1  Extended offline    Completed: read failure       50%     15509         202490421
    (...)
    # 8  Extended offline    Completed: read failure       50%     15295         202679039
    
    Oba bloki są w debugfs oznaczone jako "not in use". Ponowny zapis bloków nie usunął problemu, po wykonaniu kolejnego testu, błędy są dalej raportowane.
  3. Najgorzej sprawa wygląda z ostatnim błędem:

    Kod: Zaznacz cały

    end_request: I/O error, dev sda, sector 244 747 314
    Sytuacja wygląda mniej więcej tak, że gdy korzystam z wtyczki flasha w Firefoksie, KDE czasami zamraża się. Czasami wiesza się na chwilę, czasami możliwe jest tylko wyłączenie zasilania, wtedy na konsoli tty1 jest pętla z powyższym błędem.

    Blok ten znajduje się na /dev/sda9 (mount /usr) i odnosi się do /usr/share/mime/icons/generic-icons.
    Ponowny zapis bloku, nie przynosi żadnego skutku. Z konsoli mogę odczytać plik (nie wiem czy jest on dobry). Ostatecznie go usunąłem i myślałem, że problem zniknie, jednak mimo to KDE ponownie zaliczyło zamrożenie, takie, że nie mogłem nawet zmienić terminala.

    Ciekawe, że polecenie:

    Kod: Zaznacz cały

    badblocks -n /dev/sdax
    nie wykryło żadnych uszkodzonych bloków, podobnie jak narzędzie dedykowane do tego dysku.

    Narzędzie HD Tune uruchomione pod Windows XP wykryło blok w okolicach /dev/sda8, /dev/sda9 - nie zapisałem wtedy numeru bloku.

    Ten błąd jest najbardziej irytujący. Ktoś ma jakiś pomysł?
Z góry dziękuję za pomoc.

Kod: Zaznacz cały

dmesg

Kod: Zaznacz cały

[    0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-34squeeze1) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed May 18 07:08:50 UTC 2011
(...)
[    2.036019] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.038112] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[    2.038116] ata1.00: ACPI cmd b1/c1:00:00:00:00:a0 (DEVICE CONFIGURATION OVERLAY) filtered out
[    2.038269] ata1.00: ACPI cmd c6/00:10:00:00:00:a0 (SET MULTIPLE MODE) succeeded
[    2.038273] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[    2.038986] ata1.00: ATA-7: Hitachi HTS541616J9SA00, SB4OC7BP, max UDMA/100
[    2.038988] ata1.00: 312581808 sectors, multi 16: LBA48 
[    2.041229] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[    2.041232] ata1.00: ACPI cmd b1/c1:00:00:00:00:a0 (DEVICE CONFIGURATION OVERLAY) filtered out
[    2.041383] ata1.00: ACPI cmd c6/00:10:00:00:00:a0 (SET MULTIPLE MODE) succeeded
[    2.041386] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[    2.042123] ata1.00: configured for UDMA/100
[    2.056098] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HTS54161 SB4O PQ: 0 ANSI: 5
[    2.058278] scsi 3:0:0:0: CD-ROM            MATSHITA DVD-RAM UJ-861H  1.50 PQ: 0 ANSI: 5
[    2.063949] sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[    2.064005] sd 0:0:0:0: [sda] Write Protect is off
[    2.064008] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.064029] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.064144]  sda: sda1 sda2 sda3 < sda5 sda6 sda7 sda8 sda9 sda10 >
[    2.611931] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.616547] sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[    2.616550] Uniform CD-ROM driver Revision: 3.20
[    2.616614] sr 3:0:0:0: Attached scsi CD-ROM sr0
[    2.620518] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.620847] sr 3:0:0:0: Attached scsi generic sg1 type 5
[    5.066958] PM: Starting manual resume from disk
[    5.066961] PM: Resume from partition 8:7
[    5.066963] PM: Checking hibernation image.
[    5.077135] PM: Error -22 checking image file
[    5.077137] PM: Resume from disk failed.
[    5.089149] EXT3-fs: INFO: recovery required on readonly filesystem.
[    5.089152] EXT3-fs: write access will be enabled during recovery.
[    9.568159] kjournald starting.  Commit interval 5 seconds
[    9.568166] EXT3-fs: sda8: orphan cleanup on readonly fs
[    9.568171] ext3_orphan_cleanup: deleting unreferenced inode 494874
[    9.568403] ext3_orphan_cleanup: deleting unreferenced inode 494882
[    9.568409] ext3_orphan_cleanup: deleting unreferenced inode 494881
[    9.568415] ext3_orphan_cleanup: deleting unreferenced inode 494860
[    9.568576] ext3_orphan_cleanup: deleting unreferenced inode 494870
[    9.568581] ext3_orphan_cleanup: deleting unreferenced inode 494872
[    9.568586] ext3_orphan_cleanup: deleting unreferenced inode 494871
[    9.568591] ext3_orphan_cleanup: deleting unreferenced inode 494861
[    9.578953] ext3_orphan_cleanup: deleting unreferenced inode 494863
[    9.578959] ext3_orphan_cleanup: deleting unreferenced inode 494850
[    9.578967] EXT3-fs: sda8: 10 orphan inodes deleted
[    9.578968] EXT3-fs: recovery complete.
[    9.582588] EXT3-fs: mounted filesystem with ordered data mode.
(...)

Kod: Zaznacz cały

fdisk -lu /dev/sda

Kod: Zaznacz cały

/dev/sda1   *          63       80324       40131   83  Linux
/dev/sda2           80325    30812669    15366172+   7  HPFS/NTFS // WINDOWS
/dev/sda3        30812731   312576704   140881987    f  W95 Rozsz. (LBA)
/dev/sda5        30812733   112744169    40965718+   7  HPFS/NTFS
/dev/sda6       112744233   184426199    35840983+   7  HPFS/NTFS
/dev/sda7       184426263   186482519     1028128+  82  Linux swap / Solaris
/dev/sda8       186482583   206965394    10241406   83  Linux //root
/dev/sda9       206965458   268414019    30724281   83  Linux //usr
/dev/sda10      268414083   312576704    22081311   83  Linux //home

Kod: Zaznacz cały

smartctl -a /dev/sda

Kod: Zaznacz cały

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Travelstar 5K160
Device Model:     Hitachi HTS541616J9SA00
Serial Number:    SB2481GJHZ9LAP
Firmware Version: SB4OC7BP
User Capacity:    160,041,885,696 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 1
Local Time is:    Wed Jun  1 12:49:34 2011 CEST
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:  (0x85) Offline data collection activity
                                        was aborted 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:                 ( 645) seconds.
Offline data collection
capabilities:                    (0x51) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No 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:        (  83) minutes.

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   087   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   230   100   033    Pre-fail  Always       -       1
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       890
  5 Reallocated_Sector_Ct   0x0033   097   097   005    Pre-fail  Always       -       2312 (0, 593)
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   065   065   000    Old_age   Always       -       15544
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       755
191 G-Sense_Error_Rate      0x000a   100   092   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       350552202
193 Load_Cycle_Count        0x0012   071   071   000    Old_age   Always       -       293714
194 Temperature_Celsius     0x0002   130   098   000    Old_age   Always       -       42 (Lifetime Min/Max 5/57)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       258
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   253   000    Old_age   Always       -       1
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 3048 (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 3048 occurred at disk power-on lifetime: 15465 hours (644 days + 9 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
  -- -- -- -- -- -- --
  40 51 03 a0 db 4b e1  Error: UNC 3 sectors at LBA = 0x014bdba0 = 21748640

  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 20 83 db 4b e0 08      00:01:10.500  READ DMA EXT
  ec 00 00 00 00 00 a0 08      00:01:10.500  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 08      00:01:10.500  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 a0 08      00:01:10.500  IDENTIFY DEVICE
  25 00 20 83 db 4b e0 08      00:01:06.500  READ DMA EXT

Error 3047 occurred at disk power-on lifetime: 15465 hours (644 days + 9 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
  -- -- -- -- -- -- --
  40 51 03 a0 db 4b e1  Error: UNC 3 sectors at LBA = 0x014bdba0 = 21748640

  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 20 83 db 4b e0 08      00:01:06.500  READ DMA EXT
  ec 00 00 00 00 00 a0 08      00:01:06.500  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 08      00:01:06.500  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 a0 08      00:01:06.500  IDENTIFY DEVICE
  25 00 20 83 db 4b e0 08      00:01:02.400  READ DMA EXT

Error 3046 occurred at disk power-on lifetime: 15465 hours (644 days + 9 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
  -- -- -- -- -- -- --
  40 51 03 a0 db 4b e1  Error: UNC 3 sectors at LBA = 0x014bdba0 = 21748640

  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 20 83 db 4b e0 08      00:01:02.400  READ DMA EXT
  ec 00 00 00 00 00 a0 08      00:01:02.400  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 08      00:01:02.400  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 a0 08      00:01:02.400  IDENTIFY DEVICE
  25 00 20 83 db 4b e0 08      00:00:58.300  READ DMA EXT

Error 3045 occurred at disk power-on lifetime: 15465 hours (644 days + 9 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
  -- -- -- -- -- -- --
  40 51 03 a0 db 4b e1  Error: UNC 3 sectors at LBA = 0x014bdba0 = 21748640

  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 20 83 db 4b e0 08      00:00:58.300  READ DMA EXT
  ec 00 00 00 00 00 a0 08      00:00:58.300  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 08      00:00:58.300  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 a0 08      00:00:58.300  IDENTIFY DEVICE
  25 00 20 83 db 4b e0 08      00:00:54.300  READ DMA EXT

Error 3044 occurred at disk power-on lifetime: 15465 hours (644 days + 9 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
  -- -- -- -- -- -- --
  40 51 03 a0 db 4b e1  Error: UNC 3 sectors at LBA = 0x014bdba0 = 21748640

  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 20 83 db 4b e0 08      00:00:54.300  READ DMA EXT
  ec 00 00 00 00 00 a0 08      00:00:54.300  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 08      00:00:54.300  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 a0 08      00:00:54.300  IDENTIFY DEVICE
  25 00 20 83 db 4b e0 08      00:00:50.000  READ DMA EXT

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       50%     15509         202490421
# 2  Short offline       Completed without error       00%     15463         -
# 3  Short offline       Completed without error       00%     15461         -
# 4  Extended offline    Completed without error       00%     15437         -
# 5  Extended offline    Completed without error       00%     15372         -
# 6  Extended offline    Completed without error       00%     15335         -
# 7  Extended offline    Interrupted (host reset)      60%     15299         -
# 8  Extended offline    Completed: read failure       50%     15295         202679039
# 9  Short offline       Completed without error       00%     15294         -

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.

Kod: Zaznacz cały

tune2fs -l /dev/sda8

Kod: Zaznacz cały

tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          54604dca-a837-47f5-a7e1-c8f30ba00af6
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              640848
Block count:              2560351
Reserved block count:     128017
Free blocks:              2320039
Free inodes:              624782
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      625
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8112
Inode blocks per group:   507
Filesystem created:       Sun May  8 14:43:31 2011
Last mount time:          Wed Jun  1 11:04:17 2011
Last write time:          Mon May 30 19:42:44 2011
Mount count:              4
Maximum mount count:      20
Last checked:             Mon May 30 19:42:44 2011
Check interval:           15552000 (6 months)
Next check after:         Sat Nov 26 18:42:44 2011
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       494954
Default directory hash:   half_md4
Directory Hash Seed:      c37b3012-3d03-42be-a9f9-4b2816b036d0
Journal backup:           inode blocks

Kod: Zaznacz cały

tune2fs -l /dev/sda9

Kod: Zaznacz cały

tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          2c9d79de-e5ba-421e-9dea-dee0a5916d26
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              1921360
Block count:              7681070
Reserved block count:     384053
Free blocks:              6548002
Free inodes:              1797755
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1022
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8176
Inode blocks per group:   511
Filesystem created:       Sun May  8 14:43:42 2011
Last mount time:          Wed Jun  1 11:04:29 2011
Last write time:          Wed Jun  1 11:04:29 2011
Mount count:              24
Maximum mount count:      29
Last checked:             Mon May 23 20:02:33 2011
Check interval:           15552000 (6 months)
Next check after:         Sat Nov 19 19:02:33 2011
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      896c8144-13e1-4743-ad00-12004964fcfb
Journal backup:           inode blocks
franek4always
Posty: 42
Rejestracja: 02 stycznia 2007, 21:25

Post autor: franek4always »

Odpowiedź masz w tablicy SMART:

Kod: Zaznacz cały

5 Reallocated_Sector_Ct 0x0033 097 097 005 Pre-fail Always - 2312 

Poczytaj sobie: http://pl.wikipedia.org/wiki/S.M.A.R.T._(informatyka)

Ogólnie zrób kopię zapasową dysku i szybko go zmieniaj.
ODPOWIEDZ