USB接続の外付けHDDがマウントエラーでアクセスできなくなる。
エラーログの確認
1 |
$ dmesg |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
=== 前略 === [ 152.428588] sd 2:0:0:1: [sdc] Unhandled sense code [ 152.428596] sd 2:0:0:1: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 152.428605] sd 2:0:0:1: [sdc] Sense Key : Medium Error [current] [ 152.428615] sd 2:0:0:1: [sdc] Add. Sense: Unrecovered read error [ 152.428627] sd 2:0:0:1: [sdc] CDB: Read(10): 28 20 3a 04 02 50 00 00 f0 00 [ 152.428647] end_request: I/O error, dev sdc, sector 973341264 [ 152.428702] JBD: Failed to read block at offset 66 [ 152.428708] JBD: IO error -5 recovering block 66 in log [ 152.428726] JBD: Failed to read block at offset 67 [ 152.428731] JBD: IO error -5 recovering block 67 in log [ 152.428737] JBD: Failed to read block at offset 68 [ 152.428743] JBD: IO error -5 recovering block 68 in log [ 152.428749] JBD: Failed to read block at offset 69 [ 152.428754] JBD: IO error -5 recovering block 69 in log [ 152.428760] JBD: Failed to read block at offset 70 [ 152.428765] JBD: IO error -5 recovering block 70 in log === 中略 === [ 152.429046] JBD: Failed to read block at offset 95 [ 152.429051] JBD: IO error -5 recovering block 95 in log [ 152.503882] nautilus: sending ioctl 2285 to a partition! [ 152.503962] nautilus: sending ioctl 2285 to a partition! [ 154.735999] JBD: recovery failed [ 154.736036] EXT4-fs (sdc1): error loading journal |
復旧コマンドの実行
1 |
$ sudo fsck /dev/sdc1 |
既存パーテーションのアンマウント
1 |
$ sudo umount /dev/sdb1 |
パーテーションの再構築
1 |
$ sudo fdisk /dev/sdb |
新規外付けHDDの再フォーマット(ext4)
1 |
$ sudo mkfs.ext4 /dev/sdb1 |