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: Moving Paging File to another Partition

07 Nov 2011   #11
MilesAhead

Windows 7 32 bit
 
 

I've run into that before. I made a small page file on another partition so that I could delete the one in the system partition and defrag. The system switched me to using the page file on the other partition, but it didn't delete the current one. It was some time ago so I forget how I got rid of it. Maybe took ownership and changed attributes or something.

They should really change that dialog. I don't know how many times I've switched the paging from system control to user control, clicked all the Apply and OK buttons, only to go back in and see the new setting didn't "stick." Sometimes it takes setting it like 3 times before it stops reverting to the default.


My System SpecsSystem Spec
.
07 Nov 2011   #12
rubyrubyroo

MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade
 
 

the pagefile in use should change size over time, but i'd be leary of removing the other with that explination. I believe theres a key in windows registry that purges the curent page file and starts a new one upon reboot, i thought it would be mentioned in that tutorial, but, that might prove helpful in the future.


glad to contribute,
mike
My System SpecsSystem Spec
07 Nov 2011   #13
Pete4

win7hp64
 
 

did you try to delete extra page file? if the file is in use (active page file), it won't let you delete it, if it's not in use then it's all garbage and you should be able to delete it after going thru permission hoops. I did this (move page file to another hard drive) under xp and don't remember exactly now, but I think I needed to remove it manually.
My System SpecsSystem Spec
.

07 Nov 2011   #14
rubyrubyroo

MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade
 
 

Quote   Quote: Originally Posted by Pete4 View Post
did you try to delete extra page file? if the file is in use (active page file), it won't let you delete it, if it's not in use then it's all garbage and you should be able to delete it after going thru permission hoops. I did this (move page file to another hard drive) under xp and don't remember exactly now, but I think I needed to remove it manually.
hey Pete,
I'd be careful using the ability to delete one of the pagefiles as a "test" of sorts. The second copy may be active too?! True it should restrict th deletion of an active pagefile, but it may the inactive one may also be unable to be deleted due to its protected status. I would think if the process would remove the restrictions, it would simply remove the file at the same time. Seems reasonable enough, right? As i mentioned, the pagefiles could simple be observed at say 3 point of time maybe 5-10 min apart and surely one will be dynamically resizing (if not stress the system memory with a handful of open browsers or photoshop sized apps)

Mike
My System SpecsSystem Spec
07 Nov 2011   #15
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by rubyrubyroo View Post
the pagefile in use should change size over time, but i'd be leary of removing the other with that explination. I believe theres a key in windows registry that purges the curent page file and starts a new one upon reboot, i thought it would be mentioned in that tutorial, but, that might prove helpful in the future.


glad to contribute,
mike
After reboot and one checks the settings, it should point to the new page file, the old one should be gone. Doesn't always happen though. Sometimes you end up with the new page file in use, the old one sitting taking up space. I believe in XP you could just delete it from the Owner account. But in Vista and later if you're in that position you need to take ownership yadda yadda.
My System SpecsSystem Spec
07 Nov 2011   #16
rubyrubyroo

MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade
 
 

thats basically what I'm implying.... the second pagefile has the however unlikely potential, to be "open" for read/write ops thinking it is the real page file, although windows is merely interacting with the true file, whatever method it uses to keep track of the location(s) of page file(s) may flag it as such. making it tricky, like in the game "operation" only instead of a red nose bulb and buzzer, it is hooked up to who knows what virtual memory management services/processes. So I'd do all I could to maybe even "trick" windows into deleting it (maybe switch it to the second drive, reboot, then put it back on the first, and reboot) - type of trick, just realize it's possibly fire your messin' with!


EDIT: and can a protected file be taken ownership of? assuming it still holds this status.
My System SpecsSystem Spec
07 Nov 2011   #17
rubyrubyroo

MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade
 
 

the reg key I was referring to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown = 1

will purge the pagefile during reboot

zero is the default state ( i believe it resets itself after the purge, but might want to double check it is set back to 0 )


Mike
My System SpecsSystem Spec
07 Nov 2011   #18
thenoo

Windows 7 Home Premium x64
 
 
Attempt to Move Page File (Continued!)

I decided to re-start this attempt from a position which existed before my efforts described in this thread,

I achieved this by using a previously created Restore Point of my C Primary Partition to return to a previous state of the PC.

The PC has 2 hard drives DISK0 and DISK1

DISK1
This is partitioned into 2 Volumes:- C: Boot (Primary) & G: a Logical Drive

DISK0
This is partitioned into 2 Volumes , both Primary Partitions D: & F:

I now notice that there is a Page File in both the C: drive and also in the D: Drive.
This was something I did not notice before.

What I want to do is remove the page file from the C: Drive in order to keep any Image File created of this drive as small as possible.

Is this a possibility considering that there exists 2 page files ?
My System SpecsSystem Spec
07 Nov 2011   #19
Sub Styler

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by rubyrubyroo View Post
the reg key I was referring to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown = 1

will purge the pagefile during reboot

zero is the default state ( i believe it resets itself after the purge, but might want to double check it is set back to 0 )


Mike
This option will not delete the page file but simply write over all the bits in the file with 0's so data recovery cannot easily be performed on the page file and a picture of what the machine was last used for cannot be constrewed.

This will significantly slow down your shutdown time and is recommended for use by Gary Glitter!

Please note the new pagefile will be created immediately but in the case of selecting to remove an existing one the system will need a restart. It usually works for me first time.

As for the dynamic resizing, I effectively disable this by setting the max and min to the same value, I just ensure that value is high enough (3GB on my system).
My System SpecsSystem Spec
07 Nov 2011   #20
rubyrubyroo

MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade
 
 

alright, so 1 system partition? multi win partitions, mixed OS's.

If, as I had previously believed, C: is sys/boot part. : windows 7 (sole OS). and D: is going to be page file space to roam, then you have 2 active pagefileS for the C: win7 sys and you just need to remove the original C: default location pagefile.sys file leaving ONE pagefile on D:

am I understanding in any capacity ?


mike

......yes...no...maybe so
because I can easily spew forth an answer.......
My System SpecsSystem Spec
Reply

 Moving Paging File to another Partition




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Removing Win 7 system file use of paging file
Hello the Forum, I have not found, but would guess there is a registry method for turning off Windows 7 use of the paging file for system files. I have 24G ram, but win 7 immediately offloads to the paging file before I even run any applications. Not trying to stop Win 7 from paging programs and...
General Discussion
Windows 7 keeps moving my paging file back to C drive
So I see many many threads in here about how to move a paging file to a different drive and change its size. My question is, how do you force windows to keep those settings and not set them back to default. For about a week now I've been trying to get my paging file to stay on my HDD instead of...
Performance & Maintenance
Moving boot partition from file HD to system HD
I have two Hard drivers on my computer see the disk manager shot. http://img31.imageshack.us/img31/9360/94988045.png The RAW partition on the first HD i'm not sure what it is. At first i had XP on the computer, then i updated to Win7 32bit, then i installed win7 64 bit and deleted the win7...
Installation & Setup
Paging File
When I go to boot up the computer sometimes it states that my computer has made a temp paging file. Doesn't tell me where, it side it did. I have a RAM Disk installed which I've told the paging file to go to, to include my temp files. I've done this because I have an SSD.
Performance & Maintenance
Moving Page File to another partition - Safer? Faster?
Is it a good idea to create a 10GB partition and use it solely to place page file? And then disable pagefile and use Eraser to securely free wipe the partition? Would this get rid of the contents inside pagefile for good? And does the speed and performance be affected if pagefile is in another...
Performance & Maintenance
Paging File
When my system boots I get a message that there is no paging file and windows will set a tempoary one. I have 4 gigs of ram so I go through the procedure of setting a page file size and reboot after which I get the same message. Can someone tell me what I must do to correct this? Thanks, Bob
Performance & Maintenance


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 05:14.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App