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
Command Prompt Tricks

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

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...


Related Events Disk-to-Disk Grows Up

Deep Dive into Windows Server 2008 R2 presented by John Savill

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


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
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement