Computer Hope

Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: Michael on July 27, 2021, 08:00:50 AM

Title: Pagefile remains in drive after set to no paging file
Post by: Michael on July 27, 2021, 08:00:50 AM
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.

Title: Re: Pagefile remains in drive after set to no paging file
Post by: Allan on July 27, 2021, 09:11:37 AM
Click on C: drive, put a tick in "No paging file", click on SET
Title: Re: Pagefile remains in drive after set to no paging file
Post by: patio on July 27, 2021, 05:00:24 PM
Also by that clip your settings are not what you think they are...
Title: Re: Pagefile remains in drive after set to no paging file
Post by: Michael on July 27, 2021, 08:24:39 PM
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.
Title: Re: Pagefile remains in drive after set to no paging file
Post by: Michael on July 27, 2021, 08:29:05 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:.
Title: Re: Pagefile remains in drive after set to no paging file
Post by: 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.
Title: Re: Pagefile remains in drive after set to no paging file
Post by: Michael on July 27, 2021, 09:56:53 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:.
Title: Re: Pagefile remains in drive after set to no paging file
Post by: Allan on July 28, 2021, 05:23:57 AM
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.
Title: Re: Pagefile remains in drive after set to no paging file
Post by: Michael on July 28, 2021, 07:28:59 AM
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.
Title: Re: Pagefile remains in drive after set to no paging file
Post by: Allan on July 28, 2021, 08:26:30 AM
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).