Hibernation protecting other disk??

  • Thread starter David Jones vpac org>
  • Start date
D

David Jones vpac org>

Situation:
Image using HORM
EWF RAM/Reg C:
===================

With EWF C: enabled aand HORM enabled:
-Run app (image capture)
-Hibernate and resume
-App still running OK.
-Add files to non system disk (ie D:\) and to C:\ (System and protected drive)
-Restart using resume
-New files on C drive gone (OK)
-New files on D drive don't show

-If I turn off HORM though the new files show on D drive!!
=============
We want to use HORM to protect the system and apps as well as to quickly
resume to a running state. But want to be able to save captured data to the
2nd disk from apps.
Any ideas? HORM should have any impact on 2nd drive ???

=============
David Jones
Software Developer
(Embeddded Systems)
Victorian Partnership of Advanced Computing
Melbourne, Victoria Australia
 
S

Sean Liming \(MVP\)

David,

You are running into the big problem with HORM - more specifically
hibernation. The Hiberfil.sys stores the partition table for all drives.

For example, connect a USB flash disk to a laptop. Hibernate the laptop.
Remove the USB flash disk, put the USB flash disk in another computer, and
add some files. Put the USB flash disk back in the laptop and resume from
hibernation. The files added to the USB flash disk are gone. When the
hiberfil.sys file is restored, the partition tables get restored, thus you
loose data. To get around this you have to create an application that first
dismounts the drive you want to preserve data, then the system can go into
hibernation.

MSDN has an example of this:
http://msdn2.microsoft.com/en-us/library/aa940916.aspx

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
 
D

David Jones vpac org>

Thanks Sean.
I owe you another beer when we next meet again!

I had guessed that a dismount/remount might be needed.

I also found the following GUI app for HORM that addresses this issue.
Haven't tried it though.
http://www.wechslernet.com/english/HMLite.htm

But for our situation we need to do it programmatically, as per your links.

Cheers
--
David Jones
Software Developer
(Embeddded Systems)
Victorian Partnership of Advanced Computing
Melbourne, Victoria Australia
 
D

David Jones vpac org>

Thanks for those links.
--
David Jones
Software Developer
(Embeddded Systems)
Victorian Partnership of Advanced Computing
Melbourne, Victoria Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top