When I try to mount a NTFS partition in Ubuntu I get following error:
Failed to mount "data".
Error mounting system-managed device /dev/sda7: Command-line `mount "/media/data"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda7': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.
Solution:
To fix this mount error under Ubuntu I used ntfsfix command. To install it:
sudo apt-get install ntfsfix
Then I run the following command: (please note that /dev/sda7 is for my case)
sudo ntfsfix /dev/sda7
Now, I can mount the partition successfully.