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   #1
alphaniner

Windows 7 Professional x64, Arch Linux
 
 
Imaging via MR Rescue Media not skipping pagefile & hiberfil

I'm using Rescue Media created by Macrium Reflect Free 6.1.1311 to image a Windows 7 install. I installed to the entire disk so I have the 100MB Reserved partition and the OS partition consuming the remainder. When I select the entire disk for imaging, 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.
The only non-standard option I chose was setting compression to none. I've never used MR before; any suggestions or ideas what I'm doing wrong? Thanks.


My System SpecsSystem Spec
.
31 May 2016   #2
townsbg

Windows 7 pro 64-bit
 
 

I'm not sure what MR is however the only thing that comes to mind is to disable hibernation and pagefile before doing the backup because disabling them gets rid of those files. I never keep hibernation enabled. Disable The Page File And Hibernation - Can You Get More Space Or Speed From Your SSD?
My System SpecsSystem Spec
31 May 2016   #3
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, 64-bit
 
 

Alpha:

I'm using Reflect Free 6.1.1225 and have always used default medium compression.

How did you find those files---with a DIR command?

I just ran dir /s pagefile.sys and found nothing within 3 different images I've made in the last month or so.

I have no idea what standard behavior is supposed to be--I've never checked before.

I don't use hibernation, so would not expect to find that file in an image. I do use a page file however.

I don't have a System Reserved, but I certainly wouldn't expect that to make a difference.

Did you have this issue in prior MR builds?
My System SpecsSystem Spec
.

31 May 2016   #4
alphaniner

Windows 7 Professional x64, Arch Linux
 
 

@townsbg
Oops, MR = Macrium Reflect. OP updated.

I probably would have done as you suggest if it hadn't explicitly indicated it would skip them. I only needed to make a few temporary images so it's not worth special effort, and disabling hibernation isn't an option in this particular case.

@ignatzatsonic

I've never used MR before. I initially noticed "something was amiss" because the size of the first image was the same as the used space on C:. I mounted the image and both files were there. It's significant because the files are 24 & 32 GB (default settings). I tried medium compression the second time around and the files were still stored, but at least the image was significantly smaller (13GB vs 70GB) and the process was faster.

I guess I'll register on MR forums. I hate making new accounts, but if nothing else it should be reported in case it's a bug.
My System SpecsSystem Spec
31 May 2016   #5
mjf

Windows 7x64 Home Premium SP1
 
 

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.
My System SpecsSystem Spec
31 May 2016   #6
alphaniner

Windows 7 Professional x64, Arch Linux
 
 

I assume you're not inquiring after their contents.

Their sizes are 24 & 32 GB, and they're not sparse files or such. The proof is in the backup: an uncompressed image of the disk (C: and Reserved) is ~70GB, and C: has ~70GB used.
My System SpecsSystem Spec
31 May 2016   #7
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

On the Macrium Forum they say the hiberfil.sys and pagefile.sys are empty in the image file, if it is created while running Windows.
I don't believe this.
I browsed a MR image in Windows, copied the pagefile to a temp folder, opened it with notepad, and i see data in the file.

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.

I just added keys to exclude these files and created an image.
When i browse that image, the files are not there, and the mounted image is several GB smaller than the drive i just imaged.

Here's a couple Macrium threads about this:
Macrium Support Forum - Hiberfil.sys and Pagefile.sys
Macrium Support Forum - Pagefile being included?
My System SpecsSystem Spec
31 May 2016   #8
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Quote   Quote: Originally Posted by ignatzatsonic View Post
Alpha:

I'm using Reflect Free 6.1.1225 and have always used default medium compression.

How did you find those files---with a DIR command?

I just ran dir /s pagefile.sys and found nothing within 3 different images I've made in the last month or so.

I have no idea what standard behavior is supposed to be--I've never checked before.

I don't use hibernation, so would not expect to find that file in an image. I do use a page file however.

I don't have a System Reserved, but I certainly wouldn't expect that to make a difference.

Did you have this issue in prior MR builds?
To see these files you would have to temporarily change your Explorer folder options to show hidden and protected files.
My System SpecsSystem Spec
31 May 2016   #9
alphaniner

Windows 7 Professional x64, Arch Linux
 
 

Thanks for the links. From the second link, this is a known issue for years it seems. Seems like that's my solution.

An empty file (nothing but zeroes) should compress quite spectacularly, so it's not a terrible solution I suppose. It could be the file you looked at just had a small "header" of data and the rest was empty. In any case I'm only interested in the Rescue Media, which despite the issue is pretty impressive. I'm kind of curious if those keys can affect the WinPE environment.
My System SpecsSystem Spec
31 May 2016   #10
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

It's my understanding the PE environment can't use the reg keys, so the registry tweak will only work when creating the image while running Windows.

I could see enough in the pagefile with Notepad to know it's not just header info.
Most of it is unreadable, but some parts do display as readable text.
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 12:12.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App