Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    New Lounger
    Join Date
    Jan 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hibernation without hiberfil.sys

    hibernation have two features:
    - restart OS at any time
    - restore state
    To restore state OS have to write a lot of data to disk.
    I would avoid this and only restart OS at any time.
    Do it is possible?

  2. #2
    Super Moderator
    Join Date
    Aug 2012
    Location
    Durham UK
    Posts
    6,645
    Thanks
    147
    Thanked 884 Times in 845 Posts
    I always shutdown completely at the end of each session and have never used Hibernate.

    While you can turn Hibernate off with the elevated command powercfg -h off but if you want to avoid writing to disk then don't use Hibernate - just shut it down.

    https://support.microsoft.com/en-gb/kb/920730

  3. #3
    New Lounger
    Join Date
    Jan 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why they thought that someone would want to restart the computer at a certain time without having to restore the status?!?

  4. #4
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,203
    Thanks
    49
    Thanked 989 Times in 919 Posts
    Putting the computer to sleep will not write to the hibernation file, but you will lose the state if you lose power / the battery runs flat.

    I always hibernate because I want to return where I left off.

    cheers, Paul

  5. #5
    Super Moderator
    Join Date
    Aug 2012
    Location
    Durham UK
    Posts
    6,645
    Thanks
    147
    Thanked 884 Times in 845 Posts
    I used the cmd to turn Hibernate off and it freed up 6GB on my HDD so something must have been written to the file even though I don't ever recall using Hibernate.

    The article says that it does write to the Hiberfil.sys file when Hibernation is enabled.

    I'll probably turn mine back on as I have a large enough HDD - can't remember if I've already done that though ?

  6. #6
    5 Star Lounger
    Join Date
    Dec 2009
    Location
    Delaware, US
    Posts
    1,172
    Thanks
    19
    Thanked 99 Times in 88 Posts
    Quote Originally Posted by diamos View Post
    I would avoid this and only restart OS at any time.
    There are four options when you aren't using the computer.
    1. Set the Power to turn off Monitors and Hard Drive
    2. Set the Power to sleep - similar to #1 plus reducing the power state in general
    3. Hibernate - save the memory to disk and shut down almost all power
    4. Shutdown - close all programs and shut down all power

    You appear to be asking for something in between 3 and 4, which isn't possible. If you have a regular HDD then there are few disadvantages to Hibernate since it really doesn't use that much space. If you have something like a Surface, then there are almost no advantages to Hibernate because it boots so fast.
    Graham Smith
    DataSmith, Delaware
    "For every expert there is an equal and opposite expert.", Arthur C. Clarke (1917 - 2008)

  7. #7
    New Lounger
    Join Date
    Jan 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In my pc unfortunately sleep work only once and then it hangs and I can not use it.

  8. #8
    Silver Lounger RolandJS's Avatar
    Join Date
    Dec 2009
    Location
    Austin metro area TX USA
    Posts
    1,735
    Thanks
    95
    Thanked 130 Times in 127 Posts
    Once I did not shutdown Windows XP Mode within my Windows 7 pro, I hibernated. It took some GeekStuff to delete hiber and page files and reGain normal Windows 7 boot. In short, any VM operations should be shutdown before hibernating.
    I use hibernate at schools [I sub teach at numerous schools] between classes so that I can quickly return to what I was working on. I am aware that hibernate does not require a Windows login username & password. It simply "appears."
    "Take care of thy backups and thy restores shall take care of thee." Ben Franklin revisited.
    http://collegecafe.fr.yuku.com/forum...-Technologies/

  9. #9
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Diamos,

    Maybe you can adapt this code to do your bidding?

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  10. #10
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,203
    Thanks
    49
    Thanked 989 Times in 919 Posts
    Returning from hibernate does require a password if Windows is set to require one on resume.

    cheers, Paul

  11. #11
    Silver Lounger wavy's Avatar
    Join Date
    Dec 2009
    Location
    ny
    Posts
    2,383
    Thanks
    235
    Thanked 147 Times in 136 Posts
    Quote Originally Posted by Sudo15 View Post
    I used the cmd to turn Hibernate off and it freed up 6GB on my HDD so something must have been written to the file even though I don't ever recall using Hibernate.

    The article says that it does write to the Hiberfil.sys file when Hibernation is enabled.

    I'll probably turn mine back on as I have a large enough HDD - can't remember if I've already done that though ?
    That cmd you gave should do it owercfg -h off
    Worked for me!
    David

    Just because you don't know where you are going doesn't mean any road will get you there.

  12. #12
    Silver Lounger wavy's Avatar
    Join Date
    Dec 2009
    Location
    ny
    Posts
    2,383
    Thanks
    235
    Thanked 147 Times in 136 Posts
    Quote Originally Posted by gsmith-plm View Post
    There are four options when you aren't using the computer.
    1. Set the Power to turn off Monitors and Hard Drive
    2. Set the Power to sleep - similar to #1 plus reducing the power state in general
    3. Hibernate - save the memory to disk and shut down almost all power
    4. Shutdown - close all programs and shut down all power

    You appear to be asking for something in between 3 and 4, which isn't possible. If you have a regular HDD then there are few disadvantages to Hibernate since it really doesn't use that much space. If you have something like a Surface, then there are almost no advantages to Hibernate because it boots so fast.
    fyi even if hibernate is turned off in W7 GUI it has written a hiberfil to my drive. If you have not used the cmd command Sudo gave take a look (with system files visible of course) Why I do not know maybe something to do with a xxxx can that thought was for W8
    David

    Just because you don't know where you are going doesn't mean any road will get you there.

  13. #13
    Super Moderator
    Join Date
    Aug 2012
    Location
    Durham UK
    Posts
    6,645
    Thanks
    147
    Thanked 884 Times in 845 Posts
    I ran the cmd powercfg -h on and lost 6Gb of free space without using Hibernate, so it must write whatever is in memory at that time to the hiberfil.sys file in preparation.

  14. #14
    Silver Lounger wavy's Avatar
    Join Date
    Dec 2009
    Location
    ny
    Posts
    2,383
    Thanks
    235
    Thanked 147 Times in 136 Posts
    Quote Originally Posted by Sudo15 View Post
    I ran the cmd powercfg -h on and lost 6Gb of free space without using Hibernate, so it must write whatever is in memory at that time to the hiberfil.sys file in preparation.
    Yup
    David

    Just because you don't know where you are going doesn't mean any road will get you there.

  15. #15
    jwoods
    Guest
    Quote Originally Posted by diamos View Post
    In my pc unfortunately sleep work only once and then it hangs and I can not use it.
    I'd try to fix that...

    https://www.google.com/search?q=comp...utf-8&oe=utf-8
    Last edited by jwoods; 2015-11-17 at 18:40.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •