Difference between revisions of "How to mount Windows (NTFS) filesystem due to hibernation"

Marked this version for translation
m (added languages and translate tags)
(Marked this version for translation)
Line 2: Line 2:
__TOC__
__TOC__
<translate>
<translate>
=A bug [https://bugs.launchpad.net/ubuntu/+source/ntfs-3g/+bug/1008117]=  
=A bug [https://bugs.launchpad.net/ubuntu/+source/ntfs-3g/+bug/1008117]= <!--T:1-->
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.
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.


==Explanation: Why Linux can't open hibernated Windows partitions==
==Explanation: Why Linux can't open hibernated Windows partitions== <!--T:2-->


<!--T:3-->
You are seeing this error because you hibernated Windows instead of
You are seeing this error because you hibernated Windows instead of
turning it off the normal way (in newer versions of Windows, hibernate
turning it off the normal way (in newer versions of Windows, hibernate
might be the default option).
might be the default option).


<!--T:4-->
Hibernating saves the current state information to the hard disk and then powers down the computer.
Hibernating saves the current state information to the hard disk and then powers down the computer.
Shutting down the computer closes all programs and ends all running processes before powering down the computer.
Shutting down the computer closes all programs and ends all running processes before powering down the computer.


<!--T:5-->
When you turn off Windows by hibernating it, you are essentially
When you turn off Windows by hibernating it, you are essentially
pausing the system and saving all of that information (into a big file
pausing the system and saving all of that information (into a big file
Line 20: Line 23:
that Windows is hibernated.
that Windows is hibernated.


<!--T:6-->
Making changes to your Windows (ntfs) partition while it is
Making changes to your Windows (ntfs) partition while it is
hibernated could be dangerous--it could cause Windows to not resume
hibernated could be dangerous--it could cause Windows to not resume
Line 29: Line 33:
to open it in read-write mode.
to open it in read-write mode.


=Workaround for all versions of Windows=
=Workaround for all versions of Windows= <!--T:7-->


<!--T:8-->
There are three ways to mount a hibernated Windows partition:
There are three ways to mount a hibernated Windows partition:


<!--T:9-->
Boot into Windows and power down the system by shutting it down
Boot into Windows and power down the system by shutting it down
completely. You may then boot back into Manjaro and the partition will mount in read-write mode automatically when you open it in Nautilus.  
completely. You may then boot back into Manjaro and the partition will mount in read-write mode automatically when you open it in Nautilus.  


<!--T:10-->
'''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.
'''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===
===Manually mount the filesystem in read only mode=== <!--T:11-->


<!--T:12-->
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:  
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:  


<!--T:13-->
'''ls /media'''
'''ls /media'''


<!--T:14-->
If you don't see a folder for your Windows partition, you should create one with the following command:  
If you don't see a folder for your Windows partition, you should create one with the following command:  


<!--T:15-->
'''sudo mkdir /media/windows'''
'''sudo mkdir /media/windows'''


<!--T:16-->
Next, mount the partition in read-only mode onto this folder with this command:  
Next, mount the partition in read-only mode onto this folder with this command:  


<!--T:17-->
'''mount -t ntfs-3g -o ro /dev/sda3 /media/windows'''  
'''mount -t ntfs-3g -o ro /dev/sda3 /media/windows'''  


<!--T:18-->
'''Note:''' that you should change '''/media/windows''' if your mountpoint is called something else.
'''Note:''' that you should change '''/media/windows''' if your mountpoint is called something else.




<!--T:19-->
Now you will be able to view/open files on your Windows partition using any program in Manjaro. However you will not be able to write to the partition or modify any files as it is in read only mode.
Now you will be able to view/open files on your Windows partition using any program in Manjaro. However you will not be able to write to the partition or modify any files as it is in read only mode.


==The Third Option==
==The Third Option== <!--T:20-->


<!--T:21-->
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 from man ntfs-3g about the option that would be used to do this.
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 from man ntfs-3g about the option that would be used to do this.


  '''remove_hiberfile'''
  <!--T:22-->
'''remove_hiberfile'''
   
   
  Unlike in case of  read-only  mount,  the  read-write  mount  is
  Unlike in case of  read-only  mount,  the  read-write  mount  is
Line 70: Line 87:
  lost. Use this option under your own responsibility.''
  lost. Use this option under your own responsibility.''


=Solution (only for Windows 8 and 10)=
=Solution (only for Windows 8 and 10)= <!--T:23-->


<!--T:24-->
There is a new feature in '''Windows 8''' called '''Fast Startup''' [http://www.typicaltips.com/2013/02/disable-fast-startup-in-windows-8.html]. 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:
There is a new feature in '''Windows 8''' called '''Fast Startup''' [http://www.typicaltips.com/2013/02/disable-fast-startup-in-windows-8.html]. 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:


<!--T:25-->
'''Note:''' disabling Fast Startup will most likely make your Windows 8 take a longer time to boot. There are no "exact" numbers, but let's say that if it took you 10 seconds to boot into Windows 8, it will now take you 50 seconds after disabling this feature.
'''Note:''' disabling Fast Startup will most likely make your Windows 8 take a longer time to boot. There are no "exact" numbers, but let's say that if it took you 10 seconds to boot into Windows 8, it will now take you 50 seconds after disabling this feature.


  '''1.''' Open Control Panel in the small icons view and click on '''Power Options'''.
  <!--T:26-->
'''1.''' Open Control Panel in the small icons view and click on '''Power Options'''.
  '''2.''' Click on '''Choose what the power buttons do''' (look in the left hand column).
  '''2.''' Click on '''Choose what the power buttons do''' (look in the left hand column).
  '''3.''' Click on '''Change settings that are currently unavailable'''.
  '''3.''' Click on '''Change settings that are currently unavailable'''.
  '''4.''' '''Uncheck Turn on fast startup (recommended)'''.
  '''4.''' '''Uncheck Turn on fast startup (recommended)'''.


<!--T:27-->
Click on '''Save changes'''. Now, shutdown Windows 8 and boot back into Manjaro.
Click on '''Save changes'''. Now, shutdown Windows 8 and boot back into Manjaro.


<!--T:28-->
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:
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:


<!--T:29-->
'''powercfg /h off'''
'''powercfg /h off'''


<!--T:30-->
Source: Fast Startup - Turn On or Off in Windows. [http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html]
Source: Fast Startup - Turn On or Off in Windows. [http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html]
</translate>
</translate>
[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page{{#translation:}}]]