Pagefile remains in drive after set to no paging file

Started by Michael, July 27, 2021, 08:00:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Michael

I set my pagefile to be System managed on E: drive, but there are still a 13.4 GB pagefile.sys on C: and another 7.96 GB pagefile.sys on E:.

How can I get rid of the pagefile on C: drive to clear up space?

Thanks.


Allan

Click on C: drive, put a tick in "No paging file", click on SET

patio

Also by that clip your settings are not what you think they are...
" Anyone who goes to a psychiatrist should have his head examined. "

Michael

Quote from: Allan on July 27, 2021, 09:11:37 AM
Click on C: drive, put a tick in "No paging file", click on SET
Did that. And just done again to confirm. Restarted. The pagefile in C still remains there.

Michael

Quote from: patio on July 27, 2021, 05:00:24 PM
Also by that clip your settings are not what you think they are...
Then what or how should it be? I've set "No paging file" for all other drives except E:.

BC_Programmer

From what I recall, Windows doesn't delete the pagefile.sys file(s) automatically. After you set the new paging file settings, you need to reboot (paging file changes do not take effect until you reboot!), then you have to delete it yourself.
I was trying to dereference Null Pointers before it was cool.

Michael

Quote from: BC_Programmer on July 27, 2021, 09:47:50 PM
From what I recall, Windows doesn't delete the pagefile.sys file(s) automatically. After you set the new paging file settings, you need to reboot (paging file changes do not take effect until you reboot!), then you have to delete it yourself.
I've tried to google this before posting the thread. From what I read, when "No paging file" is set, the page file created before should be gone after reboot. And when that doesn't happen, some said it's ok to delete it manually, some said no as it may mess thing up. So I'm not sure if it's actually safe to delete the one in C:.

Allan

There will always be a small pagefile on c: drive regardless of your settings, but it should not be that large if you have set it for "none". And yes, you can try to delete it yourself - it won't do any damage though you may not be able to do it. Again, if after a reboot it's small, leave it be.

Michael

OK so I've deleted the page file in C and reboot. There is no new page file created in C, leaving the only page file in E.

We'll see if all go well.

Cheers.

Allan

There is likely a swapfile on c: (which, in my opinion, is nothing more than a small pagefile with a specific purpose). Regardless, it will be very small (it's required by the OS).