読者です 読者をやめる 読者になる 読者になる

failed command: READ DMA EXT

linux

昨夜、PCを立ち上げたら下記のようなエラーをdmesgに吐きつつ、initramfsプロンプトに落ちてた。

 :
[    7.012183] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[    7.012189] ata3.00: BMDMA stat 0x24
[    7.012195] ata3.00: failed command: READ DMA EXT
[    7.012205] ata3.00: cmd 25/00:00:58:f1:c4/00:01:1c:00:00/e0 tag 0 dma 131072 in
[    7.012207]          res 51/40:00:66:f1:c4/40:00:1c:00:00/e0 Emask 0x9 (media error)
[    7.012212] ata3.00: status: { DRDY ERR }
[    7.012216] ata3.00: error: { UNC }
[    7.028284] ata3.00: configured for UDMA/133
[    7.028297] ata3: EH complete
[    9.268078] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[    9.268084] ata3.00: BMDMA stat 0x24
[    9.268090] ata3.00: failed command: READ DMA EXT
[    9.268100] ata3.00: cmd 25/00:00:58:f1:c4/00:01:1c:00:00/e0 tag 0 dma 131072 in
[    9.268102]          res 51/40:00:66:f1:c4/40:00:1c:00:00/e0 Emask 0x9 (media error)
[    9.268107] ata3.00: status: { DRDY ERR }
[    9.268111] ata3.00: error: { UNC }
[    9.284288] ata3.00: configured for UDMA/133
[    9.284306] ata3: EH complete
 :
[   18.384312] sd 2:0:0:0: [sda] Unhandled sense code
[   18.384316] sd 2:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   18.384322] sd 2:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]
[   18.384330] Descriptor sense data with sense descriptors (in hex):
[   18.384334]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00 
[   18.384351]         1c c4 f1 66 
[   18.384358] sd 2:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed
[   18.384368] sd 2:0:0:0: [sda] CDB: Read(10): 28 00 1c c4 f1 58 00 01 00 00
[   18.384384] end_request: I/O error, dev sda, sector 482668902
[   18.384394] JBD: Failed to read block at offset 7469
[   18.384402] JBD: recovery failed
[   18.384406] EXT4-fs (sda1): error loading journal
[   18.384416] ata3: EH complete
[   19.548381] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   19.548386] EXT4-fs (sda1): write access will be enabled during recovery
[   22.129954] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[   22.129960] ata3.00: BMDMA stat 0x24
[   22.129966] ata3.00: failed command: READ DMA EXT
[   22.129977] ata3.00: cmd 25/00:00:58:f1:c4/00:01:1c:00:00/e0 tag 0 dma 131072 in
[   22.129979]          res 51/40:00:66:f1:c4/40:00:1c:00:00/e0 Emask 0x9 (media error)
[   22.129984] ata3.00: status: { DRDY ERR }
[   22.129988] ata3.00: error: { UNC }
[   22.160285] ata3.00: configured for UDMA/133
[   22.160298] ata3: EH complete
 :
[   33.476481] ata3.00: error: { UNC }
[   33.492264] ata3.00: configured for UDMA/133
[   33.492276] sd 2:0:0:0: [sda] Unhandled sense code
[   33.492278] sd 2:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   33.492281] sd 2:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]
[   33.492285] Descriptor sense data with sense descriptors (in hex):
[   33.492287]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00 
[   33.492295]         1c c4 f1 66 
[   33.492299] sd 2:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed
[   33.492304] sd 2:0:0:0: [sda] CDB: Read(10): 28 00 1c c4 f1 58 00 01 00 00
[   33.492312] end_request: I/O error, dev sda, sector 482668902
[   33.492324] ata3: EH complete
[   33.492346] JBD: Failed to read block at offset 7469
[   33.492351] JBD: recovery failed
[   33.492353] EXT4-fs (sda1): error loading journal

"Sense Key : Medium Error" とか "I/O error, dev sda" とか言っているので、てっきり物理障害かと思っていたのだけど、気を取り直してUSBメモリから起動させてfsckしてみたら直った。

$ sudo e2fsck -f /dav/sda1