メモです。無保証です。

English page

2017.2.16

HDDが異常に遅い。SMARTデーモンからお知らせ。

Device: /dev/sda [SAT], 1 Currently unreadable (pending) sectors

syslog上では、セクタ518503あたりが怪しい。

Feb 10 15:28:13 debian kernel: [2162877.410090] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Feb 10 15:28:13 debian kernel: [2162877.412785] ata1.00: BMDMA stat 0x4
Feb 10 15:28:13 debian kernel: [2162877.415437] ata1.00: failed command: READ DMA
Feb 10 15:28:13 debian kernel: [2162877.418191] ata1.00: cmd c8/00:00:c2:e8:07/00:00:00:00:00/e0 tag 0 dma 131072 in
Feb 10 15:28:13 debian kernel: [2162877.418191]          res 51/01:5b:67:e9:07/00:00:00:00:00/e0 Emask 0x9 (media error)
Feb 10 15:28:13 debian kernel: [2162877.423661] ata1.00: status: { DRDY ERR }
Feb 10 15:28:13 debian kernel: [2162877.426439] ata1.00: error: { AMNF }
Feb 10 15:28:13 debian kernel: [2162877.538356] ata1.00: configured for UDMA/100
Feb 10 15:28:13 debian kernel: [2162877.554244] ata1.01: configured for UDMA/33
Feb 10 15:28:13 debian kernel: [2162877.557059] sd 0:0:0:0: [sda] Unhandled sense code
Feb 10 15:28:13 debian kernel: [2162877.559792] sd 0:0:0:0: [sda]
Feb 10 15:28:13 debian kernel: [2162877.562469] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Feb 10 15:28:13 debian kernel: [2162877.565160] sd 0:0:0:0: [sda]
Feb 10 15:28:13 debian kernel: [2162877.567821] Sense Key : Medium Error [current] [descriptor]
Feb 10 15:28:13 debian kernel: [2162877.570535] Descriptor sense data with sense descriptors (in hex):
Feb 10 15:28:13 debian kernel: [2162877.573256]         72 03 13 00 00 00 00 0c 00 0a 80 00 00 00 00 00
Feb 10 15:28:13 debian kernel: [2162877.576073]         00 07 e9 67
Feb 10 15:28:13 debian kernel: [2162877.578831] sd 0:0:0:0: [sda]
Feb 10 15:28:13 debian kernel: [2162877.581578] Add. Sense: Address mark not found for data field
Feb 10 15:28:13 debian kernel: [2162877.584353] sd 0:0:0:0: [sda] CDB:
Feb 10 15:28:13 debian kernel: [2162877.587101] Read(10): 28 00 00 07 e8 c2 00 01 00 00
Feb 10 15:28:13 debian kernel: [2162877.589890] end_request: I/O error, dev sda, sector 518503
Feb 10 15:28:13 debian kernel: [2162877.592654] Buffer I/O error on device sda3, logical block 64560
Feb 10 15:28:13 debian kernel: [2162877.595417] Buffer I/O error on device sda3, logical block 64561
Feb 10 15:28:13 debian kernel: [2162877.598142] Buffer I/O error on device sda3, logical block 64562
Feb 10 15:28:13 debian kernel: [2162877.600849] Buffer I/O error on device sda3, logical block 64563
Feb 10 15:28:13 debian kernel: [2162877.603517] Buffer I/O error on device sda3, logical block 64564
Feb 10 15:28:13 debian kernel: [2162877.606144] Buffer I/O error on device sda3, logical block 64565
Feb 10 15:28:13 debian kernel: [2162877.608735] Buffer I/O error on device sda3, logical block 64566
Feb 10 15:28:13 debian kernel: [2162877.611301] Buffer I/O error on device sda3, logical block 64567
Feb 10 15:28:13 debian kernel: [2162877.613828] Buffer I/O error on device sda3, logical block 64568
Feb 10 15:28:13 debian kernel: [2162877.616318] Buffer I/O error on device sda3, logical block 64569
Feb 10 15:28:13 debian kernel: [2162877.618802] ata1: EH complete

Device: /dev/sda [SAT], 1 Currently unreadable (pending) sectors不良セクタを叩いて潰すあたりを参考に、fdiskの結果をもとに以下を実行。

# mac-fdisk /dev/sda
/dev/sda
Command (? for help): p
/dev/sda
        #                    type name                 length   base     ( size )  system
/dev/sda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/sda2         Apple_Bootstrap untitled               1954 @ 64       (977.0k)  NewWorld bootblock
/dev/sda3         Apple_UNIX_SVR2 untitled           75142579 @ 2018     ( 35.8G)  Linux native
/dev/sda4         Apple_UNIX_SVR2 swap                2995562 @ 75144597 (  1.4G)  Linux swap
/dev/sda5              Apple_Free Extra                     1 @ 78140159 (  0.5k)  Free space

Block size=512, Number of Blocks=78140160
DeviceType=0x0, DeviceId=0x0

Command (? for help): q
# debugfs -R "icheck 64560" /dev/sda3
debugfs 1.42.12 (29-Aug-2014)
Block   Inode number
64560   <block not found>
# dd if=/dev/zero of=/dev/sda3 bs=4096 count=1 seek=64560
1+0 レコード入力
1+0 レコード出力
4096 バイト (4.1 kB) コピーされました、 0.00294678 秒、 1.4 MB/秒

あってるかな?


メモです。無保証です。