473,585 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving pagefile.sys in Windows XP

69 New Member
Hello all...

I'm having a problem moving my swap file to a drive other than my primary drive. Right now I have a 3+ gig pagefile.sys that resides on my C drive. When I try to reconfigure (through the advanced options) it doesn't change.

Here's the weird part... it shows that it is configured to have the page file on the other hard drive, but the actual file still resides on C and I can't delete it (all of this is after a reboot). I even tried making the change using regedit and the same thing happens... it shows that the page file should be residing on the other drive, but it's not.

I've even tried setting the page file to 0 (or something small like 10mb) and it won't even change the size.

I've never seen this happen before... does anyone have any ideas?

Thanks,
narpet
Jul 19 '07 #1
7 12568
Chrisjc
375 Contributor
Hello all...

I'm having a problem moving my swap file to a drive other than my primary drive. Right now I have a 3+ gig pagefile.sys that resides on my C drive. When I try to reconfigure (through the advanced options) it doesn't change.

Here's the weird part... it shows that it is configured to have the page file on the other hard drive, but the actual file still resides on C and I can't delete it (all of this is after a reboot). I even tried making the change using regedit and the same thing happens... it shows that the page file should be residing on the other drive, but it's not.

I've even tried setting the page file to 0 (or something small like 10mb) and it won't even change the size.

I've never seen this happen before... does anyone have any ideas?

Thanks,
narpet
I never played with the paging file befor so I am not 100% sure however... when messing with a file like that you could try safe mode with CMD prompt... and move it that way...
Jul 19 '07 #2
narpet
69 New Member
I never played with the paging file befor so I am not 100% sure however... when messing with a file like that you could try safe mode with CMD prompt... and move it that way...
I'll try that today when I get home... hope it works.

Thanks.
Jul 19 '07 #3
Chrisjc
375 Contributor
Yeah let us know.

This should make it so Windows isnt using the file.. because CMD doesnt use to many services... in fact it doesnt use more then 3 in safemode if any at all..

This should allow you to move the file.
Jul 19 '07 #4
narpet
69 New Member
Booting into safe mode with command prompt didn't work. I was able to see the pagefile.sys file but when I tried to delete it I got a message that said it was in use. So the page file is even in use when XP is in safe mode...

Does anybody know how to fix this???

Thanks
Jul 20 '07 #5
bartonc
6,596 Recognized Expert Expert
Booting into safe mode with command prompt didn't work. I was able to see the pagefile.sys file but when I tried to delete it I got a message that said it was in use. So the page file is even in use when XP is in safe mode...

Does anybody know how to fix this???

Thanks
I found a couple of things:
See who the owner of the file is. In Windows Explorer, in Details mode, you can right-click the column header and enable the Owners column. If it's a user besides you and you're not explicitly a member of the Administrators group (dunno how this works vis a vis Single User Mode), you won't be able to delete it.

If you're a member of the Administrators group, you may need to take ownership of the file. Search on how to do that, but basically, you need to uncheck Simple File Sharing in Windows Explorer's options and then bumble around under the Security tab of the file's Properties. From file properties → Advanced → Owner, you can assign yourself ownership if you're an admin. Also check out your effective permissions to verify that you have permission to delete.
And:
Someone suggested I go to the Group Policy and have it dump the pagefile on shutdown. I did that and it regenerated on the C drive on boot with a time stamp of the boot time. So I realized I wasn't dealing with an inert file that was being stubborn but a file that Windows was putting there for some reason even though I had first set it to 2 - 50 and then completely disabled it. Windows was actually using it - which made the 'currently in use' part of the error box significant.

My E drive where the pagefile was supposed to be stored is NTFS and my boot drive is FAT32. I moved the page file to the G drive which is also FAT32, and although the file stayed on the C drive it didn't regenerate at boot. Since Windows wasn't using it I could finally delete it. I'm guessing it has something to do with FAT/NTFS but I know it is happy over on the other FAT drive.

The setting to dump the pagefile before shutdown was slowing the shutdown considerably, so I disabled it again. The pagefile has maintained its good deportment so I don't think that did anything but alert me that it was regenerating.

I never established the ownership as you suggested as I had already gotten rid of the file by the time I read the post. I'll store that away for the next file I can't get rid of.

As for the pagefile on the boot drive it is back to 2 - 50. I have a Gig of RAM and it wants to take 1.5 Gigs of my boot drive. You lose the debugging if you don't have a pagefile on the boot drive equal to your RAM, but that is OK. I have seen this advice in several places and it makes sense to me - especially since I want to keep my boot drive small for defrag and ghosting:
Jul 20 '07 #6
monkeymiles
1 New Member
I wanted to move my pagefile.sys (virtual memory) from C to partion on E drive for better performance (and to stop defragging). Even though in Virtual memory it was shown as moved it wasn't and I couldn't delete the one on the C drive, it was in use. Tried the security thing, but no owner and even after turning off simple file sharing no security tab (it was available for other files). After much messing about the clue came in the comment about NTFS and FAT32, both of my drives at NTFS but C is basic and E was dynamic. I delete the partion, converted to basic and reformated and then the pagefile moved with no problem.

Summary
Can't transfer virtual memory from basic boot drive to dynamic second drive. Windows says it has but if you check your hard drives it hasn't.
Oct 6 '08 #7
AmberJain
884 Recognized Expert Contributor
Hello,

Well, Wikipedia says:

Windows can be configured to use free space on any available drives for pagefiles.
"It is required, however, for the boot partition (i.e. the drive containing the Windows directory) to have a pagefile on it if the system is configured to write either kernel or full memory dumps after a crash".
Now I dont know much about "pagefiles" in Windows (I never messed with them), but in a few days I will try playing with them (as I am going to get a week or two as holidays soon :)

I will post here if I find something....

HOPE THIS HELPS.......
AmbrNewlearner
Oct 7 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1549
by: Ron Mexico | last post by:
Hi, Currently have an app that maintain that is written in VB6 and uses an access db (backend db only used as a data store not writing to the db). This app is a client app not server multi-teir app. It multi-form app that takes in a lot of user input and gives out high end calculations (engineering app). This app is starting to grow beyond...
6
1456
by: Woody Splawn | last post by:
I have been using SQL Server 2000 on my stand-alone machine as a back-end to a VS.net application. It is time to switch environments and take the application to the customer. I need to install SQL Server 2000 on the server of the client's local area network, which is a Windows 2000 machine. I am concerned about doing this right. On my own...
3
3023
by: Just Me | last post by:
If I move the mouse cursor over a control and stop moving I get a MouseHover event. If I then move the cursor while staying within the control and then stop moving I do not get another MouseHover event. To get a Mousehover I must leave and reenter the control. I'd like to get an event each time the cursor stops moving.
2
3100
by: Carl Gilbert | last post by:
Hi I have a math kinda problem where I'm trying to split some lines when two or more lines connect two shapes. The reason I am doing this is to make it clear that there are multiple lines connecting the two shapes. http://www.blackwaterbadgers.co.uk/image1.bmp Image 1 shows how if you have a line between two shapes, the line is...
3
2528
by: tlyczko | last post by:
Hello, I've been reading about this topic, and I've gotten myself more confused, not less. We have a single-processor license SQL Server Standard 2005 (xeon 2.8 ghz) with 4 GB RAM in Windows Server 2003 SP1 Standard. I turned on the /3GB switch in boot.ini but not PAE or AWE, would it be good to have either one?? servers or databases...
1
3788
by: rsteph | last post by:
I bought a book to help me learn to use DirectX with windows programming. It's first trying to walk me through some basic windows programming and graphics before getting into DirectX. I'm trying to expand on one of the example programs in the book but I'm having some problems. I can get a frame to appear, then an image gets randomly placed in...
2
1236
by: chrispy102 | last post by:
Hi all, I have developed a .Net app in MDI format. The problem that I have is that every time I change screens (New Child), the PC CPU PageFile usage increments a little. This happens until out of memory and I get a System.OutOfMemoryException. Is there something subtle Im missing when opening/closing MDIChild forms? I have written a sub...
3
3898
by: mansi sharma | last post by:
I m Using the Foll. method to Read the Contents of a File. If i m reading the doc,txt prog is working file. I m using the File "D:\pagefile.sys", ERROR is there,The process cannot access the file 'D:\pagefile.sys' because it is being used by another process. how To Read Contents of "D:\pagefile.sys". Need UR Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
0
2295
by: Studlyami | last post by:
I am trying to find how windows translate the input from a HID device to an actual windows message; specifically, the mouse. I am trying to figure out how when the mouse moves the process windows takes in order to ensure all windows receive the notification that the mouse moved and how windows moves the mouse cursor. What process handles the...
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.