Symptom: Every time you boot your Windows 7 machine or access system settings, you receive the following error:
Windows created a temporary paging file on your computer beause of a problem that occurred with your paging file configuration when you started your computer. The total paging file size for all disk drives may be somewhat larger than the size you specified.
Solution: In this case, the page file had grown too large and corrupted itself. I was able to resolve the issue by deleting the pagefile.sys file and having Windows recreate it from scratch. Here are the steps on how to complete this task.
- Click Start, right-click Computer, and select Properties
- In the left pane, select Advanced system settings
- On the Advanced tab, click the Settings button under Performance
- On the Advanced tab, click the Change button under Virtual memory
- Clear the Automatically manage paging file size for all drives check box and check No paging file
- Click Set button next to No paging file
- Click OK on all open windows and restart your machine
- Open up Windows Explorer
- Navigate to the root of your system drive (C:\)
- Enable the showing of System Files
- On the View menu, click Options
- On the View tab, click Show All Files, and then click OK
- Delete the pagefile.sys file
- Click Start, right-click Computer, and select Properties
- In the left pane, select Advanced system settings
- On the Advanced tab, click the Settings button under Performance
- On the Advanced tab, click the Change button under Virtual memory
- Check the Automatically manage paging file size for all drives checkbox and click OK
- Restart your machine
After/During Step 5, needed to click "Set" button next to "No paging file" before clicking "OK".
Thanks Squeej! I have updated the document.
Jack
Hi. I follow above steps until step 10, but I cannot find pagefile.sys. Perhaps Windows deleted that file after No Paging File was set during restart.
How can I make sure that pagefile.sys really get deleted?
Hi y2kusuma,
In step 10, also look for Hide protected operating system files (Recommended). If you uncheck the checkbox and hit apply, the pagefile.sys should be visible. If it isn't, then the file does appear to have been removed.
Hope this helps!
Jack
Of course, the first step is to check to see if you have adequate free space on the drive containing pagefile.sys. Don't ask me how I know this.
provided that de pagefile is on c:\
open elevated command prompt
To see the pagefile: C:\>dir /ahs
To delete the pagefile: del /ahs pagefile.sys
I went thru steps 1-7. It again gave me a message about the paging file. I went on to steps 8-11 anyway, but when I tried to delete pagefile.sys, it said "The action can't be completed because the file is open in another program." I confirm that No paging file is indeed set. What now?
Hi Paul,
What was the message? Did you restart your machine? It sounds like the system is still paging to the file.
Jack
I had the same issue when attempting to delete my pagefile.sys. After doing a second reboot, I was able to delete it.
Thanks... Jack!
what if i dont have the pagefile.sys in my laptop and it keeps saying widows created temporary file..............
Hi Junchuan,
The pagefile should be there if Windows is reporting it (make sure you show hidden files). If not, follow the rest of the tutorial the best you can and see if the error resides. If it doesn't, I would verify the rest of the OS isn't corrupt.
Jack
how do i fix it if my windows does not allow me to access into my window ? Also i tried using safe mode to do it , but i still cant find the pagefile.sys . Plus , i cant access to safe mode after a few times of using it.
Great article. It gave me a lot of good hints on where to look, but I kept running into the same probably - I couldn't find pagefile.sys anywhere! It wasn't being created (had all the hidden files and program files showing and nothing), and I couldn't figure it out. Finally stumbled on the below windows article, where the suggestion was made to run the below cmd prompt (see article for specifics and running it in admin mode). That ultimately did the trick. Hopefully this helps others out.
sc config afs start= disabled
http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/windows-7-set-to-no-page-file-and-i-cannot-change/992de6a8-bec2-4e74-b6d9-d418a7f5cda0
Excellent feedback! Thanks Bry!
This can be related to low disk space depending on the size of the page file. Just had a users with 500mb of space left with a 750mb page file. After freeing up a few GB the issue was resolved without deleting the page file.
This is correct! I agree with this.
I have exactly the same issue.
I followed your instructions and removed the paging file.
After restarting I get the same error message, although now I cannot find the paging file.
So what next? Is it possible that the latest updates to Windows 7 increase the amount of memory needed, so that my installed RAM is no longer sufficient?
Make sure you have turned on hidden files/folders, otherwise the page file will not be visible.
Thanks that did the trick on win 10
It worked! Thank you.
This can also be caused by disk corruption. Do a scandisk as well to be sure.
missed Run CMD as admin, then SFC /Scannow to insure all is ok with the filesystem. you would not believe how much stuff this one command will fix in the I.T world!
It worked!
..and no need to meth with the registry!
Thanks!!!