Jan 26, 2014

Accessing a Windows 8 NTFS partition from Ubuntu

Yesterday I installed Ubuntu (again) and I just wanted to access my D: drive (all my files were there). I was surprised to see an interesting error:

Error mounting /dev/sda3 at /media/kashan/zombie check:
Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,
dmask=0077,fmask=0177" "/dev/sda3"
"/media/kashan/zombie check"' 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/sda3': Operation not permitted
The NTFS partition is in an unsafe state.
Please resume and shutdownWindows fully (no hibernation or fast restarting),
or mount the volumeread-only with the 'ro' mount option.
First you have to find out the partition where you have the windows installed:

sudo fdisk -l

sda3 is my windows partiotion so executing the

sudo ntfsfix /dev/sda3 

command saved me!

If you don't have ntfsfix you can install it with the following command:

sudo apt-get install ntfsprogs