Okay some one was using my Windows 7 partition and evidently she hibernated it instead of shutting down. When I tried to move about 2GB worth of files to my Windows from Ubuntu, I couldn't find them on my Win7 when it resumed from sleeping. After restarting the PC the files showed for a sec or two and then disappeared. My question is did Windows delete all the files I put on it while it was hibernating?

link|improve this question
2  
What files? And no, WIndows doesn't delete files during hibernation. How & where are you checking the files? How are you copying from Ubuntu? Lot of unanswered questions here – Sathya Jan 31 at 16:29
Well, I know that Win doesn't delete files while hibernating per se, but does it delete files that were placed there WHILE Win was hibernating is my question. I mounted Win partition while using Ubuntu like you would a USB drive (yes, Linux can do that :p) – Koffeehaus Jan 31 at 20:51
feedback

1 Answer

When Microsoft said "Do not make major changes to the computer's state after you put the computer in hibernation or on standby.", it meant it.

Changes to the computer's state include bootstrapping another operating system entirely and modifying what's on the hard disc. You've just witnessed what goes wrong when one does that: volumes become corrupt, files and directories (not at all) mysteriously look just like they did when Windows hibernated, strange errors occur. SuperUser has a whole mountain of tales of woe from people who tried this.

Hibernation is not shutdown. The cache manager and all of the installable filesystem drivers retain their in-memory state across hibernation. After all, that is the point. This state includes open files, unwritten data and metadata in memory, and so forth. During hibernation, the state of your volume(s) on disc isn't necessarily consistent, and isn't the state that it would be had the machine been actually shut down, with all of the files closed, transactions finished, and pending writes flushed.

During hibernation (of Windows, Linux, or indeed any other current operating system with this mechanism) …

  • do not mount any NTFS, FAT, or other types of disc volumes that were in use by the operating system that you hibernated, as anything other than strictly read-only from any operating system.
  • do not blithely and erroneously think that the only operations that could update the on-disc data structures for a volume are writing to files.

If you want to bootstrap another operating system, shut down.

Further reading

link|improve this answer
That explains it. Thank you for taking your time :) – Koffeehaus Feb 2 at 2:22
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.