ハードディスクのマウントエラー
環境
- Ubuntu 22.04 LTS
dmesg
以下のように表示されている。
[ 6695.908396] ntfs3: sdc2: It is recommened to use chkdsk.
[ 6695.948011] ntfs3: sdc2: volume is dirty and "force" flag is not set!
書き込みをしている最中に、オーバーヒートでPCが落ちてしまったのでそれが原因かな。
ntfsfix で修復
$ sudo ntfsfix /dev/sdc1
Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
Unrecoverable error
Volume is corrupt. You should run chkdsk.
あっ sdc1 じゃなくて sdc2 だった。
$ sudo ntfsfix /dev/sdc2
Mounting volume... $MFTMirr does not match $MFT (record 3).
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 3...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdc2 was processed successfully.
sdd2 も同様に行って、アクセスできるようになりました。

