Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|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. – user3463 Jan 25 '11 at 22:58
@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 '12 at 21:24
up vote 87 down vote accepted

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..."

enter image description here

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

enter image description here

These are the actual settings.

enter image description here

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.

share|improve this answer
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
@Shinrai But the usb flash drives does not exist there . any solution for that ? – Omid Kosari May 7 '13 at 6:22
@OmidKosari - That's by design, you should not be paging to removable drives because, hey, what happens if they're removed? You can use ReadyBoost if you REALLY want something like that, but it typically doesn't help much in my experience. (I'm also not sure what this has to do with the topic at hand, which is REMOVING page already should have no paging file on a flash drive.) – Shinrai May 7 '13 at 16:06
@Shinrai… – Omid Kosari May 8 '13 at 6:20
  • 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.
share|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

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).

share|improve this answer

@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.

share|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

I noticed that several people may be misinterpreting the Windows recommendation and statements. The fact is, (as someone had said early in the topic), you can improve your systems performance by moving the Page File to a different physical drive.

I have 5 drives in my computer, (2 500GB SSD's and 3 1TB HDD’s), and have moved the Page File from the 500GB SSD O/S Drive, to my most "immediate" HDD media drive. That drive is the one that meant to take 95% of the programs I have installed as well as my Pics and Docs files.

Programs like Adobe Acrobat X, CS 6 Extended, On One Photo Suite 8, etc. are on that Hard Drive. I've recently added another 1 TB HDD and have now moved the Page file to the new 1TB drive thereby making it just that much easier on the entire process.

The point is to keep the Page File partition but move it to a drive that doesn't have to run often. I can’t say how much work the system does when dealing with Page File data, but every little bit helps. Rich

share|improve this answer

You must log in to answer this question.

protected by Community Jul 2 '15 at 22:34

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .