Fog svn trunk not removing pagefile and hibernation file during image capture
-
Has anyone noticed that Fog Trunk is no longer deleting these two files during the image capture process? I’ve been having to manually delete the files before saving out. Is there a setting I’m missing somewhere where I have to re-able this option?
I’m currently running the following:
Running Version: 8599
You are not running the most current version of FOG!
You are currently running version: 8599Latest stable version is 1.2.0
Latest svn version is 5947
Latest git version is 1.3.0-RC-7
Kernel Versions
DefaultMember
bzImage Version: 4.6.2
bzImage32 Version: 4.6.2 -
So I found the issue, and yes it was not working right. There is a setting in the system that is supposed to use FOG_CAPTUREIGNOREPAGEHIBER but the value never got updated in the DB so it would always return false.
I’ve fixed this in the schema and it will be available for RC-8.
-
This post is deleted! -
So you’re not running any of the RC versions? Hibernation is deleted but not in the same fashion.
Also, what makes you think it’s not removing these files already? When the system reboots, they’ll be recreated anyway.
-
I would suggest doing that as it’s what I do on my images.
Deleting Hiberfile.sys
I have a first logon script that reenables it so that I don’t have to waste space storing a file that might or might not be the same size on any machines I deploy my image to. -
So I found the issue, and yes it was not working right. There is a setting in the system that is supposed to use FOG_CAPTUREIGNOREPAGEHIBER but the value never got updated in the DB so it would always return false.
I’ve fixed this in the schema and it will be available for RC-8.
-
Great! I’m glad you were able to address it. I’ll be sure up to update to the latest release so I don’t have to worry about that extra step!
-
The best way to delete hiberfil.sys is to disable hibernation in Windows:
- Go to Start menu, type “cmd” open up command prompt
- Type “powercfg.exe -h off” [make sure you are an Administrator]
- ENTER
- Type “exit”
- ENTER
- RESTART YOUR PC and you are all set
After the restart, you should be able to see more free space on your hard drive.
This generally works for 90% of the time but if it doesn’t work for you then you can refer to other available methods.