How to defrag pagefile.sys and hiberfil.sys with PageDefrag

When a computer is running slow one of the common techniques techies use is the defragmentation tool that comes with windows OS to organize the data on the disk to make file access quicker, but one of the limitations that the generic defrag tool has is that misses to defrag files exclusively used by the OS like pagefile.sys hiberfil.sys and the registry hives, (SAM, SYSTEM, SYSTEM.ALT, SECURITY, SOFTWARE, .DEFAULT),

PageDefrag is a Microsoft Sysinternals that overcomes the limitations of the generic defragmentation tool found in Windows. Pagedefrag uses advanced techniques to check the pagefile.sys and hiberfil.sys and hive registry files-it tells you how fragmented the files are, and gives you the option to defrag them.

As you can see on the picture above, pagedefrag gives you the number of clusters each file is using, and how fragmented the files are. When you click on each file name, under the defragmentation control you can choose to either defrag the file at next boot, or defrag it at every boot. You can also select the time you want to display the abort the defrag options when you boot your computer. At the end of the each file defragmentation, pagedefrag will report the number of clusters the file started with, and the number it consists after the defrag is done.

You can use pagedefrag as no-interactive in the CMD prompt by using the following commands:
sage: pagedefrag [-e | -o | -n] [-t ]
Defrag every boot
Defrag once
Never defrag
Set countdown to specified number of seconds
Remember before using the cmd.exe command option, you need to copy the pagedfrg file to the root of the boot drive like C:\ otherwise it won’t work.

Comments [1]

  1. Is there a version that works with Windows XP 64bit?

Leave a Reply