View previous topic :: View next topic |
Author |
Message |
Tyler H n00b
Joined: 11 May 2013 Posts: 21
|
Posted: Thu Aug 22, 2013 8:17 pm Post subject: Assumptions about disk state when resuming from hibernate |
|
|
I dual boot Win7 and Gentoo, with most of my data (music, videos, etc.) stored on the Win7 partition. At least once before, I've corrupted my Win7 partition by hibernating Windows, changing things with Gentoo, then resuming Windows. What I'm wondering is if it is safe to hibernate Gentoo, open Win7, then resume Gentoo without causing corruption. Does the linux NTFS driver finish what it is doing before hibernating, then reload (and forget what it knew about the fs when it hibernated) when the OS is resumed? |
|
Back to top |
|
|
Aquous l33t
Joined: 08 Jan 2011 Posts: 700
|
Posted: Thu Aug 22, 2013 9:22 pm Post subject: |
|
|
The whole idea of hibernation is that nothing needs to be 'finished' but that the system will be thawed in the same state as it was frozen in. Unless either OS does not mount the NTFS partition in question, corruption can and very likely will occur. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Fri Aug 23, 2013 1:59 am Post subject: |
|
|
Any external modification to a filesystem mounted in Linux will at best confuse the Linux kernel driver and at worst cause filesystem corruption. If you intend to have the NTFS volume mounted when you trigger hibernation, you should modify your hibernation configuration to unmount NTFS on hibernate and mount it on resume. This will ensure that Linux forgets any cached information before Windows has a chance to modify it. However, it will require that your NTFS volume be unused at hibernation time. |
|
Back to top |
|
|
|