Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


July 01, 2003

How can I defragment the hiberfil.sys file in Windows 2000 and later?

RSS
Subscribe to Windows IT Pro | See More Windows 2000 Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. Windows uses the hiberfil.sys file for system hibernation. By design, the OS's built-in disk defragmenter utility and most third-party products, such as Executive Software's Diskeeper, won't defragment hiberfil.sys when you attempt optimize the disk that contains the file. However, SysInternals' free PageDefrag tool does defragment the file. If you don't want to use a third-party product to defragment hiberfil.sys, you can delete the hibernation file, defragment the disk, then recreate the hibernation file by performing the following steps:

  1. Start the Control Panel Power Options applet.
  2. Select the Hibernate tab.
  3. Clear the "Enable hibernation" check box, then click OK to delete the hiberfil.sys file.
  4. Start your defragmentation program to defragment the disk.
  5. After defragmentation is complete, start the Control Panel Power Options applet.
  6. Select the Hibernate tab.
  7. Select the "Enable hibernation" check box, then click OK to create the hiberfil.sys file.

Other files that the Windows disk defragmenter utility doesn't defragment are

  • Bootsect.dos
  • Safeboot.fs
  • Safeboot.csv
  • Safeboot.rsv
  • Memory.dmp
  • Files in the Recycle Bin (so it's a good idea to empty the Recycle Bin before you defragment a disk)
  • Pagefile.sys (third-party products can defragment this file)
  • Files that are in use when you run the disk defragmenter utility (so it's a good idea to shut down all running programs and any unneeded services before you run the utility)
  • If the disk that you're defragmenting has less than 15 percent free space available, the disk defragmenter won't completely defragment the volume; instead, the utility will complete only a partial defragmentation. Also, you can't defragment a drive that's marked as possibly having errors (run chkdsk <drive>: /f to resolve this problem).

    End of Article



    Reader Comments
    Try to use PageDefrag 2.00 from www.sysinternals.com

    Neo Gigs July 23, 2003


    NOTHING HAHAHAHAHAHA

    HOMO February 28, 2004


    is it possible to allocate the hiberfil.sys file anywhere but on the C: drivfe?

    Tom Yarbrough June 18, 2004


    You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Anti-Virus Vendors Prepare for War with Microsoft ... Again

When Microsoft announced its Windows Live OneCare security and PC health product over five years (as MSN OneCare), Symantec, McAfee, and the other consumer-oriented security vendors reacted with stunning vigor. ...

What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events WinConnections and Microsoft® Exchange Connections

Data retention mandates. Volumes of critical aging data. What’s your IT plan?

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing