Can't remove Pagefile from C: drive - SBS 2003

Hi All,

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
Value 0
  Name:            ClearPageFileAtShutdown
  Type:            REG_DWORD
  Data:            0x1

Value 9
  Name:            PagingFiles
  Type:            REG_MULTI_SZ
  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.
Who is Participating?
Travola77Author Commented:
Hi DJSharma - yes I had already tried that. Thanks for your response

Hi Sulimanw - I am a bit hesitant about using CCleaner on a server.
I had also tried setting the pagefile to 16MB - however as soon as the server booted it complained of not enough space, and then increased the page file size - the server was also very slow and a few services shut down till I restarted it.

However you question about the drives being on the same HDD had me thinking.  I checked the Array configuraiton.  The drives are on a 3-disk RAID 5 set.  The C and D are partitions set at the RAID level, and seen as seperate drives in Windows Disk Management.

In Windows Disk Management I noticed that the D drive is actually a dynamic disk. It turns out you can't put a pagefile on a dynamic disk!

So it looks like I will need to convert the Data drive back to a Basic disk.
Suliman Abu KharroubIT Consultant Commented:
Try to clean the registry using ccleaner.


Configure page file. On c drive to be something very small (16 Mb) and make sure to to configure it d drive.... Here there is a risk which is server may not be able to boot if it ignores page file on d making page file on c drive bigger will eliminate that risk.

Last thing, are both c and d in the same HDD ?
djsharmaTechnical ConsultantCommented:
While applying System Properties > Advanced > Performance Options > Advanced tab > Virtual Memory.
After entering the value in D drive click set then ok and apply and reboot the server.
noxchoGlobal Support CoordinatorCommented:
Convert it without dataloss using Paragon Drive Backup 11 Server. It does this conversion pretty fast.
Travola77Author Commented:
Helped me look at the Disk structure to then find the root of the problem. The first reposnder didnot provide the solution but gave me the idea of where to look.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.