Ubuntu – Cannot remove hiberfile on NTFS partition

hibernatemountntfspartitioning

I've been looking at questions like Unable to mount Windows (NTFS) filesystem due to hibernation and How do I mount a hibernated NTFS partition? and they all say "Boot into windows" which I am unable to do. Then after much cautioning, the option remove_hiberfile is suggested. I would love that option. I don't care about the programs I had open, or the data in them. The windows partition is on /dev/sda5, so I ran

sudo mount /dev/sda5 /mnt/win

Lots of reading later…

sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda5 /mnt/win
sudo mount -t ntfs-3g -o debug,remove_hiberfile /dev/sda5 /mnt/win

Still no luck. It's like the remove_hiberfile option isn't being recognized, because I don't get an error when trying to use the option remove_hiberfile3ejeiofe but rather the same message.

This is the message given as a result of all above commands (adding debug did not change anything):

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.

I am able to mount read-only, but that doesn't help me much.

Best Answer

I had same problem. Try:

ntfsfix /dev/sda5

remove_hiberfile option no longer works. ntfs-3g package policy is to use the new tool ntfsfix.

However, this tool didn't work for me either. So I plugged the hard disk in a Windows machine, turned off "Fast Startup" in power button options from within Windows, then shutdown and replaced back the HDD in my Ubuntu machine.

I found about it here: Using Ubuntu To Delete hiberfil.sys From Unbootable Win 8.1

Related Question