Free up hard drive space: How to turn off the hibernation file on the Windows 10 system drive

Users who use the Windows system will find a problem that the capacity of the C drive is getting smaller and smaller, and this problem has always been criticized by Windows users but they have to continue to use it. There are also many articles about cleaning or optimizing the C drive of the Windows system. Whether it is using third-party tools or increasing disk space, the ultimate goal is to make your C drive more free space.

There is a hibernation function in the Windows system. I think many users may not use it or have never used it at all, but the files generated by this hibernation function will occupy up to several GB of your C drive. For many users who are reluctant to expand the partition of the C drive, if the hibernation file is deleted, it can save a lot of space.

Here we first understand how the hibernation feature works. When you use the hibernation function, it can save the desktop image and all open files and documents (write to the Hiberfil. In layman's terms, it is similar to suspending the current Windows system, and this suspension is performed in a power-off state.

Well, just to understand briefly, if you don't use the hibernation function in your daily work, then you can consider deleting the Hiberfil.sys file in the Windows system to save your precious disk space.

In the default Windows system, because Hiberfil.sys is hidden and system properties, you cannot find it directly in the C drive, you need to enable the hidden protected operating system files in the Windows folder option.

1. Taking Windows 10 system as an example, open Windows Explorer, select View in the window, then check hidden items, and then click Options to open. The steps may be slightly different on different operating systems.

2. Select View in the opened folder options, uncheck Hide protected operating system files (recommended), uncheck Hide extensions for known file types, and click OK.

3. At this time, you can see the Hiberfil.sys file when you open the C drive, and you can see that the current file size is very large, so if you want to save disk space, you can delete this hibernation file.

So, let's take a look at how to disable the hibernation service.

How to close the hibernation file in the Windows 10 system disk to save hard disk space

How to close the hibernation file in the Windows 10 system disk to save hard disk space

1. Press Win+R to open the run window, enter CMD, and press Ctrl+Shift+Enter to open the command prompt as an administrator, or you can directly enter PowerShell to open it.

3. Enter the following command in the command line to disable:

 
 

1

powercfg -h off

4. If you want to open it again, you can enter the following command to open it:

 
 

1

powercfg -h on

Through the simple command above, we can fix the hibernation file. At this time, open your C drive again, and you will find that the hibernation file is gone. In addition to the Hiberfil.sys file, there is actually a paging file on the C drive that will also take up a lot of space. Regarding this paging file, we can also adjust its location by other methods to save the space on the C drive.

 

Guess you like

Origin blog.csdn.net/winkexin/article/details/131801608
Recommended