No regrets chasing out the murderer who occupied the Windows XP hard drive

  
Recently, the author installed a friend, I will help him install the system after the new computer comes home, now of course Win XP is preferred. When partitioning the system disk, I thought that after installing an XP system, it would occupy less than 2G, and it would be enough to give it a 4G. I did not expect to use it for a while, he rushed to me, the taskbar always prompted the system disk space is insufficient!

After the rush to the horse, I found that the system disk C disk really has less space. Look at the C drive, found that friends did not install too much software to the C drive and did not store too many files, after using the disk cleaning tool to clean up, the remaining space of the C drive is only about 400M. A Win XP 1G, plus a friend installed a little software and stored files will be less than 3G, then where is the other 1G space?

The murderer's appearance

Select all the files under the C drive and view the size, which is only 2G. Remove the "Hide Protected Operating System Files (Recommended)" option in the View of Folder Options and select "Show All Files and Folders" in the "Hide and Folders" option. Finally found the problem, found in the root directory of the C drive hiberfil.sys and pagefile.sys these two files are surprisingly large, view the size, found that the two files actually have more than 700 M! It seems that they are the ghosts of both of them.

图1

Kill the murderer

Let's take a look at the hiberfil.sys file, check its size, and find the strange phenomenon, its size is exactly 256M How can it be the same size as the memory? Coincidence? This is too clever, of course not, I found that as soon as the startup function of WinXP is started, the file will exist. When the system is sleeping, the information in the memory is saved to the Hiberfil.sys file on the hard disk. To ensure that you can return to the state before hibernation when waking up. To be honest, the sleep function of XP is really not good, and it takes up a lot of space. If it is not compatible with the ACPI of the motherboard, it will cause the shutdown to be abnormal. It must be turned off, open "Control Panel → Power Options → Hibernate" and remove the "Enable Hibernate" option (Figure 2). At this time, I found that the hiberfil.sys file has disappeared under the C drive.

Figure 2

Let's take a look at the pagefile.sys file, which is the system page file (also known as the virtual memory file), its size depends on how much the program is open and you The minimum value of the original set page file is constantly changing, sometimes only tens of M, and sometimes more than 600M. Since this file has made the system partition tight, we will adjust it and adjust it to other free partitions (the E disk has more than 10 G unused space, put it on the E disk). Select "Control Panel → System → Advanced", click the "Settings" button in the performance area; then select "Advanced → Change", select the partition where the system is located in the open virtual memory settings window, select "No paging file" will System partition removal (Figure 3); finally select E disk, if you want to manually set the minimum maximum memory memory, select "custom size", if you want the system to manage it yourself, select "system management partition".

Figure 3

Tip: After removing the page file of a partition and setting the page of a partition, click the “Settings” button next to it, so that your settings will take effect. It is not possible to directly click the "OK" button of the window.

After the above settings, the hiberfil.sys and pagefile.sys files under the C drive disappeared, and the system partition space finally recovered.

Copyright © Windows knowledge All Rights Reserved