hibernate file

  • Thread starter Thread starter Randy Harris
  • Start date Start date
R

Randy Harris

Anyone know if there is a way to relocate the hibernate file? I would
like to get it off the C: drive so that it is not included in backups.
 
A decent backup program will allow YOU to choose what to backup.

If you are referring to programs that produce images of your windows
partition (TrueImage or Ghost), the hiberfil.sys and pagefile.sys are not
imaged (backed up). Place holders are inserted in the image so when you
recover an image the new files are placed in the same area on the disk
(supposedly).

--
Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 
Richard,
Repeatedly i have looked for this hiberfil.sys. And now tried finding
pagefile.sys. All searches come up empty.
I have an HP D4100E PC that stopped going into standby/hibernate on it's own
a # of mos. ago.
Various posts on newsgrous mention these files, but I am at a loss to find
them.
When I call HP about this prob. thee only suggestion is to restore pc to
factory settings and start
reloading my progs. 1 by 1 to see what caused this.

Oddly enough though I can manually (w/keybd hotkey) get pc to hibernate,
plus every now and then it seems to
go into standby on it's own. Then at the point it is supposed to go from
standby to hibernate it seems to wake back up.

Obviously there is a prog. someplace contributing to this but I have no idea
which one. Any ideas?
TIA

Richard Urban said:
A decent backup program will allow YOU to choose what to backup.

If you are referring to programs that produce images of your windows
partition (TrueImage or Ghost), the hiberfil.sys and pagefile.sys are not
imaged (backed up). Place holders are inserted in the image so when you
recover an image the new files are placed in the same area on the disk
(supposedly).

--
Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 
* Richard Urban:
A decent backup program will allow YOU to choose what to backup.

If you are referring to programs that produce images of your windows
partition (TrueImage or Ghost), the hiberfil.sys and pagefile.sys are not
imaged (backed up). Place holders are inserted in the image so when you
recover an image the new files are placed in the same area on the disk
(supposedly).

I didn't realize that. Thank you very much.
 
The two files you are looking for are hidden files and are not normally seen
in Windows Explorer, unless you set up Explorer to show hidden and system
files. They are hidden for a reason - so people without experience can not
muck around with them.

It is a known fact that some poorly written device drivers can cause a
computer to not fully enter hibernation or sleep. It will start, and then
terminate before the computer has reached either of the two states. Also,
some of the more active screen savers will do the same thing.

Personally, I go to device manager (to the power option tab of any device)
and turn off any option to allow the device to automatically bring the
computer out of standby - such as the mouse, keyboard, modem etc.

--
Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!



Larry Mauriello said:
Richard,
Repeatedly i have looked for this hiberfil.sys. And now tried finding
pagefile.sys. All searches come up empty.
I have an HP D4100E PC that stopped going into standby/hibernate on it's
own a # of mos. ago.
Various posts on newsgrous mention these files, but I am at a loss to find
them.
When I call HP about this prob. thee only suggestion is to restore pc to
factory settings and start
reloading my progs. 1 by 1 to see what caused this.

Oddly enough though I can manually (w/keybd hotkey) get pc to hibernate,
plus every now and then it seems to
go into standby on it's own. Then at the point it is supposed to go from
standby to hibernate it seems to wake back up.

Obviously there is a prog. someplace contributing to this but I have no
idea which one. Any ideas?
TIA
 
Run command prompt and execute the following commands:

E:\Documents and Settings\andy>cd \

E:\>attrib
A SH E:\hiberfil.sys
A SH E:\pagefile.sys

E:\>dir /ah
Volume in drive E is Windows 2000
Volume Serial Number is 0CC3-B7FD

Directory of E:\

07/22/2006 06:58p 1,073,197,056 hiberfil.sys
07/22/2006 06:58p 2,097,152 pagefile.sys
06/25/2006 01:00a <DIR> RECYCLER
06/11/2006 01:38a <DIR> System Volume Information
2 File(s) 1,075,294,208 bytes
2 Dir(s) 4,545,273,856 bytes free

E:\>

Richard,
Repeatedly i have looked for this hiberfil.sys. And now tried finding
pagefile.sys. All searches come up empty.
I have an HP D4100E PC that stopped going into standby/hibernate on it's own
a # of mos. ago.
Various posts on newsgrous mention these files, but I am at a loss to find
them.
When I call HP about this prob. thee only suggestion is to restore pc to
factory settings and start
reloading my progs. 1 by 1 to see what caused this.

Oddly enough though I can manually (w/keybd hotkey) get pc to hibernate,
plus every now and then it seems to
go into standby on it's own. Then at the point it is supposed to go from
standby to hibernate it seems to wake back up.

Obviously there is a prog. someplace contributing to this but I have no idea
which one. Any ideas?
TIA
 
Richard,
I Have WinExplorer set to display ALL. I figured these were hidden files.
Are these files that only can be found by manually scanning the list of
files?
I try doing a search - programs and files and get nothing.
Afa turning off devices from allowing to take pc out standby, I have only
tried that
w/my dsl modem connection link. And that didn't help.

Afa Andy's suggestion, maybe I missed somethng afa the directories and/or
commands.
My files are on the C drive but when I try entering from the Admin
directory:
C:\Documents and Settings\Administrator

C:\>attrib
A SH E:\hiberfil.sys
A SH E:\pagefile.sys

I get invalid command or format error?
 
The version 7 of DriveImage does backup hiberfil.sys during an image of the
C: partition here.
Verified by checking image file after backup, disabling hibernation and
standby, then backing up again. Bout' 1GB smaller in the latter image file.
The swapfile, not sure of. Keep mine on an alternate scsi hard drive. C:
is on an ide drive.
--
Jonny
Richard Urban said:
A decent backup program will allow YOU to choose what to backup.

If you are referring to programs that produce images of your windows
partition (TrueImage or Ghost), the hiberfil.sys and pagefile.sys are not
imaged (backed up). Place holders are inserted in the image so when you
recover an image the new files are placed in the same area on the disk
(supposedly).

--
Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 
Oops!

Randy. I am in error here, sorry. The hiberfil.sys "is" backed up during the
creation of a disk image. The pagefile.sys is not imaged.

The hiberfil.sys can NOT be moved off to another drive or partition. When
used, it is "the" file that starts your computer. The operating system
expects to find it in the root of Drive C:

If you don't use hibernate, turn it off and the file is automatically
deleted from the drive.

--
Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 
* Richard Urban:
Oops!

Randy. I am in error here, sorry. The hiberfil.sys "is" backed up during the
creation of a disk image. The pagefile.sys is not imaged.

The hiberfil.sys can NOT be moved off to another drive or partition. When
used, it is "the" file that starts your computer. The operating system
expects to find it in the root of Drive C:

If you don't use hibernate, turn it off and the file is automatically
deleted from the drive.

Thanks for the update. I guess I can do a test to confirm. I have been
using Drive Image, but could use Ghost as easily. I'm in the process of
setting up a new system and was dismayed to discover that the images
snapped of my C: drive are well over double the size of the old system.
I suppose I could write a script to disable hibernation (make the file
go away) before doing backups.
 
* Randy Harris:
* Richard Urban:

Thanks for the update. I guess I can do a test to confirm. I have been
using Drive Image, but could use Ghost as easily. I'm in the process of
setting up a new system and was dismayed to discover that the images
snapped of my C: drive are well over double the size of the old system.
I suppose I could write a script to disable hibernation (make the file
go away) before doing backups.

Well, now I'm even more confused. After what you said, and confirmed in
a post by Jonny, I thought it must include the hiberfil.sys. I just
created two images with Drive Image 5, one with a 2GB hiberfil.sys, the
other without. The image files are exactly the same size.
 
Randy Harris said:
* Randy Harris:

Well, now I'm even more confused. After what you said, and confirmed in a
post by Jonny, I thought it must include the hiberfil.sys. I just created
two images with Drive Image 5, one with a 2GB hiberfil.sys, the other
without. The image files are exactly the same size.

The before eliminating hiberfil.sys (hibernation/standby) and after,
resulting images were browsed with DI 7.0's image browser in XP. The latter
does not contain the hiberfil.sys file, the former does contain it with that
file 1GB in size.

You might rephrase that statement and say hibernate/standby was disabled and
in another instance was not. If in one instance included any 2GB file, and
in another not, there's no way the resulting total image files can be the
same size. Am sure that you have more than one image file resulting from
imaging such an XP partition. The files are probably numbered: 002, 003,
and so forth. DI won't eliminate older 002 and so forth extension named
files if saved to the same location either if not written over with a
subsequent image. You may be counting image files that were not pertinent
as total image size.

Switched to 7.0 when found that there may be potential restoration problems
in NTFS based filesystem in XP.
 
* Jonny:
The before eliminating hiberfil.sys (hibernation/standby) and after,
resulting images were browsed with DI 7.0's image browser in XP. The latter
does not contain the hiberfil.sys file, the former does contain it with that
file 1GB in size.

You might rephrase that statement and say hibernate/standby was disabled and
in another instance was not. If in one instance included any 2GB file, and
in another not, there's no way the resulting total image files can be the
same size. Am sure that you have more than one image file resulting from
imaging such an XP partition. The files are probably numbered: 002, 003,
and so forth. DI won't eliminate older 002 and so forth extension named
files if saved to the same location either if not written over with a
subsequent image. You may be counting image files that were not pertinent
as total image size.

Switched to 7.0 when found that there may be potential restoration problems
in NTFS based filesystem in XP.

Yes, you are correct in stating that in one case hibernate was enabled,
and the other it was disabled. I theorize that you did indeed see the
hiberfil.sys with the image browser, but DI is smart enough to keep only
the file information, not the content. Perhaps this is a difference
between DI V5 and V7? The only other plausible explanation, by my
thinking, is that the 2GB hiberfil.sys was compressed to less than 5MB.
That seems improbable, however, though I could prove it by repeating
the test without using compression.

Here are my results:

07/23/2006 01:23 PM 1,224,998,912 hib.002
07/23/2006 01:18 PM 2,147,352,576 hib.pqi
07/23/2006 01:12 PM 1,220,804,608 nohib.002
07/23/2006 01:08 PM 2,147,352,576 nohib.pqi
 
Ok guys, maybe I missed something here. I am running WinXP Pro sp2. I find
neither hiberfil.sys or pagefile.sys.
I go into Search - All Files & Folders.. I even have tried hib*.* And come
up empty. All I get is hibeam win Windows\Cursors and Hibeam.cu in
Windows\I386.

Afa pagefile.sys, I see a pagefile.vb in Windows\I386 and a Pagefileconfig
in Windows\System32
What gives?
 
* Larry Mauriello:
Ok guys, maybe I missed something here. I am running WinXP Pro sp2. I find
neither hiberfil.sys or pagefile.sys.
I go into Search - All Files & Folders.. I even have tried hib*.* And come
up empty. All I get is hibeam win Windows\Cursors and Hibeam.cu in
Windows\I386.

Open a command prompt window - Start->Run then type CMD
In that command prompt window type:

cd /d c:\

The prompt should then appear as:

C:\>

type dir /ah *.sys

you should see something similar to:

C:\>dir /ah *.sys
Volume in drive C has no label.
Volume Serial Number is 1C76-0C9B

Directory of C:\

07/25/2006 08:10 AM 2,145,538,048 hiberfil.sys
07/25/2006 08:10 AM 536,870,912 pagefile.sys

HTH,
 
Ok Randy, Now I have found them via DOS prompt.
I see: 07/25/2006 03:00 PM 2,145,964,032 hiberfil.sys
11/13/2004 07:51 AM 0 IO.sys
11/13/2004 07:51AM 0 MSDos.sys
07/25/2006 02:59PM 2,145,286,496 pagefile.sys

Now what is the /AH directory & why do I not see it in Windows Explorer. I
am set to show ALL.
Now that these files are found is there anything to do w/them? Can they be
viewed in Word or something?


I see Hiberfil
 
* Larry Mauriello:
Ok Randy, Now I have found them via DOS prompt.
I see: 07/25/2006 03:00 PM 2,145,964,032 hiberfil.sys
11/13/2004 07:51 AM 0 IO.sys
11/13/2004 07:51AM 0 MSDos.sys
07/25/2006 02:59PM 2,145,286,496 pagefile.sys

Now what is the /AH directory & why do I not see it in Windows Explorer. I
am set to show ALL.
Now that these files are found is there anything to do w/them? Can they be
viewed in Word or something?


I see Hiberfil


Those are system files. There is no need for you do anything with them.
The operating system (XP) uses them for you "behind the scenes". You
would not be able to view them in Word, or with anything else. There's
nothing in them that you would want to view.

The /ah with the Dir command simply tells the command interpreter to
include Hidden files, which are normally not shown.

In order to see the files in Windows Explorer you would need to go to
Tools->Folder Options->View and select "Show hidden files and folders"
and also uncheck "Hide protected operating system files". But there is
really no reason to do that. There will never be a circumstance where
you will need to see those files in Explorer. They're not shown, by
default, for good reason.
 
Randy Harris said:
* Jonny:

Yes, you are correct in stating that in one case hibernate was enabled,
and the other it was disabled. I theorize that you did indeed see the
hiberfil.sys with the image browser, but DI is smart enough to keep only
the file information, not the content. Perhaps this is a difference
between DI V5 and V7? The only other plausible explanation, by my
thinking, is that the 2GB hiberfil.sys was compressed to less than 5MB.
That seems improbable, however, though I could prove it by repeating the
test without using compression.

Here are my results:

07/23/2006 01:23 PM 1,224,998,912 hib.002
07/23/2006 01:18 PM 2,147,352,576 hib.pqi
07/23/2006 01:12 PM 1,220,804,608 nohib.002
07/23/2006 01:08 PM 2,147,352,576 nohib.pqi

Have you ever restored an XP partition image where the hiberfil.sys is
present, and examined that file afterwards? Does XP hibernate properly
without modifying it?
 
The related message below may help. In short, call Microsoft and
ask "I want the hotfix of KB909095"; MS will send you a free
2.5MB file that fixes the problem.

See below "The reason: ...": Most Hibernation problems in XP
with 1 or 2GB are SOLVED by hotfix KB909095; they are caused by
SP2, that rendered XP unable to update the size of the
pagefile.sys file.

Paris, Thu 17 Aug 2006 15:51:45 +0200


----- Parent Message (links are clickable) -----
From: "Jonny" <[email protected]>
Newsgroup:
news://msnews.microsoft.com/microsoft.public.windowsxp.general
Message:
news://msnews.microsoft.com/eRqajS%[email protected]
Sent: Tue 25 Jul 2006 07:19:52 -0500 (12:19:52 GMT)
Subject: Re: hibernate file

Randy Harris said:
* Randy Harris:
Well, now I'm even more confused. After what you said, and
confirmed in a post by Jonny, I thought it must include the
hiberfil.sys. I just created two images with Drive Image 5,
one with a 2GB hiberfil.sys, the other without. The image
files are exactly the same size.

The before eliminating hiberfil.sys (hibernation/standby) and
after, resulting images were browsed with DI 7.0's image browser
in XP. The latter does not contain the hiberfil.sys file, the
former does contain it with that file 1GB in size.

You might rephrase that statement and say hibernate/standby was
disabled and in another instance was not. If in one instance
included any 2GB file, and in another not, there's no way the
resulting total image files can be the same size. Am sure that
you have more than one image file resulting from imaging such an
XP partition. The files are probably numbered: 002, 003, and so
forth. DI won't eliminate older 002 and so forth extension
named files if saved to the same location either if not written
over with a subsequent image. You may be counting image files
that were not pertinent as total image size.

Switched to 7.0 when found that there may be potential
restoration problems in NTFS based filesystem in XP.
--
Jonny


----- Related Message (links are clickable) -----
From: "Michel Merlin" <[email protected]>
Newsgroup:
news://msnews.microsoft.com/microsoft.public.windowsxp.general
Message:
news://msnews.microsoft.com/[email protected]
Sent: Wed 16 Aug 2006 19:42:50 +0200 (17:42:50 GMT)
Subject: SOLVED by hotfix KB909095 (Hibernation disappears in
XP if 1GB or more)

The reason: The problem is when you upgrade RAM to high size
(1Gb or 2Gb), XPSP2 fails to enlarge accordingly the
pagefile.sys file; attempts to hibernate fail, either before or
after, and cause Windows to temporarily remove Hibernate from
the Shut Down options - but without alterating your personal
Power Profiles. Restart restores Hibernation - thus your
original profiles.

The fix: the hotfix of KB909095, that will be added in XP-SP3,
and that meanwhile you will get for free by calling Microsoft in
your country (2.5MB). Details below.
........................
http://support.microsoft.com/kb/909095
........................
 
It looks like someone's happy he discovered 909095 (which dates from late
2005 and has been mentioned in MS newsgroups since Dec-05). <w>
--
~PA Bear

Michel said:
The related message below may help. In short, call Microsoft and
ask "I want the hotfix of KB909095"; MS will send you a free
2.5MB file that fixes the problem.

See below "The reason: ...": Most Hibernation problems in XP
with 1 or 2GB are SOLVED by hotfix KB909095; they are caused by
SP2, that rendered XP unable to update the size of the
pagefile.sys file.
<snip>
 
Back
Top