Last day, while copying some movies into the NTFS drive my laptop suffered a sudden shutdown.
After restart, I was unable to mount the drive in my Fedora box and it showed a creepy error instead.
Error mounting: mount exited with exit code 13: ntfs_attr_pread_i:
ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: 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
important! 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
This was when ntfsfix came as knight to fight the battle.
ntfsfix sub-packaged under ntfsprogs is a really nice tool to solve NTFS problems in Linux.
Let’s say you need to recover /dev/sda6
Then run: sudo ntfsfix /dev/sda6