Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Somebody was using my Windows 7 and she hibernated it instead of shutting down. Later, I booted up Ubuntu and moved about 2GB worth of files from the Ubuntu partition to the Windows partition.

After booting up Windows (from hibernation), I couldn't find any of the files. Then I restarted the PC, and the files showed for a second or two and then disappeared.

Did Windows delete all the files I put on it while it was hibernating?

share|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 '12 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 '12 at 20:51

1 Answer 1

up vote 6 down vote accepted

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

share|improve this answer
    
That explains it. Thank you for taking your time :) –  Koffeehaus Feb 2 '12 at 2:22
    
Hey, just accepted your answer hahaha didn't know you could do that when I posted this ages ago. –  Koffeehaus May 9 '13 at 9:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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