Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Imaging via MR Rescue Media not skipping pagefile & hiberfil

31 May 2016   #11
RolandJS

Windows 7 Professional 64-bit
 
 

"...There is a way to exclude files from being included in an image created while running Windows. It requires adding some registry keys. If anyone wants to see the reg keys, let me know and i'll post it..." DavidE
Can I have the registry keys?


My System SpecsSystem Spec
.
31 May 2016   #12
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I do see pagefile.sys in my MR backups but it's just a small one as I've got the page file for windows swapped to another partition. I don't think that backing up the page file can be important as when I restore an image everything works without the missing non backed up (swapped partiton) page file. Also I have page file set to clear every shutdown anyway!
Imaging via MR Rescue Media not skipping pagefile & hiberfil-mr-pagefile.jpg
Page file swapped to drive D and not backed up when creating a MR backup of windows partiton. Everything still works.
Imaging via MR Rescue Media not skipping pagefile & hiberfil-virtual-memory.jpg


My System SpecsSystem Spec
31 May 2016   #13
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Quote   Quote: Originally Posted by RolandJS View Post
"...There is a way to exclude files from being included in an image created while running Windows. It requires adding some registry keys. If anyone wants to see the reg keys, let me know and i'll post it..." DavidE
Can I have the registry keys?
Here you go.
I added the reg keys of David-pagefile and David-hiberfil.
You can name the keys whatever you like, or add keys for any other files you want to exclude.

The keys are in HKLM\System\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshotMacriumImage

Windows rebuilds the pagefile and hiberfil every time it starts up, that's why they aren't needed in a backup image.

Imaging via MR Rescue Media not skipping pagefile & hiberfil-macriumexcludefiles.png


My System SpecsSystem Spec
.

31 May 2016   #14
mjf

Windows 7x64 Home Premium SP1
 
 

Quote   Quote: Originally Posted by mjf View Post
Quote   Quote: Originally Posted by alphaniner View Post
the resulting image contains both hiberfil.sys and pagefile.sys. This is despite using the "Intelligent Sector Copy" method which explicitly says
Windows pagefile and suspend to disk (hibernation) files are not copied.
When you mount the image are these empty? If not then I am surprised.
Looks like I'm wrong. I mounted a Macrium image and this is what I get for my pagefile. I have restricted it to 2GB because I'm running an SSD and I have deleted the Hyberfil.
Imaging via MR Rescue Media not skipping pagefile & hiberfil-capture2.jpg


My System SpecsSystem Spec
01 Jun 2016   #15
RolandJS

Windows 7 Professional 64-bit
 
 

DavidE, I moused over your informative post, downloaded the png pic, can't find the two key files
Callender, tell me more about your page & hiber files operations! Has such made Windows more stable?
My System SpecsSystem Spec
01 Jun 2016   #16
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Quote   Quote: Originally Posted by RolandJS View Post
DavidE, I moused over your informative post, downloaded the png pic, can't find the two key files
You have to manually add the keys for pagefile and hiberfil using regedit.
The RestorePoints key should already be there, Macrium added that, not me.
My System SpecsSystem Spec
01 Jun 2016   #17
alphaniner

Windows 7 Professional x64, Arch Linux
 
 

Quote   Quote: Originally Posted by Callender
Also I have page file set to clear every shutdown anyway!
I'm aware of the possibility to zero the pagefile on shutdown for security purposes. Is that what you're talking about, or do you mean it's actually removed?
My System SpecsSystem Spec
01 Jun 2016   #18
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by RolandJS View Post
DavidE, I moused over your informative post, downloaded the png pic, can't find the two key files
Callender, tell me more about your page & hiber files operations! Has such made Windows more stable?
Hibernation is disabled so hiberfil.sys doesn't exist anyway. Page File is fixed size and swapped to a non windows partition. That's nor recommended by most experts here but it works for me. I should state that I also use a RAMdisk. Some things have been disabled like Superfetch (not needed with RAMdisk)

Pretty much everyone will tell you that there's no benefit in a page file swap unless you use a second hard drive for the swap. However I do personally find performance seems to be much better simply by swapping it to another non windows partition.
My System SpecsSystem Spec
02 Jun 2016   #19
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

A fyi followup to my POST #7

I've been testing the MR Registry Exclusions for pagefile and hiberfil and found a little gotcha.
If the partiton being imaged does not have a drive letter, the exclusions are not used, these files are included in the backup image.
If i temporarily add a drive letter, then run Macrium and create the backup image, these files are not included.
I have multi-boot PC's and normally my non-boot OS's don't have a drive letter.
I don't think this affects most people that have a single boot PC and the only drive being imaged is the "C" drive.

For me it means a several GB difference in space used for backups.
It's not causing an error for me if the drive letter is assigned or not.
It does make a big difference in the backup image size.
ymmv

Also, i've tested exporting my reg keys and merging them on a different PC/OS.
So far, no problems here and they work for me.
I can post my reg key export, if anyone wants it so they can merge this, and test it.
Then you wouldn't have to manually add these reg keys.

It has all sub keys under FilesNotToSnapshotMacriumImage, including the default RestorePoints key.
I make no guarantee that this will work for anyone else.
Make sure you can recover before making any changes !!!
My System SpecsSystem Spec
Reply

 Imaging via MR Rescue Media not skipping pagefile & hiberfil




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Is hiberfil.sys always on the same partition as pagefile.sys?
Is hiberfil.sys always automatically on the same partition as pagefile.sys? If not: How can I tell Win 7 that it should be this way? Or alternatively: How can I tell Win 7 that hiberfil.sys should be on partition D: ? Peter
Installation & Setup
Unmoveable System Files other than pagefile and hiberfil?
I am trying to shrink a C:\ partition on a Dell R14 laptop running W7 Home Premium 64. I moved the pagefile to D, removed hiberfil.sys, and there are still files way out at 200GB somewhere in a folder, unmoveable by Perfect Disk. No Restore points; System Volume Information is empty. What...
General Discussion
PageFile.sys & Hiberfil.sys - Delete Safe?
Hello SF, I just do a drive clean-up (Deleting some junk files to free some space on my HDD) I managed to see the HD stats what files did takes a lot of space in it using WinDirStat app... I removed some games that I no longer played in a while and some backup files that already made a...
Performance & Maintenance
How can I securely delete pagefile.sys and hiberfil.sys?
I run Windows 7-64 bit Home Premium and work on encrypted containers with TrueCrypt. I'm afraid that such sensitive information (including passwords) may be unencrypted on pagefile.sys or hiberfile.sys. How can I securely delete both of these files? I know there's a method in Windows 7 to delete...
General Discussion
Win7 Memory hog pagefile and hiberfil?
Hey guys i just recently installed windows 7 bootcamp on my new macbook pro, the hard drive isnt bit (100gb) so i notice right away when a nice chunk of my memory is gone, 4gb to pagefile.sys and 3gb to hiberfil.sys, do i need them can i delete it? thanks.
Performance & Maintenance
pagefile.sys & hiberfil.sys
Hi all, not sure if this is the correct spot for this question but I'll shoot anyway. I've just installed Windows 7 Ultimate using a 50GB partition on my Mac hard drive. I thought this was more than enough room for the OS, but as it turns out I only had 15GB of free space after the installation. I...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:07.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App