473,327 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Moving pagefile.sys in Windows XP

69
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 12552
Chrisjc
375 256MB
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
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 256MB
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
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 Expert 4TB
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
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 Expert 512MB
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
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...
6
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...
3
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...
2
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...
3
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...
1
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...
2
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...
3
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...
0
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.