Solved

How to boot to a previous hibernation (W2K, XP)

Posted on 2003-10-27
7
419 Views
Last Modified: 2012-05-04
My original problem was, that my game crashed while saving (it is a very popular soccer management game, and the savegame is over 240MB). Of course the save file became corrupted and i have to throw it away (I played the game for more than a year, so I was a bit disappointed...)

Before the crash, my XP was in a hibernate state. So I thought, that if I find a way to boot the computer using the same hibernation file, I could get back my game running, thus I could save it again, hoping it would not crash again.

I hibernated the system again, then booted another XP on another hard disk, changed the freshly created hiberfil.sys to the one, which was created before the crash, modified the file dates, and started the originial XP. Unfortunatelly it was booting normally, not resuming from hibernation.

So, my questions are

1. How Windows decides that it has to use the hiberfil.sys?
2. How can I change the hiberfil.sys?

Thanks in advance
0
Comment
Question by:kisgeza2
  • 2
7 Comments
 
LVL 49

Expert Comment

by:sunray_2003
ID: 9627614
Whenever you do hibernation, windows automatically writes the data from RAM to this file . This file is present in the root folder


Why do you want to change this file . If you want to get rid of this file , You can remove this file by disabling hibernation, which is by Control Panel, Power Options, Hibernate tab


Sunray
0
 

Author Comment

by:kisgeza2
ID: 9627855
I have saved a memory image (hiberfil.sys) from a previous hibernation, and I want to restore my computer to that state. I assumed, that the solution is easy, all I have to do is to hibernate the computer and replace the newly created hiberfil.sys with the old one. But this just don't work.

KisGeza
0
 

Author Comment

by:kisgeza2
ID: 9633140
the hiberfil.sys has a 160 byte header which is cleared during the boot process.
the actual memory dump begins at 0x1000.

does anybody knows anything aboout this header part?
0
 

Accepted Solution

by:
JJuett earned 130 total points
ID: 9651532
Try this:
1. Hibernate your system
2. Boot the other XP installation on the other HDD
3. Copy the \hiberfil.sys just created in step 1 to a working directory somewhere
4. Create a working copy of the hiberfil.sys file you want to restore (don't use the actual file you want to restore, just in case it goes wrong)
5. Using a HEX editor of your choice that is capable of handling such large files (it may take a long time to open/save such a file), copy the header info from the new hiberfil.sys to the working copy of the one you want to restore
6. Put the working copy of your hiberfil.sys in place and test resuming your system from it.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now