How to change the location of hiberfil.sys ?

QuickeneR
QuickeneR used Ask the Experts™
on
Since I have several copies of several OSes installed, I try to minimize the required disk space. One way is to share the swap files. While pagefile.sys can be easily relocated to an arbitrary (formatted) drive, hiberfil.sys only resides on the system drive.
Is there any way of moving it to another place ? (it seems to be bound to reside in the root directory, though)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2007
Commented:
Probably not, although I would search the registry and see if it shows up there.

I hope this helps !

Author

Commented:
2 SysExpert
Unfortunately, all the occurencies of the file name in the registry list it to be excluded from backups. The name '\hiberfil.sys' is hard-coded into the OS executables. But since the system can be installed onto any drive, there must be a way of fooling it into putting the file onto another drive. Much patchwork, I guess :-(

Author

Commented:
2 SysExpert
Unfortunately, all the occurencies of the file name in the registry list it to be excluded from backups. The name '\hiberfil.sys' is hard-coded into the OS executables. But since the system can be installed onto any drive, there must be a way of fooling it into putting the file onto another drive. Much patchwork, I guess :-(
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Just turn off hibernation and the file will go away. Hibernation is really bad for hard drives anyway. It is better to leave your PC on and shut off the monitor.

Larry

Author

Commented:
2 haydes007
Thanks, but the question is how to move this file, not how to get rid of it.
I am aware of that QuickeeneR, I was simply passing along advice. I never said you had to follow it :)

Larry
Top Expert 2007

Commented:
Well, If you want to try doing some hex editing on the hard coded file names, this might work, as long as the filename length with path does not excess the length now.

There are a number of good free search and replace tools that will do this for you.

WinGrep does not fill one of my requirements. I handles only single searches.
http://www.bossi.com/utility/mrsr/file_set.html

http://www.vknoware.com/afr/index.htm
http://www.funduc.com/srfeatures.htm

http://www.geocities.com/zurob/tessera/sr/index.html#Intro


 I hope this helps !


Author

Commented:
Patching the kernel is not worth the disk space. Besides, it seems this is going to be a code patch, not only data. (This is because ntldr only knows one partition - the system one - at boot time). I thank everyone for the efforts.

Since EE admin suggests that negative answers should be counted, I will accept one.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial