Question

Hibernate and files vanishing from Disk

Asked by: nbanyan

Recently I was on a long trip and took a lot of pictures. The camera stores the pictures on a SD card. When the card is full, I resume my laptop (HP tx2000 running Windows 7 RC) from hibernate, move the files from the SD card to a folder on the desktop, and after the move completes I close the lid of the laptop to send it into hibernate again.

The assumption I had was that any data in the write cache would be forced to complete writing to the hard drive as part of entering hibernation.  Most of the time I believe I used the 'safely remove hardware' feature anyway.

However, one of the file dumps I made on the trip was never written to the harddrive and is therefore completely unrecoverable.

The question is: Does anyone here know for sure if hibernate and/or standby empty the write cache before entering a low power state? And how would I ensure the write-read cache is completed before removing the SD card (other than using the 'safely remove hardware' feature?)?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-08 at 00:03:20ID24881320
Tags

Hibernate file dump delete write caching

Topics

Windows 7

,

Computer Hard Drives

,

PC Laptops

Participating Experts
5
Points
125
Comments
21

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. slides on hibernate?
    slides on hibernate?
  2. WinXP Hibernation
    Hi All, I'm running WinXp Home, SP2 on a laptop. I closed the lid and it went into hibernation mode. Now, when I open the lid, the computer will not come out of hibernation. I get message, "System restart has been paused: Continue with system restart. Delete restoration...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: HectorRdzPosted on 2009-11-08 at 01:42:50ID: 25769951

after hibernation computer reloads the content of memory and also it restore to that state the computer was in hibernation, if you transfer file from a storage device to you computer and you hibernate your pc while this event you may lose your information.

 

by: Seth_McCauleyPosted on 2009-11-08 at 01:45:20ID: 25769956

I am not certain about Windows 7, but in XP the only way to ensure that the write cache is flushed is to dismount the drive via the "Safely Remove Hardware" wizard. I thought write-behind caching is now disabled by default for removable drives, but I could be wrong. If not, you may want to consider just disabling the write cache for your card reader. Here's a guide on how to do this in Windows 7: http://www.recipester.org/Recipe:Enable_or_Disable_Write_Cache_in_Windows_7_26937759

I also found a tool to force the write cache to flush to disk. I've never used, so I can't say how well it works. It was designed for XP, but it may work in Windows 7 as well: http://technet.microsoft.com/en-us/sysinternals/bb897438.aspx

 

by: nobusPosted on 2009-11-08 at 03:21:36ID: 25770144

personally, i never trust valauable data to "automatic' systems; i copy them myself; then i'm sure it's there.
you can always do a search on the whole drive for the documents that should be there..

 

by: burrcmPosted on 2009-11-08 at 03:41:17ID: 25770172

Never, never, never (enough?) place files on the desktop. Shortcuts only. If a profile corrupts they are gone. If you are on a domain, they can be gone just by connecting to the network. If safely remove is enabled for the device, then write behind caching is enabled also. This means if you pull it out, you can lose data. You can disable this in Device manager - optimize for quick removal.

Chris B

 

by: BigSchmuhPosted on 2009-11-08 at 13:11:50ID: 25771934

So you have a  'safely remove hardware' feature that you don't want to use and complain about getting files corruption ?
==>  What about just using the 'safely remove hardware' feature ? That is 1 single left-click + 1 single select only!

 

by: nbanyanPosted on 2009-11-08 at 13:56:50ID: 25772124

The problem I have with the 'Safely remove hardware' feature is that occasionally it insists that the device is still in use when it obviously isn't.  There have been times when I've closed all programs and to 'safely remove' the device 10 hours later and it still won't let me.

 

by: Seth_McCauleyPosted on 2009-11-08 at 14:08:06ID: 25772174

Unfortunately in those cases, a full restart may be the only way to unmount the drive. As much of a hassle as this is, I personally feel it's worth it to prevent data loss.

Are you certain there are no programs still running in the background? Perhaps some sort of auto-camera synch software running in the system tray?  I've found even keeping a "My Computer" window open can give the dreaded "Generic volume cannot be stopped right now" error. You might even try opening task manager and closing, then re-opening "explorer.exe".

Either way, disabling the write cache on your flash drive as instructed above should allow you to remove the drive without using "Safely Remove Hardware wizard", although I prefer to do this anyway...

 

by: BigSchmuhPosted on 2009-11-08 at 22:34:21ID: 25773746

Your "Safely remove hardware" feature has a problem with a background antivirus process...
Most anti-virus acts that way on USB hw

 

by: nobusPosted on 2009-11-08 at 23:33:45ID: 25773970

if you want to fix the safe ly remove problems, here a good program : http://safelyremove.com/?pid=1

 

by: BigSchmuhPosted on 2009-11-09 at 09:05:16ID: 25777787

You need to wait for your antivirus to stop its background scan on your SD card to safely removed it.
One way may be to configure the AntiVirus NOT to start a background scan on your card...but it HAS to be replaced by a read SCAN on all potentially harmful files on those external storage.

A very easy way to confirm that this is the AntiVirus which avoids a normal usage of the remove safely feature is to plug-in a SAFE external media AFTER having stopping the antivirus, copy some large files locally, and try to use the safely remove feature.

Another way to confirm which application is locking down your external media is to use the "Process Monitor" tool ( http://technet.microsoft.com/fr-fr/sysinternals/bb896645.aspx ) - FileMon although would allow to track down which application is using a E:\ like path

 

by: nbanyanPosted on 2009-11-12 at 13:10:16ID: 25808983

So, what I'm understanding with all your helpful comments is that Window's Standby and Hibernate features do nothing to ensure the integrity of write-cached data and that currently the easiest way to determine what processes are currently accessing a drive (in order to force flush the write-cache) is a $20 program?
SafelyRemove is a slick program; yet another 3rd-Party replacement utility that provides functionality that really should be default in Windows.

 

by: BigSchmuhPosted on 2009-11-12 at 14:18:42ID: 25809588

Please read me previous post...with at least 3 FREE MS tool !

 

by: nbanyanPosted on 2009-11-12 at 14:29:41ID: 25809656

I looked at Process Monitor, which seems to be a lot of sysinternals tools lumped into one package (including Filemon) but after a little bit of playing with the interface, I couldn't find a good way to identify what processes are accessing what drives; however, I haven't looked for any manuals for the utility yet.

I already use Process Explorer on my desktop, but it doesn't provide a search for identifying current write/read locks on a drive.

 

by: nobusPosted on 2009-11-12 at 23:53:31ID: 25812101

you're free to use it or not, but it is helpful in many ways - and has a free trial !

 

by: BigSchmuhPosted on 2009-11-13 at 00:40:20ID: 25812272

Using ProcessMonitor, you have a Menu allowing to search for a reference.
Search for the USB drive letter in the form "E:\" for example
==> Keep in mind this is just to be used ONCE to CONFIRM which process is locking your USB device.

I still think the process locking it is your AntiVirus and you should have a look at some ways to force it unlock the USB device.

 

by: nbanyanPosted on 2009-11-14 at 00:17:31ID: 25819795

I've played with the Process Manager's Filters and it displays process events, but I can't find a way for it to identify what processes retain read or write intent such as to prevent 'Safely Remove Hardware'
I've mostly been testing the Process Manager on my desktop since the Windows Explorer plugin FolderSize for pre-Vista Windows predictably locks removable storage devices in this way.

The antivirus softwares that I use are pretty innocuous (avast! for XP, AVG for Windows 7).  By default they don't scan removable media upon mounting; however, avast! does scan applications if I show a possible intent to execute them from the removable storage (mouse-over in Windows Explorer). I haven't tested to see if AVG does this, but neither of them are set to be proactive enough to prevent 'Safely Remove Hardware' from working.

 

by: BigSchmuhPosted on 2009-11-14 at 00:33:07ID: 25819825

I was not enough accurately giving you the instructions:
-Use Process Explorer / Find menu / Find handle or DLL feature
-Search for the USB drive letter as in "E:\"
-List here the process you found
==> All those process having a handle on E:\ may AVOID thesafely remove function

We'll discuss of this after you post the results here...

 

by: nbanyanPosted on 2009-11-16 at 20:37:53ID: 25836914

On the old version of Process Explorer that I was running, the find feature didn't work.  I downloaded the new version and it actually returned some process names. The one process it shows accessing my usb drive on my destop (drive M) is

Process: FolderSizeSvc.exe
Type: Handle
Handle: M:\

This is after mounting the drive, viewing the drive in Windows Explorer (which triggers FolderSize to display the size of the folders), then closing Windows Explorer.
I've tried using this find feature on my laptop for both USB drives and flash cards, but since I've been checking with Process Explorer (or SafelyRemove) I have yet to find a case where 'Safely Remove Hardware' wouldn't work when it should (FolderSize doesn't work on Vista or Windows 7).  Of course, since I'm not on a road trip right now, it's unlikely for me to encounter the problem in my initial post in the near future.

Is there a way to run the Process Explorer's search command via the command line (to streamline searching for processes that are accessing any removable media)?

Sorry, it seems that one answer leads to more questions.  As for the original question, I think I've a few better ideas as to the possible cause but I'm unsure how I would go about testing for them.  
Write caching is still disabled for removable drives on both my computers; however, write caching was enabled on internal hard-drives of both my computers.  I thought I disabled it on my laptop, but that must have been before installing Windows 7.  

 

by: BigSchmuhPosted on 2009-11-17 at 02:13:45ID: 25838322

Uninstalling the "Folder Size for Windows" utility would ALLOW your Safely Remove feature to WORK AGAIN !

 

by: nbanyanPosted on 2009-11-18 at 23:23:16ID: 25858199

FolderSize is usefull, but it's old and in need of recoding.  
Thanks for all your help

 

by: nbanyanPosted on 2009-11-18 at 23:38:21ID: 31651520

While the final solutions centered around identifying processes that prevent safe removal of storage devices instead of the potential causes of data loss when dealing with power-save states, the problem situation described in the original question was poorly documented and the proposed solutions where of expert quality given the information provided.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...