Can't remove Pagefile from C: drive - SBS 2003
Posted on 2012-09-11
have picked up a client with an SBS2003 server that has a small primary (C) partition - 33GB.
It is very low on space - 1.65GB free. As we are going to be migrating to SBS2011 there is some patching and preps to be required prior. The low space is a concern.
Have tried clearing up as much as possible, to free space, but there was a critical app that is installed and unable to move it.
I have tried to move the pagefile to the D drive, via the usual method
System Properties > Advanced > Performance Options > Advanced tab > Virtual Memory.
Have set the C: drive to 'No Paging File'
Have set the D: drive to Custome size - 4095-4095 (as the server has 4GB RAM installed)
This has always worked in the past - after rebooting of course.
If I run 'Systeminfo' it reports back the following.
Total Physical Memory: 3,582 MB
Available Physical Memory: 157 MB
Page File: Max Size: 7,010 MB
Page File: Available: 2,702 MB
Page File: In Use: 4,308 MB
Page File Location(s): d:\pagefile.sys
*note: the page file maxsize appears to be the combination of both the C Drive page file and D drive page file.
The server had been set like this when we first saw it, but we noticed that the pagefile was still on the C Drive. I assumed that it just required a restart as that would normally clear it. After a restart the pagefile was still there - and when trying to delete it manually, it wouldn't delete as it was still in use.
I have dug down into the registry and it appears to be as it should. Have even set the registry to purge the pagefile at each reboot. I can see that it is recreating the C drive page file after rebooting. But not the D drive page file (as I deleted it to see if it was in use)
Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Data: d:\pagefile.sys 4095 4095
I have checked the security permissions on both C and D drive - System has full control of both.
I have checked the permissions on the registry to make sure that System has full control - HKLM, HKUSers, HKClassesRoot, HKCurrentConfig, even HKLM\System\CurrentControlSer\Control\Session Manager\Memory Management
It kind of looks like the registry settings are being ignored.
I am really stumped, would greatly appreciate any advice anyone has to offer.