MKLINK, HIBERFIL.SYS amd SSD space


  1. Posts : 70
    Win 7 Pro 64 bit
       #1

    MKLINK, HIBERFIL.SYS amd SSD space


    I have two drives, an SSD for the OS (C:) and a platter drive for data (D:). I want to be able to hibernate my PC but don't want HIBERFIL to wear out my SSD as I have lots of memory (24GB) being written to the SSD every time I hibernate.

    Can anyone please advise me whether it's possible to move my HIBERFIL.SYS to the platter D-drive and link back to the C drive using MKLINK?
      My Computer


  2. Posts : 784
    Linux Mint 17 Cinnamon | Win 7 Ult x64
       #2

    Hi,

    I think you might be out of luck. The HIBERFIL.SYS has to be able to be found by Windows bootloader, so it needs to be on the C:\ drive. I don't think the mklink command will help you.

    I may be wrong, and others will certainly chime in if I am.

    Another option might be to use sleep mode.

    You can turn off hibernate useing the DOS command powercfg -h off. This will give you back the space your HIBERFIL.SYS file is using and will stop windows dumping memory to that file. (You will need to do this with administrator privileges).

    Now, the pagefile.sys is one file you can move, resize or disable. There are lots of differing opinions on this. But - that is another story.
      My Computer


  3. Posts : 70
    Win 7 Pro 64 bit
    Thread Starter
       #3

    Thanks - unfortunately my PC crashes when I enter sleep mode (or rather, gives me a blank screen when it awakes which requires a forced restart that I guess doesn't do the machine much good). Sounds like I just have to accept I'll have to turn it off at the end of each day.
      My Computer


  4. Posts : 2,497
    Windows 7 Pro 64 bit
       #4

    The hiberfil.sys file must be on the Windows volume. The problem is that this file is accessed very early in the boot process when only a very simple file system is available and there is no ability to access or even the knowledge of other drives. A resume from hibernation loads everything from hiberfil.sys and bypasses the normal boot process. Links created by mklink require the NTFS file system which is not functional until much later in the boot process.

    The pagefile can be moved because it isn't needed until much later in the boot process.
      My Computer


  5. Posts : 784
    Linux Mint 17 Cinnamon | Win 7 Ult x64
       #5

    Diddlededum said:
    Thanks - unfortunately my PC crashes when I enter sleep mode (or rather, gives me a blank screen when it awakes which requires a forced restart that I guess doesn't do the machine much good). Sounds like I just have to accept I'll have to turn it off at the end of each day.
    It is not right for the screen to just go black on resuming from sleep. You don't have to accept things the way they are...

    Have you tried running the SFC /SCANNOW function?

    If you feel so inclined, have a read through these threads..

    Mystery Problem: Resume from Sleep
    Black Screen (BSOD) - does not recover from sleep mode
    Black Screen on waking up screen on WIn 7 [Solved] - Windows XP - Windows 7
      My Computer


  6. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #6

    Here's a couple of SF tutorials that might help you:
    Power Options and Sleep Mode Problems
    Gathering a Startup, Shutdown, Sleep, Hibernate, or Reboot Trace

    I wouldn't be concerned with wearing out the SSD, it should last a lot longer than you will probably use the PC, even using hibernate.
    There are many threads discussing this, if you want to research it.

    With 24 GB of RAM, the size of the hiberfil.sys file could be an issue for you.
    You can decrease the size to 50% of RAM, but that would still be a 12 GB hiberfil file.
    The default is 75% of RAM.
    Your specs don't show what size SSD you have, and you haven't said how much space is used...
    How much RAM do you normally use?

    I've also seen on some systems, S3 sleep may have issues and S1 sleep works.
      My Computer


  7. Posts : 70
    Win 7 Pro 64 bit
    Thread Starter
       #7

    Thanks for the links but I've adctually tried them all already with no success. I posted my problem here:

    https://www.sevenforums.com/performan...ml#post2691936

    in case someone could help. Basically, Sleep S1 state works OK in so far as I can wake up the display with mouse or keyboard but it's not exactly sleeping as the PC fan remains on etc. But if I put my desktop to S3 (adjusted in BIOS) sleep it won't wake up properly - the mouse or keyboard doesn't start it so I have to press the power button, and when I do that a quiet fan comes on (I'm thinking perhaps the CPU fan not the video card fan?) and the screen is blank and standby. I have to do a forced restart (hold down power button for 5 seconds). When I do that all the fans come on, but the screen remains blank. So I have to do a second forced restart, and that brings up the BIOS POST screen, beep and "Starting Windows".

    I did a Macrium backup so I could go back to my current setup, then I reinstalled Windows 7 from disk without any updates, and only added the latest video driver - no other software. Even on that absolutely basic spec the monitor wouldn't come back on after sleep. But I used to have no problems resuming from sleep. So I have no clue what's changed.
      My Computer


  8. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #8

    You could try an older video driver to see if that fixes this.

    If that doesn't help you could try using a trace to see if it can find the problem.
    Gathering a Startup, Shutdown, Sleep, Hibernate, or Reboot Trace

    You probably would need help from cluberti (tutorial author) using the trace.
    You could send cluberti a VM and ask him to look at this thread and see if he thinks a trace can help with this.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:37.
Find Us