Tuesday, March 29, 2016

How to Mount Hibernated Windows Partitions in Linux

ERROR:
Error mounting: mount exited with exit code 14: Windows is hibernated, refused to mount.
Failed to mount '/dev/sda5': Operation not permitted
The NTFS partition is hibernated. Please resume and shutdown Windows
properly, or mount the volume read-only with the 'ro' mount option, or
mount the volume read-write with the 'remove_hiberfile' mount option......

Why ?
You are seeing this error because you hibernated Windows instead of turning it off the normal way (in newer versions of Windows, hibernate might be the default option).

Hibernating saves the current state information to the hard disk and then powers down the computer. When you turn off Windows by hibernating it, you are essentially pausing the system and saving all of that information into a big file called hiberfil.sys This way when you resume from hibernation all of your applications and files will be exactly how you left them. It also sets a flag in hiberfil.sys to let other Operating Systems know that Windows is hibernated.

Shutting down the computer closes all programs and ends all running processes before powering down the computer

Making changes to your Windows  partition while it is hibernated could be dangerous, ,t could cause Windows to not resume from hibernation or to crash after resuming.

In Linux to mount hibernated windows do as following:

Make Folder of any name in Media Directory(/media)
e.g. Make folder manually or

sudo mkdir /media/WINTMP

After then Run this command (with superuser permission if needed) in terminal with created folder name where to mount windows partition. Here sda2 is a partition of windows file System so First Check that where your windows partition is stored.
e.g.

sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /media/WINTMP

-------------------------------------------------------------------------------------------------------
Solution for Windows 8 and 10:
There is a new feature in Windows 8 called Fast Startup.This feature is enabled by default, Windows 8 does not actually completely shutdown when you choose shutdown. Instead, it does a "hybrid shutdown". This is something like hibernating; it makes booting Windows 8 back up faster. So, you need to disable this feature to be able to shut it down properly, and be able to mount the Windows partitions. Fast Startup can be Disable from power option in Control Panel.By disabling Fast Startup windows 8 will take a longer time to boot.

If you still aren't able to mount without getting errors, you should turn off hibernation completely. Open Command Prompt as Administrator and Run following Command :

powercfg /h off

No comments :

Post a Comment