如果您的 Windows 计算机磁盘空间不足,您可能正在寻找一种清除磁盘空间的方法——尤其是在系统驱动器(System Drive)上。现在,Windows是否会默认显示它包含的所有文件和文件夹?不会。默认情况下,一些受保护的文件和文件夹会保持隐藏状态。休眠(Hibernation)文件或hiberfil.sys属于这些受保护和隐藏的文件 。
hibernation 或 hiberfil.sys 文件由Windows 操作系统创建。当用户将他的系统置于休眠模式时使用此文件。许多用户将休眠与睡眠模式混淆了。虽然这两种模式都用于在系统不使用时节省电力供应,但休眠模式和睡眠模式是有区别的。
睡眠模式将数据保存在RAM中,而休眠模式将数据保存在硬盘上。由于此功能,休眠文件会占用系统(System)或 C 驱动器上的大量空间。由于 C 盘应该有空的空间才能更好地发挥系统的性能,所以很多用户有一个问题,“我可以将休眠 (hyberfil.sys) 文件移动到另一个驱动器吗?”
阅读(Read):如何减小 hiberfil.sys 的大小(How to reduce the size of hiberfil.sys)。
我可以将 hiber.sys 文件移动到另一个驱动器吗?
真的能动吗?答案是不!
当您休眠您的 PC 时,Windows将系统的当前状态存储在 hiberfil.sys 文件中。当您在休眠状态后打开 PC 时,它会获取存储在 hiberfil.sys 文件中的信息,并让您从离开的地方继续工作。这意味着在引导过程中需要休眠文件。为此,它需要放置在系统的引导驱动器中。
如果用户想从磁盘读取引导文件,他需要文件系统驱动程序。但是,文件系统驱动程序位于磁盘上。hiberfil.sys 也遵循相同的模式。在休眠文件的情况下,使用微型文件系统驱动程序。微型文件只知道在引导驱动器的根目录中定位文件,并在需要时将其加载到内存中。此外,微型文件系统不了解挂载点。
要更改 hiberfil.sys 文件的位置,微型文件系统应该知道位置和挂载点。为此,您必须访问磁盘管理工具(Disk Management Tool)并配置硬盘驱动器,这是一个复杂的过程。这就是为什么Windows不支持将休眠文件从引导驱动器移动到另一个驱动器的原因。
我可以删除休眠文件吗?
这是许多Windows用户的另一个问题。许多用户想删除它以释放空间。好吧,你可以——最好的方法是通过在CMD中执行以下命令来禁用休眠:
powercfg /hibernate off
当您在笔记本电脑上关闭休眠(Hibernation)时,hiberfil.sys 文件将被删除。
希望本文能帮助您了解为什么无法移动和删除休眠文件。
阅读下一篇:(Read next:) 如何将 Hiberfile 类型指定为 full 或 reduce。
Can I move hiberfil.sys file to another drive on Windows 11/10?
If your Windows computer has low disk space, you might be looking for a way to clear disk space – especiallу on the Systеm Drive. Now, does Windows show you all the fіles and folders it contains by default? No. There are some protected files and folders that remain hіdden by default. The Hibernation file or hiberfil.sys is among these protected and hidden files.
The hibernation or hiberfil.sys file is created by the Windows operating system. This file is used when a user puts his system in hibernation mode. Many users confuse the term hibernation with sleep mode. Though both of these modes are used to save power supply when the system is not in use, there is a difference between hibernation and sleep mode.
While the sleep mode saves the data in RAM, hibernation mode saves data on the hard drive. Due to this feature, the hibernation file takes massive space on the System or C drive. Since the C drive should have empty space for the better performance of the system, many users have a question, “Can I move the hibernation (hyberfil.sys) file to another drive?”
Read: How to reduce the size of hiberfil.sys.
Can I move the hiber.sys file to another drive?
Can you really move it? The answer is No!
When you hibernate your PC, Windows stores the current state of your system in the hiberfil.sys file. When you turn on your PC after hibernation state, it takes the information stored in the hiberfil.sys file and lets you resume your work from where you had left. This means that the hibernation file is required in the boot process. For this, it needs to be placed in the boot drive of the system.
If a user wants to read the boot files off the disk, he needs the file system driver. But, the file system driver is located on the disk. The hiberfil.sys also follows the same pattern. In the case of the hibernation file, a miniature file system driver is used. The miniature file only knows to locate the file in the root directory of the boot drive and load it into the memory whenever required. Also, the miniature file system does not understand the mount points.
To change the location of the hiberfil.sys file, the miniature file system should know the location and mount points. For this, you have to access the Disk Management Tool and configure the hard drives, which is a complex process. That’s why Windows does not support moving the hibernation file from the boot drive to another drive.
Can I delete the Hibernation file?
This is another question that many Windows users have. Many users want to delete it to free up space. Well, you can – and the best way would be to disable Hibernation by executing the following command in CMD:
powercfg /hibernate off
When you turn off Hibernation on your laptop, the hiberfil.sys file will get deleted.
Hope this article helped you understand why you cannot move and delete the hibernation file.
Read next: How to specify Hiberfile type as full or reduced.