Get a site

ntfsfix: alternative Windows NTFS chkdsk /f on linux

If you try to mount your hard disk and the terminal response is the follow:

[[email protected]] ~ $ sudo mount /dev/sdc1

$MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdc1': Input/output error
NTFS is either inconsistent, or there is a hardware 
fault, or it's a SoftRAID/FakeRAID hardware. 

In the first case run chkdsk /f on Windows then reboot 
into Windows twice. The usage of the /f parameter is very

If the device is a SoftRAID/FakeRAID then first activate 
it and mount a different device under the /dev/mapper/ 
directory, (e.g. /dev/mapper/nvidia_eahaabcc1).

Please see the 'dmraid' documentation for more details.

and you don’t have a Windows machine to use, just try the command ntfsfix as follow and hope that it works!

[[email protected]] ~ $ sudo ntfsfix /dev/sdc1
[sudo] password for daniele:

Mounting volume... $MFTMirr does not match $MFT (record 0).
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 0...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/sdc1 was processed successfully.

I’m not sure that it works fine always, but for me it was enough to fix the problem and recover my data from the device. After that:

[[email protected]] ~ $ sudo mount /dev/sdc1

If you find some problems just comment the article!

Published by Daniele Dalla Torre

I'm a Civil Engineering but I love to learn everything about technology, from the basics to the new frontiers! Here my gpg public key!

Leave a Reply

Your email address will not be published.

%d bloggers like this: