So this happened a while ago. I was running out of space on my c drive, and I used WinDirStat to see what large files there was on my c drive, and I'm not sure what the file was called but I think it may have being hiberfil.sys. It was several gbs. So I looked online and it showed it was in charge of hibernation. So I foolishly decided to delete it, now after having done research I found out it was a bad idea and is causing all sorts of problems for my laptop. So I was wondering if there is anyway to restore it on windows 8?
What happens if you type the following two commands into an elevated command line prompt:
powercfg.exe /hibernate off
powercfg.exe /hibernate on
Tried that nothing happened.
What problems are you having exactly? The hiberfil.sys is used for hibernation. It is perfectly safe to delete that file as long as you don't want to wake up from a hibernation point that the file holds.
EDIT: once you've deleted a hibernation point. really no way to recover it. Which is ok since that file is (re)created every time you enter hibernation
Just did some testing on my computer and after turning hibernation on with command line I found hiberfil.sys freshly created in C:. The hibernation file is hidden as a super protected Windows file so it may not appear in explorer if the setting to hide system files is enabled. Instead, an elevated command line should show you the file if you do the following commands:
cd C:\
attrib h*.*
Output should look like: A SH C:\hiberfil.sys
railstop is right though, what issues are you seeing?
Wait JvrJava, I'm sorry but in the command prompt what am I suppose to type after the given c:\windows\system32>??
More importantly, the question we both asked was, What issues are you encountering?
c:\windows\system32>cd C:\
c:>attrib h*.*
A SH C:\hiberfile.sys
That is what the command prompt will look like. If the hiber file is not actually there "A SH C:\hiberfile.sys" will be replaced with File not found - h*.*. Here is what my commands look like.
Hey JvrJava, tried that I still got no luck. I typed in attrib h*.* and got what you got with the A SH C:\hiberfil.sys, but the file still isn't there, and I still can't hibernate.
Ok so we now know that the computer has a hibernation file, the one that you deleted. The problem you say is that you can't hibernate the computer? Are you missing a hibernation option in windows or when you press the hibernate button it does not hibernate? We need more details at this point.
I guess not hibernating isn't the problem. I just heard that deleting the file, although frees a lot of space, is really bad for your computer?
It is not bad and it only contains hibernation data. It is perfectly ok to delete
Okay, my laptop has being acting weird recently, and after deleting that file it seemed to have gotten worse. But those two things may not be correlated.
It does free a lot of space. What's more is that some people (like me) choose to disable hibernation to get rid of that file so that my computer uses only sleep. "powercfg -h off" gets rid of the file.
If you are seeing other issues then we need details about those issues if you want help.
Maybe it is time for a backup/reload. Sometimes issues get bad enough that simply fixing won't take care of everything. One issue leads to another. Reinstalling programs is easy and reloading Windows is easy.
Hey JvrJava, thanks for the offer to help.
Not sure what you can do but here's the story. I was in Berlin for a small internship and brought my asus laptop to there. I used a european plug when I got there and had no problems, but occosionally the battery charger would turn off. Mostly in the middle of a game, and I notice the frame rate tank and brightness change. Usually this only happen for a few moments before it goes back up, but sometimes it stays off.
Got back to the U.S, switched back and the on and off thing with the power went away. But I noticed that every time that I turn off my laptop, if I don't wait at least 40 minutes before turning the laptop back on, the computer just becomes a lot slower. It takes a lot more time for it to start up. Going from 12 seconds to 1 minute, and the sound isn't working as well. It's just a lot quieter. So I usually just wait 40 minutes. Reset the laptop once and it didn't help. Asus said it would cost a ton of money to repair it, so I can't do that. Not sure if you can help, but anything you know would be appreciated!
So you already reloaded the computer to factory defaults? Either a wipe and reload or using the recovery partition?
This sounds like a dying power adapter. If it is dying it may also be providing too much or noisy power. This could lead to damage of the internal components, though I would have thought the battery would have cleaned it up before handing it off to the rest of the components. But then I am not an electrical engineer and don't know how a laptop power circuit works.
I take it that the bootup time and audio problem happens even when you are disconnected from the wall charger?
Yeah I reloaded the computer to factory detail. I did the press F9 after restarting your laptop.
Yeah I assumed the issue may be related to power adapter. An yes it still happens when it isn't plugged in.
Then, unfortunately, this sounds like something not easily repaired. If you can live with the computer taking a minute or two to start and low audio then go ahead and just keep using it. But make sure to back up all your data in case the issues get worse.