Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Ok, so I know what hiberfil.sys is, and I want to use hibernation on my laptop.

But I have another hard drive active in my laptop, it's taken from my old one... and I want to get rid of the hiberfil.sys on that drive. But even with admin privileges I can't delete it.

Any ideas?

share|improve this question
Have you disabled hibernation when you try to delete the old hiberfil.sys? –  coneslayer Feb 7 '11 at 16:43

3 Answers 3

To delete restore file you can open command prompt with admin privileges and run command

powercfg -h off

Then reboot, and Windows should automatically delete your hiberfil.sys. If it doesn't, you can remove it manually.

Then running

powercfg -h on

restores sleep and hibernate functionality.

You can start command prompt with admin privileges by starting command prompt (Windows Key+R (Run), type cmd) and then right-clicking command prompt icon on task bar and selecting "Run as administrator".

share|improve this answer
up vote 16 down vote accepted

Wanted to do this in the easiest way possible, especially without rebooting.

Open command prompt as administrator go to the disk where hiberfil.sys resides, in my case:

C:\Windows\System32\> e:

in e: check for hidden files:

E:\> dir /A:H

in the listing hiberfil.sys should show up, if so, delete it:

E:\> del /AS hiberfil.sys

i have to warn you: i don't know what happens if you do this with an active hiberfil.sys file, in my case it was on an old harddrive and was no longer needed.

share|improve this answer
Awesome, I was afraid I'd never reclaim that space from my second drive. Couldn't use ATTRIB -S on it so was stuck. –  Todd Pierzina Apr 30 '12 at 19:18

If you really, really want to get rid of the file, you can always boot to something like a Linux or Windows PE boot disk, and then delete it.

If it was placed there by the current OS, it will come right back. However, from your wording, it sounds like it was placed on the old HD by an old OS that was on it.

share|improve this answer
i would've done that, but there is a small problem ;) i am on a thinkpad and those laptops have a so called ultra bay, where (in normal config) your dvd-rom is located. the feature is, that you can slide your dvd-rom out and replace it with (in my case) a frame that holds a harddrive. –  Baarn Feb 7 '11 at 16:18
What about booting to a USB device, such as a flash drive or USB DVD drive? –  coneslayer Feb 7 '11 at 16:43
Don't do it this way. Use the method outlined by @Olli below. –  user3463 Feb 7 '11 at 19:19
@user3463 - Why not? –  user66001 Apr 14 '14 at 6:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.