Ubuntu – dual boot ubuntu with windows 8

mountUbuntu

I want to install Ubuntu beside my windows 8 but I made a mistake that i installed only Ubuntu ,but when I logged in Ubuntu and went to open my partitions , an error appeared said tha

Error mounting /dev/sda5 at /media/abdo/mohamed:

Command-line `mount -t "ntfs" -o
"uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177"
"/dev/sda5" "/media/abdo/mohamed"'

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/sda5': 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"".

Please I need help here.

Best Answer

I'd refer you to this AU question (found via here, which has an identical error message) and the selected answer. If you have an AU account, go upvote him, since he did all the hard work. I'm paraphrasing, and cutting it down quite a bit

Basically windows 8 does a lot of neat tricks to boot up fast, including usually partially hibernating. This results in insanely fast reboot times, but if another OS changed something, windows will probably wake up in a confusion.

As such NTFS 3G (the wonderful userspace driver for NTFS on linux) will refuse to mount if there's a hibernation file present.

Long term answer would be to turn off the hibernation file/fastboot from windows. You can also mount readonly, or tell NTFS 3g to delete the hibernation file.

I'd conclude by pointing out, that's exactly what the error message said, and that I found the answer to this via google, on one of our sister sites.

Related Question