Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Assumptions about disk state when resuming from hibernate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Tyler H
n00b
n00b


Joined: 11 May 2013
Posts: 21

PostPosted: Thu Aug 22, 2013 8:17 pm    Post subject: Assumptions about disk state when resuming from hibernate Reply with quote

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
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Thu Aug 22, 2013 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Fri Aug 23, 2013 1:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum