How can I delete my swap file so I can get a brand new one with no erros??
Thanx;)
Printable View
How can I delete my swap file so I can get a brand new one with no erros??
Thanx;)
?????Quote:
no erros
What sort of errrors ?
you can go into system properties and change its size and drive,this location is different dependent on your OS.
If windows 98/95, boot to DOS and delete the file c:\windows\win386.swp . If 2k or XP, boot off of the CD, run the recovery console, and delete the pagefile.sys in as many locations as you may have it configured. A reboot will recreate the file automatically.
For NT 4.0, I think you can use a 2k CD, boot from it and enter the recovery console just the same. It will allow you the basic command line interface as if you were manipulating a 2k system....
PS--next time, tell us the OS...:rolleyes:
I echo the sentiment of ??????.
Thanx for your replys
And the OS is NT4
Sorry
:rolleyes:
Would this satisfy your query?Quote:
Originally posted by ilovetheusers
I echo the sentiment of ??????.
CAUSE This behavior can occur if the Pagefile.sys file is damaged.
C-weed, there is your cleanest method (per Microsoft).
Well, I'll be. I thought the OS created a new swapfile when booting. Forgot NT, 2K and XP could have perminant files. I was thinking he was on 98.Quote:
Originally posted by Ya_know
Would this satisfy your query?
CAUSE This behavior can occur if the Pagefile.sys file is damaged.
C-weed, there is your cleanest method (per Microsoft).
I will go to sleep tonight a little bit smarter. ;)
I had no idea the swapfile behaved differently in Win2000/XP.
Disbling virtual memory has the same effect as deleting the swap file - and is safer too. While you're @ it...go ahead and run Diskeeper (you have it don't you? A must for NT4...) after you disable virtual memory and consolidate your free space. Re-enable virtual memory and enjoy the (sometimes slight) boost in swap performance. FYI This also works on Win9x/Me/2k/XP as well, just consider the amount of RAM you have first.:D
I didn't think you could disable VM in NT4.0. How is it done, besides zeroing out the settings?Quote:
Originally posted by Archangel42069
Disbling virtual memory has the same effect as deleting the swap file - :D
Archangel,
I used to use the trick of disabling the swapfile, defrag and then re-enabling the swap in Win98 PCs. However, I wonder on the consequences. Ideally the swap file is near the beginning of the drive (my understanding anyway) and removing the swap and defragging moves other data to that spot. Then when it is re-enabled, the swap file is pushed towards the middle or end.
That's how I've always done it.....Quote:
Originally posted by Ya_know
I didn't think you could disable VM in NT4.0. How is it done, besides zeroing out the settings?
"Back in the day" of older PIO HDD's that might have been a performance hit...but most modern HDD's operate fairly equally well throughout the disk - also, if the data is sent to the end(outside,right?) of the disk, It would stand to reason that there would actually be a performance gain. Too, the consideration must be made of the pros and cons of the situations...i.e. Which is better - a fragged swapfile or one that isn't all at the front? In my experience, the fragged swapfile is almost always slower.Quote:
Originally posted by Tr!une
Archangel,
I used to use the trick of disabling the swapfile, defrag and then re-enabling the swap in Win98 PCs. However, I wonder on the consequences. Ideally the swap file is near the beginning of the drive (my understanding anyway) and removing the swap and defragging moves other data to that spot. Then when it is re-enabled, the swap file is pushed towards the middle or end.
Good point about the hardware, and yes if the swapfile is in chunks then for sure this would help. So I basically concede with one more question, does the swapfile get fragged (brings back the doom days) internally? And does merely deleting it in dos fix that?
Thanks
Ok, good question. I'm sure there is someone out there who knows more about the operation of the swapfile on different OS's than I do, but I will try to be as informative as I can. To the best of my knowledge, the swapfile acts as a RAM "emulator." The OS will send info needed by the currently running programs to the system's RAM, however if it is in use, or there is info from a prog running minimized or if the information seems to be called often, it gets sent to the swapfile. Win386.swp and Pagefile.sys (depending on your OS) are living files - changing with each new program opened. Information gets overwritten regularly as it is no longer needed. It would stand to reason, then, that INTERNAL fragmentation would be irrelevant - unless you are using dynamic Virtual Memory(VM), which means letting windows manage the swapfile. Any time windows changes the size of the swapfile, it can create a "hole" in the HDD - a place with no data written. This can cause fragmentation of not only the swapfile as other data changes, but also of your other files. Hope that answered your ?...if you get info that contradicts this, please let me know so I don't show my @$$ again!!Quote:
Originally posted by Tr!une
Good point about the hardware, and yes if the swapfile is in chunks then for sure this would help. So I basically concede with one more question, does the swapfile get fragged (brings back the doom days) internally? And does merely deleting it in dos fix that?
Thanks