• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

hiberfil.sys giving you trouble?

hat

Enthusiast
Joined
Nov 20, 2006
Messages
21,754 (3.22/day)
Location
Ohio
System Name Starlifter :: Dragonfly
Processor i7 2600k 4.4GHz :: i5 10400
Motherboard ASUS P8P67 Pro :: ASUS Prime H570-Plus
Cooling Cryorig M9 :: Stock
Memory 4x4GB DDR3 2133 :: 2x8GB DDR4 2400
Video Card(s) PNY GTX1070 :: Integrated UHD 630
Storage Crucial MX500 1TB, 2x1TB Seagate RAID 0 :: Mushkin Enhanced 60GB SSD, 3x4TB Seagate HDD RAID5
Display(s) Onn 165hz 1080p :: Acer 1080p
Case Antec SOHO 1030B :: Old White Full Tower
Audio Device(s) Creative X-Fi Titanium Fatal1ty Pro - Bose Companion 2 Series III :: None
Power Supply FSP Hydro GE 550w :: EVGA Supernova 550
Software Windows 10 Pro - Plex Server on Dragonfly
Benchmark Scores >9000
I've been getting low on HDD space recently, and I noticed that the little bugger known as hiberfil.sys has been lingering around on my drive. It seems simply disabling hibernation through the power options isn't enough, there is some command prompt commands that must be done. The command is powercfg -h off, but I made this little batch file that automates the process and stuffed it in my tools folder so I wouldn't forget to do it whenever I reinstall windows, and figured I would share.
 

Attachments

Thanks, I just pulled you code and ran the command. The code in case anyone cares:

Code:
@echo off
echo this tool will remove hiberfil.sys
pause
powercfg -h off
echo hiberfil.sys is no more
pause
 
Great man, That game me a couple gigs of breathing space free. Nice lil program, I'll save it and use it for future use, since I don't use hibernation at all.
 
Thanks, I just pulled you code and ran the command. The code in case anyone cares:

Code:
@echo off
echo this tool will remove hiberfil.sys
pause
powercfg -h off
echo hiberfil.sys is no more
pause

You do realize that this is copyrighted material, don't you? :banghead:
 
I see no notice of copyright.
 
Yep, nice little command line utility Powercfg.exe. And, you can control and view a lot of other stuff, too, with it.

Some, might have to run the command from an admistrative command prompt to get it to work, if they are using Windows as standard user and not an adminstrative user.

And, probably is copyrighted material - you can ask MS's copyright dept. 'bout that though.:)
 
I've been getting low on HDD space recently, and I noticed that the little bugger known as hiberfil.sys has been lingering around on my drive. It seems simply disabling hibernation through the power options isn't enough, there is some command prompt commands that must be done. The command is powercfg -h off, but I made this little batch file that automates the process and stuffed it in my tools folder so I wouldn't forget to do it whenever I reinstall windows, and figured I would share.

What I found is that disabling hibernation using the GUI does indeed leave it there, but then you can just delete it manually after a reboot.

I just checked now and this little file is consuming a nice fat 3GB and as I don't use Windows Sleep any more, it's coming off.

Your utility makes this process somewhat more convenient. Nice. :)
 
I know about the hybrid Sleep on 7. I was just shortening the phrase.

Thanks for the links and explanation anyway. :)
 
I know about the hybrid Sleep on 7. I was just shortening the phrase.

Thanks for the links and explanation anyway. :)

I figured you did, qubit, but the other 50,000 visitors might not.
So, I just threw it in there for clarification.:)
 
All it takes is start command prompt with admin priv, powercfg -h off. I always turn off uac and let comodo take charge of that crap.
 
All it takes is start command prompt with admin priv, powercfg -h off. I always turn off uac and let comodo take charge of that crap.

Indeed, however, this makes the process somewhat automated, and if you tuck the batch file away in your tools folder, you'll see it and run it after a fresh format, instead of potentially forgetting to run the command manually in the command prompt.
 
Why disable hibernation? It's the coolest thing ever imo. I hardly ever really turn off my netbook and main PC. I "waste" 6GB of disk because i have 6GB of RAM but it's so worth it i wouldn't trade it for anything. Only time when i'll ditch it is when super fast SSD's will be accessible like current HDD's. As they boot much faster. If the space is so much of an problem and you're on tight budget, buy latest WD Green 2TB. Cheap, decent fast and massive. 1TB are relatively cheap as well and they offer loads of space.
 
First of all, I leave my PC running 24/7. There's no need for it to quickly turn back on, as it's already on and ready to go. Secondly, my <60 second boot time is very much bearable for those times when I do turn my PC off, or reboot. Thirdly, my 150GB Velociraptor isn't the largest HDD in the universe, and I'm not putting my OS on my slow Green drive.
 
You can use disk clean up to get rid of hibernation permanently by the by.

Not that your tool isn't handy, it's faster than running disk clean up, but still, it's how I done it XD

Wish I didn't now though because sleep no longer works.
 
You can use disk clean up to get rid of hibernation permanently by the by.

Not that your tool isn't handy, it's faster than running disk clean up, but still, it's how I done it XD

Wish I didn't now though because sleep no longer works.

you must have done somthing wrong then.... sleep/standby works just fine without the hiber.sys file.



i for one run this command everytime i reinstall windows on my pc... my windows partition is only 30GB so i could use the extra space.


and my pc still sleeps :D
 
You misunderstood me, sleep has only recently stopped working.
 
Back
Top