Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2547
  • Last Modified:

Deleting pagefile.sys and hiberfile.sys

Hi,

Just doing some housecleaning on my hard disk and found two files ( pagefile.sys and hiberfile.sys ) which add up to just over a Gigabyte and was wondering if it is possible to delete or erase data from them safely. If so , How?

TIA
0
moose25
Asked:
moose25
1 Solution
 
sweatbeastCommented:
dont touch them - pagefile.sys is used for virtual memory. You can set this to utilise less disk space but could affect perfomance.
Not 100% sure about hiberfile.sys but I'd assume this is where the system is saved to when the box hibernates.

For further info do a search on Microsoft.com for the two files.
0
 
mftealCommented:
If you turn off hibernation, hiberfil.sys will be deleted. To do this:

You must be logged on to your computer with an owner account in order to complete this procedure.

   1. Click Start, click Control Panel, click Performance and Maintenance, and then click Power Options.

   2.   Click the Hibernate tab, clear the Enable hibernate support check box, and then click Apply.

In terms of pagefile.sys, this is a necessary file called the page file that is used as 'virtual' memory when your physical memory is all used up. As such, you can't delete this one. You can move it to another drive or partition if you have one but it is necessary for Windows to run.

0
 
msluneckaCommented:
hiberfile.sys is where your memory gets dumped into when you put your computer into hibernation.

Hibernation is a process in which all contents of active memory are copied to a file on the hard drive and then the computer is powered down.  When the computer is powered back up, rather than the typical boot-up process, the computer simply restores the contents of that file into memory and resumes processing.  It's very handy.

You can disable hibernation by going into your Power Options control panel.  There is a Hibernate tab and a checkbox you can turn off.  I don't know for sure if this deletes the hiberfile, but it does tell you the necessary amount of disk space required (basically the same as the amount of memory you have).
0
 
Adam_TheriaultCommented:
To make your pagefile smaller:

1.      Hit (the windows key)+(the pause/break key, by the lights on your keyboard)

OR if that's not an option...

1.      Right click on “My Computer” icon and select “Properties” then go to the “Advanced” tab.
2.      Click on “Settings” on the “Performance” box.
3.      Click the “Advanced” tab.
4.      Then at the bottom of that window click “Change” in the “Virtual Memory”
5.       Now if you have more than one drive select the one with the most free space, Click the “Custom Size” Box and set the values that         apply to you, I will describe them below:

       If your computer is used for hardcore gaming and you only have less than 512 MB of ram set this value to ~1500 MB, If you have lots of ram lets say around a gig set it to ~1000 MB.

       If your computer is used for light gaming like say “Starcraft” or “Diablo 2”, the kid of games that load fast and have simple graphics, and you only have less than 256 MB of ram set this value to ~1000 MB, If you have lots of ram lets say around a ½ a gig or more set it to ~500 MB.

       If your computer is used for simple online activities or to type on, and you only have less than 256 MB of ram set this value to ~1000 MB, If you have lots of ram lets say around a ½ a gig or more set it to ~500 MB.
0
 
sweatbeastCommented:
note that you will not be able to analyse a BSOD crash dump if vm is less than physical memory. Probably not important in a home setup but may be relevant in a corporate.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now