Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.
When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.
Here's my partition table, if any more data is needed please let me know.
Device Boot Start End Blocks Id System
/dev/sda1 2048 20000767 9999360 83 Linux
/dev/sda2 20002814 478001151 228999169 5 Extended
/dev/sda3 * 478001152 622532607 72265728 7 HPFS/NTFS/exFAT
/dev/sda4 622532608 625141759 1304576 82 Linux swap / Solaris
/dev/sda5 20002816 478001151 228999168 83 Linux
A bug has been filed about the Nautilus dialog you are seeing as it recommends a potentially dangerous option that could result in data loss. Please do not run the command in this dialog unless you want to delete your saved Windows session and potentially lose unsaved work.
Workaround for all versions of Windows:
There are three ways to mount a hibernated Windows partition:
Boot into Windows and power down the system by shutting it down completely. You may then boot back into Ubuntu and the partition will mount in read-write mode automatically when you open it in Nautilus. Note that the "Shut Down" option may not be the one displayed in your start menu by default. You may need to click the button next to it to see further options.
Manually mount the filesystem in read only mode.
Check to see if you have a mount point (folder for mounting your partition in) for your Windows partition in the folder
/media
using this command:ls /media
If you don't see a folder for your Windows partition, you should create one with the following command:
sudo mkdir /media/windows
Next, mount the partition in read-only mode onto this folder with this command:
mount -t ntfs-3g -o ro /dev/sda3 /media/windows
Note that you should change
/media/windows
if your mountpoint is called something else.If you need to mount the partition in read-write mode and are not able to or willing to boot into Windows and shut it down completely there is a third option. However, it is not included here because it completely deletes
hiberfil.sys
and will cause you to lose all unsaved information in the hibernated Windows programs. The following is a quotation fromman ntfs-3g
about the option that would be used to do this.Solution (only for Windows 8 and 10):
There is a new feature in Windows 8 called Fast Startup. If this feature is enabled (which it is 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. To do this, boot into your Windows 8 and:
Click on Save changes. Now, shutdown Windows 8 and boot back into Ubuntu.
If you still aren't able to mount without getting errors, you may need to turn off hibernation completely. Open an elevated Command Prompt (right click on the shortcut, click on “Run as Administrator”), and input:
Source: Fast Startup - Turn On or Off in Windows 8.
EDIT: DOING THIS MIGHT HAVE DANGEROUS CONSEQUENCES and Windows might fail to boot or corrupt the filesystem upon booting.
Use ntfsfix in the terminal, even if you can't access Windows
where XY is the partition, e.g.
a2
(/dev/sda2
) orb1
(/dev/sdb1
)ntfsfix repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.
If you want to terminate the hibernated session, run this command in a Terminal(press Ctrl+Alt+T to open Terminal)
where
XY
is the partition. ex: sda2 or sdb1This also works if you couldn't get into Win8.
It's because of Windows 8's fast startup feature.
Temporary solution would be to go back in Windows and restart the system (instead of shutdown). Permanent solution is to disable fast startup.
You can use this guide to disable fast startup in Windows 8: http://itsfoss.com/solve-ntfs-mount-problem-ubuntu-windows-8-dual-boot/
My solution was to call a
mntwindows
script in/etc/rc.local
. This script would check for hibernation and if hibernated mount as read only. In order to make sure the script may always be called I placed it in/bin
and marked it as executable. The contents of the script are as followsWindows 8 adds a "fast startup" feature. It does make Windows start up faster after a shutdown, but as a side effect it ends up putting your filesystem in that hibernating state.
To disable this feature in Win 8, search for "choose what the power buttons do" under settings, click the shield to unlock the checkboxes, and you can enable or disable the fast startup from there.
The caveat mentioned earlier, that you want to really shutdown Windows and not restart to get easy access from Linux, still applies.
For windows 10, I figured out how to turn off the fast startup. Did one screencast to solve that. Go to Control Panel > Hardware and Sound > Power Options > System Settings Then click on 'Change Settings that are currently unavailable' and remove tick from 'Turn on fast startup'. Source : http://blog.shahariaazam.com/fast-startup-turn-on-or-off-in-windows-10
on Windows 8 it's normal. You need to shut down Windows 8 via cmd by entering
shutdown /f /s /t 0
then it might work.Just for completion, here is another command to mount a partition as read-only (useful for hibernated Windows partitions):
If you have permission to mount the partition using the file manager (if you are an administrator, for example), then you should be able to run this command without using
sudo
.This is available in the newest Ubuntu versions (like 13.04 and 13.10).
If
udisksctl
isn't available, then maybeudisks
is. It has different arguments, so check the manpage.It has become even more simple (Windows 8+)
Just force shutdown or you can say complete shutdown your windows system before rebooting to Ubuntu OS.
Well how will I do that?
Very simple: Shift + Shutdown
i,e Hold Shift key while you click the Shutdown button in Windows to shutdown it completely.
Of course it will make your windows boot little slower next time. :)