1. Identify the partition
sudo fdisk -l
  1. Unmount the partition:
sudo umount /dev/sdXn
  1. Repair the unit with ntfsfix:
sudo ntfsfix /dev/sdXn

If the previous command didn't work try it with the -d option:

sudo ntfsfix -d /dev/sdXn