I would like to know exact instructions for moving the page file from 1 disk location to another disk in Windows 7. I.e. from an SSD to a non-SSD drive.

I've spent about two hours searching - Google, Bing, Blekko - and read many forums. Please don't post philosophical discussions on speed increases or why its a bad idea to disable paging.

I'm looking for a concise answer on how to move the page file.

link|improve this question

Added tags. I would just clarify for anyone reading this who's confused what JL is talking about that this hasn't been, to my knowledge, called a "swap file" since Win9x - it's "page file" under Windows NT. – Shinrai Jan 25 '11 at 22:27
I've modified the question accordingly. – Randolph West Jan 25 '11 at 22:58
1  
@Randolph - Aww, foo, I kinda like the older nomeclature. :) – Shinrai Jan 25 '11 at 23:25
possible duplicate of Change the volume the windows page file is on – Mokubai May 8 at 21:24
feedback

4 Answers

up vote 13 down vote accepted

(Sorry, no screenshots.)

To change page file settings in Windows 7:

In the Start Menu search box, type "Advanced System Settings" and choose the Control Panel applet that should show up, "View advanced system settings"

Under "Advanced" tab, "Performance" section, click "Settings..."

Under "Advanced" tab, "Virtual Memory" section, click "Change..."

These are the actual settings. Uncheck "Automatically manage paging file size for all drives" and you can change these settings. Highlight the drive you want it on, and select either a fixed size or system managed size, and then click "Set". YOU HAVE TO CLICK THE SET BUTTON. Do the same to remove it from the drive you don't want it on. ("No paging file".)

Click OK, OK, OK, and you should be prompted for a reboot.

link|improve this answer
2  
Unless things have changed with Vista onwards, I think you still need a small pagefile on C: for BSOD minidumps to be made. – paradroid Jan 26 '11 at 1:49
@paradroid - I think you may be correct (I don't ever recall hearing that that changed) but the OP specifically requested no philosophical discussion. I personally would keep paging to the SSD if it were me! – Shinrai Jan 26 '11 at 15:15
feedback
  • Control Panel, System
  • Advanced System Settings
  • Advanced Tab
  • Settings button under Performance
  • Advanced Tab
  • Change button under Virtual Memory

enter image description here

  • On your SSD drive, change the option to "No Paging File".
  • Click Set.
  • On your Hard Drive, set the option to either Custom Size or System Managed Size.
  • Click Set.
  • OK and reboot.
link|improve this answer
Comment by @whizkid: mtone's answer describes it all. When you move the page file, note that you turn off page file on a partition and turn it ON on another. (Hope you do not expect any data residing on it to be moved too, coz thats not going to happen). – Ivo Flipse Jan 26 '11 at 0:14
feedback

If you want to completely remove the pagefile from your system drive, you will need one extra step to Shinrai and mtone's answers. As a comment by paradroid mentions, Windows requires to have a pagefile present on your system drive in order to write kernel memory dumps in the event of a crash. So even if you set "No pagefile" on your system drive, Windows will end up creating a pagefile anyway, even if it doesn't actually use it for paging. Trying to delete this pagefile will show it to be in use.

In order to work around this, you have to disable kernel memory dumps, which is also done by going through the advanced system settings.

Under the "Advanced" tab, in the "Startup and Recovery" section, click "Settings..."

In the dialogue box that comes up, under the "System failure" section, and the "Write debugging information" subsection, change the drop down menu to "(none)".

After this, you should be able to delete the pagefile.sys from your system drive (although you might need to reboot first).

link|improve this answer
feedback

@paranoid you are correct, You need a paging file on the OS partition; the minimum paging file size for the OS partition is 800MB (e.g.: for Win7 Ultimate 64bit). ...This could vary, but Windows will tell you if you set it under the recommended size.

  1. Follow the instructions already posted to set the paging file on the alternate drive.
  2. Then set a small paging file on the OS partition to accomodate the minidumps and BSOD:
    • If you don't set a paging file on the OS partition, every time you boot Windows will create a temp pagefile.sys the same size as your installed physical RAM.
    • So, if you have 16GB of physical RAM, the temp pagefile.sys will be created at 16,308MB (which is a decent chunk out of your System partition).

I recommend researching a bit for anyone who plans on changing paging file settings on a system where lost work could be critical.

link|improve this answer
If saving space on the OS partition is your goal you can also eliminate the hyberfile.sys file by turning off Hybernation via CMD prompt. instructions here: Delete hyberfile from system drive and Turn Off Hybernation – D-Wa Nov 16 '11 at 21:13
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.