Fix inconsistent NTFS drive on Linux

If you’re unable to access to a NTFS drive from Linux and you get some complex error messages, please don’t wipe it. Just some terminal commands and the issue is solved.

 

Weird error from an external NTFS drive
Weird error from an external NTFS drive

Unable to access to inconsistent NTFS drive or there is a hardware fault

If you see an error message like the one in the screenshoot above, open a terminal window and type in it the following commands.

NTFS-3G is an open source cross-platform implementation of the Microsoft Windows NTFS file system with read-write support. NTFS-3G often uses the FUSE file system interface, so it can run unmodified on many different operating systems. More info at the wiki.

First install the NTFS-3G suite:


$ sudo dnf install ntfs-3g #for Fedora based distro

$ sudo apt install ntfs-3g #for Debian based distro like Ubuntu

Then, fix the disk issue:


$ sudo fdisk -l #check where is mounted the disk

$ sudo ntfsfix /dev/sdb1 #change sd1 with the path for your drive

Just some seconds and your drive is ready with full content available:


Mounting volume... $MFTMirr does not match $MFT (record 0).
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 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/sdb1 was processed successfully.