How to shrink the hiberfil sys file windows 7. Hibernation mode in Windows. How hibernation works

Unlike a regular PC, a laptop runs on batteries. Its autonomy depends on the correct management of the available charge. Microsoft in their OS uses several typical sleep modes that differ in their approach to power consumption. Today you will learn how to turn off hibernation in Windows 10.

A computer running Windows 10 can use three main energy saving scenarios:

  • sleep mode. When sleep mode is activated, only the RAM and processor are powered. The data that the user worked with is stored in RAM;
  • hibernation. To conserve battery power, the power is turned off completely. Data from the programs opened at the time of its activation is cached on the HDD in a separate file. When the PC wakes up, you can see a notification on the screen: "Resume for hibernation", indicating the transfer of the file cache back to RAM;
  • hybrid mode. Combines both technologies. Power is supplied as in sleep mode. Caching is performed in the background in case of an outage in the external power supply.

Now, knowing what hibernation is, let's move on to the settings and figure out how to turn it off.

To find out if hibernation is enabled on the computer, we will use the shutdown menu. It is located in the "start", is activated by pressing a stylized button and allows you to display the available shutdown modes.

As you can see in the screenshot above, this function is present. If desired, you can send the PC to a "deep sleep" right from here.

An advanced way to check available modes requires using the command line.

  1. We call the context menu by pressing Win + X and run PowerShell as an administrator.
  1. We enter the command.

As a result of its execution, we get a list of modes supported in the current hardware configuration.

As we already know, when you enter the "deep sleep" state, the entire contents of RAM is written to the hard disk. The hibernation file intended for this purpose is created at the moment the mode is activated and is permanently present in the system. Its size is from 30 to 75% of the total amount of RAM installed on the computer. Relating to important system files, it has the "hidden" attribute. To see it, let's do the following:

  1. We launch "Conductor", switch to the tab and check the box "Hidden Elements". Finally, open the menu.
  1. In the window that opens, switch to the tab again, scroll through the list to find the checked item, and uncheck it.
  1. Careless actions in this mode can damage the system configuration. Windows will display an appropriate warning. We agree to the risks and confirm the operation.
  1. The system will take us back to the options window. We fix our actions by pressing two buttons.

After all the manipulations, by opening the system disk in Explorer, we can see the file we are looking for and its sizes. During hibernation, any running application is cached into it to save state.

Below the marked hiberfil are two more system files: pagefile.sys and swapfile.sys. Both are responsible for working with the computer's virtual memory. The first is present in all versions of Windows NT, the second appeared along with the arrival of the "tiled" Metro interface in the OS.

Methods for disabling hibernation

After all the preparations, we will figure out how to disable hibernation in Windows 10. There are several ways to stop using this mode.

Power settings

To begin with, as the simplest, consider the disable option in the graphical user interface.

  1. We call the OS parameters using the keyboard combination Win + I ", and select the item marked in the screenshot.
  1. We carry out the shown sequence of actions and go to the classic control menu.
  1. In the quick transition menu, select the item marked in the screenshot.
  1. As a result, we get to the computer's power control panel. The screenshot shows that the controls that allow you to remove sleep and hibernation are inactive. To activate them, we allow changing the parameters by turning on the checked item.
  1. Now that the control checkboxes are active, you can adjust the shutdown mode to your preferences. How to disable sleep mode in Windows 10 also becomes clear. Quick start, following the recommendations of Microsoft, is best left in the system. Thus, users who prefer to completely turn off the computer at the end of each session can immediately rid it of all types of sleep. Having selected the necessary shutdown options, we assign button actions and a reaction to closing the laptop lid, excluding the use of any sleep modes. We complete all actions by saving the changes.
  1. After writing down the set parameters, the system will return us to the main power management page. To permanently prohibit the transition to sleep mode, open the last menu item in the quick transition zone.
  1. We set the switches to the position that prohibits going to sleep, and save the last changes made.

On this, the settings in the graphical mode can be considered complete.

We have achieved the desired result and the hibernation mode through the menu "Start" is now unavailable.

Command line

A faster method involves using the command line. With its help, you can delete hiberfil.sys, and in the power options, cancel all settings related to the use of hibernation.

  1. We start PowerShell in administrator mode and enter the shutdown command. You can type it in full or abbreviated form, as shown in the screenshot:
powercfg /hibernate off
  1. The reverse actions aimed at returning the system to the ability to work with hibernation are performed in a similar way.
  1. A feature of this method is the concomitant disabling of the fast boot mode, which also requires hiberfil. To disable hibernation, but keep the ability to use it in the system, we optimize the size with the following command.
  1. Reverting the created changes allows you to return hiberfil to its original state and restore the “deep sleep” mode.

The screenshot shows data on its size when both commands are executed sequentially.

Registry editing

The most radical answer to the question of how to remove the hibernation file and prevent its use in the system is to edit the Windows registry. This "holy of holies" OS is present in x32 bit and x64 bit systems and contains all computer configuration parameters. Working with the registry, an experienced user can make any changes to the system. With the same success, wrong actions can lead to its complete inoperability.

HKEY_ LOCAL_MACHINE. All data about the computer and its configuration are collected in it.

  1. We sequentially open the "branches" of the registry, following the path: HKLM\SYSTEM\CurrentControlSet\control. We are looking for a subsection power and by clicking on it, open the contents in the right half of the window. The parameter we are interested in is called HibernateEnabled. It currently has the value of a variable REG_DWORD equal "1". This means that hibernation is enabled on the system.
  1. Double click to open the parameter for editing. Enter in the field «0» and confirm the changes made.
  1. Close the editor and restart your PC. As a result, the hibernation file disappears, and with it the ability to use the fast system startup.

At the final stage, we configure the actions of the system upon shutdown. To do this, we repeat the operations performed in the graphical interface, starting from the fourth step.

Finally

Having decided whether hibernation is necessary for your computer, you can use any of the above methods to disable it completely or partially, while maintaining the fast startup mode.

Video instruction

Also, you will find a training video that clearly shows how to disable hibernation in the top ten.

When a user needs to turn off the computer's power without terminating background processes, the user uses the hibernation feature. It represents the state of the device, in which the session data from the RAM is written to the hard disk, and only after that the PC power is turned off.

Why is this feature missing on PC?

This mode may not appear in the Start menu due to being replaced by the hybrid sleep mode available in Windows 10. This feature is often disabled in the BIOS power saving settings or is not supported by the graphics card. But these problems are considered hardware.

Where is hiberfil.sys Windows 10 located?

A file that stores system data since the last working session is created when the computer is turned off. It is called hiberfil.sys and is located at the root of the system drive. The file is hidden, so to see it, go to the "Change folder and search options" section and open access to hidden files.

How to disable hibernation

To save an image of a running system when you turn off the power of the computer, with the possibility of starting it later, it is worth using hibernation. However, this feature may not always be available. If it is not on your device, you can enable hibernation in several ways.

In the registry

  1. To enable or disable this feature, go to the "Run" window by pressing the Win + R keys and open the registry editor with the "regedit" command.
  2. Next, find the registry key HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Power. Following this path, in the active window of the HibernateEnabled parameter, set the value to "1".

Important! If you need to disable hibernation through the registry, you will need to set the value "0" in the active window of the HibernateEnabled parameter, corresponding to the deactivation of the function.

Control panel hibernation mode

You can turn off hibernation in the following way:

  1. Through the Start menu, go to the Control Panel, where you select the item "Power Options".
  2. Under System Settings, click Change Settings. This function is available only when logged in with administrator rights.
  3. To enable, check the box "Hibernation Mode".

Using the command line

  1. In Windows search, type Command Prompt (or cmd).
  2. On the command prompt icon that appears, right-click and select "Run as administrator".
  3. In the active command line field, type "powercfg -h on" and press Enter.
    This command will enable the function, as detailed in the video.

How to remove hiberfil.sys in Windows 10

File on hard drive hiberfil.sys takes up approximately 70 - 100% of the amount of RAM installed on the computer. And if every GB of hard drive memory is important to you, you can reduce the size hiberfil.sys.

To perform file compression hiberfil.sys go to the command line, enter "powercfg /h /type/reduced". To set the initial file size, instead of "reduced" you need to write "full".

Deleting a file hiberfil.sys is done using the Delete button in the explorer window (this is done if the file was not automatically deleted after disabling hibernation). But at the same time, the hibernation function must be disabled, since the system will automatically restore it.

Important! Turning off hibernation will stop the Windows 10 Fast Startup feature that uses hibernation.

Adding hibernation to the start menu

As a rule, in Windows 10, there is no hibernation in the Start menu. But this point can be added there. To do this, press the Win + X keys. Select "Power Management" and click "What the power buttons do".

Conclusion

There are 3 ways to enable hibernation on a computer: using the command line, the control panel, and through the registry editor. You can use the one that will cause the fewest problems. If this function file takes up a lot of space and interferes with the system, reduce its size.

44348

There are at least five different ways to increase the size of the system partition. So, you can delete temporary files, compress data on the disk, expand the size of the system disk using the user partition, clear some system directories, such as the folder WinSxS. You can also increase the volume of the disk with the operating system installed on it by deleting or optimizing the hibernation file hiberfil.sys .

If hibernation is enabled on your computer, the operating system creates a hidden file at the root of the system partition hiberfil.sys . When you put your iron friend into sleep mode, the contents of RAM are written to it. When you wake up from sleep mode, data is retrieved and transferred back to RAM. Thus, the size of the hibernation file directly depends on the amount of RAM.

Some users delete the file in order to get more disk space. hiberfil.sys . However, this approach may not always be acceptable. This is especially true for Windows 8 and 8.1. The fact is that starting from the eighth version, Windows uses a new, faster system startup. When you shut down a computer running Windows 8 or 8.1, the system freezes the kernel session, saving data in a file hiberfil.sys . That is, if you delete it, then your eight will no longer be able to load quickly.

In Windows 7, things are a little easier. If you don't intend to use hibernation, the hibernation file can be safely deleted. Why do you first need to go to the power management section, find the option there and as the value of the parameter "Put your computer to sleep" install "Never".

Then we start the console cmd(as administrator) and run the following command:

Also in Windows 7 it is possible to reduce the size of the hibernation file. By default, its size is 70 or 75 percent of the total amount of RAM (all 100 may occur). That is, if the amount of RAM on your computer is 8 GB, then the size hiberfil.sys in which case it should be 6 GB. Set the hibernation file size manually. To do this, open a command prompt as an administrator and run the following command:

In this example, we have reduced the file size hiberfil.sys twice. By the way, if you had previously disabled sleep mode, this command will activate it, and at the same time set the specified size as a percentage. Changes take effect immediately, as you can see for yourself by viewing the properties hiberfil.sys . And one moment. 50 percent is the minimum value you can set for the hibernation file size. The most optimal value is 55-60 percent, it is not recommended to set it less, since the system may not wake up.

Tags: ,

When a user needs to turn off the computer's power without terminating background processes, the user uses the hibernation feature. It represents the state of the device, in which the session data from the RAM is written to the hard disk, and only after that the PC power is turned off.

Why is this feature missing on PC?

This mode may not appear in the Start menu due to being replaced by the hybrid sleep mode available in Windows 10. This feature is often disabled in the BIOS power saving settings or is not supported by the graphics card. But these problems are considered hardware.

Where is hiberfil.sys Windows 10 located?

A file that stores system data since the last working session is created when the computer is turned off. It is called hiberfil.sys and is located at the root of the system drive. The file is hidden, so to see it, go to the "Change folder and search options" section and open access to hidden files.

How to disable hibernation

To save an image of a running system when you turn off the power of the computer, with the possibility of starting it later, it is worth using hibernation. However, this feature may not always be available. If it is not on your device, you can enable hibernation in several ways.

In the registry

  1. To enable or disable this feature, go to the "Run" window by pressing the Win + R keys and open the "regedit" command.
  2. Next, find the registry key HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Power. Following this path, in the active window of the HibernateEnabled parameter, set the value to "1".

Important! If you need to disable hibernation through the registry, you will need to set the value "0" in the active window of the HibernateEnabled parameter, corresponding to the deactivation of the function.

Control panel hibernation mode

You can turn off hibernation in the following way:

  1. Through the Start menu, go to the Control Panel, where you select the item "Power Options".
  2. Under System Settings, click Change Settings. This function is available only when logged in with administrator rights.
  3. To enable, check the box "Hibernation Mode".

Using the command line

  1. In Windows search, type (or cmd).
  2. On the command prompt icon that appears, right-click and select "Run as administrator".
  3. In the active command line field, type "powercfg -h on" and press Enter.
    This command will enable the function, as detailed in the video.

How to remove hiberfil.sys in Windows 10

File on hard drive hiberfil.sys takes up approximately 70 - 100% of the amount of RAM installed on the computer. And if every GB of hard drive memory is important to you, you can reduce the size hiberfil.sys.

To perform file compression hiberfil.sys go to the command line, enter "powercfg /h /type/reduced". To set the initial file size, instead of "reduced" you need to write "full".

Deleting a file hiberfil.sys is done using the Delete button in the explorer window (this is done if the file was not automatically deleted after disabling hibernation). But at the same time, the hibernation function must be disabled, since the system will automatically restore it.

Important! Turning off hibernation will stop the Windows 10 Fast Startup feature that uses hibernation.

Adding hibernation to the start menu

As a rule, there is no hibernation in Windows 10. But this point can be added there. To do this, press the Win + X keys. Select "Power Management" and click "What the power buttons do".

Conclusion

There are 3 ways to enable hibernation on a computer: using the command line, the control panel, and through the registry editor. You can use the one that will cause the fewest problems. If this function file takes up a lot of space and interferes with the system, reduce its size.

Is the hiberfil.sys (hibernation mode) file taking up a lot of space on the C drive? You can reduce it without disabling the entire hibernation feature.

Let's see what the hibernation file is responsible for and how to reduce it. It is located on the "C" drive, hidden by default and can take up a lot of space in the system partition.

Its size depends on the amount of RAM on your computer. By default, the hibernation file size is 40% of the computer's RAM.

For example, with 16 GB of RAM, it took me 6.8 GB. On the net, you can find a lot of information on how to completely disable it or remove it with one simple command.

Yes, this is a solution, but if you are using Windows 10, this is not always a good solution. Why? Because this one is responsible not only for the transition of the PC to hibernation mode.

How to check hibernation file size

It is located on the system drive, in most cases on the C drive and is not visible by default, therefore it is not displayed in the Explorer window.

If you want to see it and check the size, you need to change the folder options - make invisible files visible.

On Windows 10, this is different from Windows 7 - There, pay attention to the "View" section.

Find "Hide protected files..." and uncheck it. Then look for the "Hidden files and folders" option and check the "Show hidden files and folders" box.

Now it will be visible when we go to the "C" drive and you can check its current size.

What is the hibernation file responsible for in Windows 10

For many people, it seems that it is only used for manual hibernation, only it is not - this file is necessary for two functions: hybrid sleep and fast start of the computer.

Let's look at usage. Hibernation is similar to system sleep, which means the system goes into standby mode, but works differently.

While a hibernation computer saves our work and settings in RAM and consumes a small amount of power to support it, hibernation captures the entire state of our computer (running programs, opening documents, position of windows on the desktop) on the hard drive in the hiberfil. sys and then turn off the computer.

After restarting the system, we will return to the same place where we were. The system uses it to save the state of the system. Waking up the system causes the computer state to boot normally from the standby state (that is, from RAM).

Only if during hibernation you lose access to the power source, you will not lose your system status - the next time you turn on the computer, everything will be loaded from the hibernation file, which is a kind of "backup".

Fast startup is the second feature that the hibernation file corresponds to, and not many people know about it.

This feature is enabled by default in Windows 8, 8.1 and 10 and is responsible for faster system startup even if your computer or laptop is using an SSD drive. How it works?

The system saves basic information (system kernel image, loaded drivers, etc.) to a hibernation file and then reads it the next time the computer is started without the need to re-initialize.

As a result, the system starts up much faster because it loads far fewer new processes each time it starts up. This is an extremely useful feature that greatly speeds up the Windows startup process.

How to Reduce Hibernation File Size in Windows 10

One way is to completely disable the hibernation file, but then you will lose access to all of the above options.

While many users don't care about hibernation or hybrid sleep, the lack of fast startup is already noticeable even when you have an SSD drive.

There is a way to significantly reduce its size and leave the fast launch option enabled, since it can run in two modes: full and limited.

In full mode, the size is 40% of your computer's RAM and supports all of the above features.

On the other hand, in restricted mode, the hiberfil.sys file is half the size (equivalent to 20% of RAM) and only supports fast boot.

With this, you can significantly reduce the size of this file, while still retaining the all-important fast startup. How to do it?

Press the key combination "Windows + X" to bring up the quick launch menu in the lower left corner of the screen. From the list of available options, select "Command Prompt (Admin)" and enter the following command:

  • powercfg /h /type reduced

Confirm the command with the Enter key. A confirmation message will appear about the changes to the hibernation file. In my case, the size was reduced from about 6.8 GB to 3.4 GB.

Most importantly, this does not affect the Fast Startup feature, so Windows 10 still starts up very quickly and efficiently. The hibernation file still exists, but in a significantly reduced version, which is enough to handle the option to start the computer faster.

If in the future we would like to return to the original size and functionality, then we must enter the command: "powercfg / h / type full".

The above command does not work - what to do

It may happen that entering the command for in restricted mode does not work and returns an error with the wrong parameter.

This usually happens when a custom file size has been set for some reason. This can be dealt with.

First enter the command in the command prompt window which will reset the size. To do this, enter the following command:

  • powercfg /h /size0

Now we confirm this command with the Enter button. When done, enter the command again to switch to restricted mode:

  • powercfg /h /type reduced

This time, there should be no trouble command, and the command should be correctly processed and accepted by the system.

If this is not the case, try running "Command Prompt" a few times in administrator mode and try typing the command again, or restart your computer. Good luck.