Jump to content


defrag omissions


5 replies to this topic

#1 OFFLINE   bruff

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 24 December 2009 - 01:38 AM

Why can't I drfrag the files named:

hiberfil.sys

pagfile.sys

wmitracing.log

suggestions???

Jim Andrews - Phoenix

#2 OFFLINE   saadbruno

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 24 December 2009 - 04:04 AM

they're files that the system is using, so you can't defrag them...
if defraggler had a live version, you could defrag this files...
like this: http://forum.pirifor...showtopic=25915

#3 OFFLINE   jdogg

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 January 2010 - 06:15 AM

How come I cannot add these files to the "Exclude" list in Options? When I choose the file it says it is in use (which leads me to believe the software is attempting to open or obtain an exclusive lock?).

#4 OFFLINE   redhawk

    Power Member

  • Members
  • PipPipPipPip
  • 1,216 posts
  • Gender:Male
  • Location:UK
  • Interests:Beer and DVDs

Posted 15 January 2010 - 12:33 PM

I want to know why pagefile.sys is deliberately blocked with Defraggler even on a live boot i.e. BartPE when this file isn't exclusively locked??
If you patch the unicode string "pagefile.sys" out of the exe file it's more than happen to defrag it. :)

Richard S.

#5 OFFLINE   norel

    Advanced Member

  • Members
  • PipPipPip
  • 125 posts

Posted 15 January 2010 - 10:23 PM

The best way I know of to deal with pagfile.sys is set it to a fixed size and be done with it. I can explain how you do it in Vista since that's what I have. There are instruction out there on the Web for other operating systems that aren't hard to find. Open "Control Panel", Classic View. Double click "System". Select "Advanced system settings". Click the Performance "Settings" button. Select the "Advanced" tab. Click the Virtual Memory "Change" button. Write down the "Currently allocated" number. Select "No paging file" and restart. Then go back to the same panel and setup a paging file with "Custom size" where both the Initial Size and the Maximum Size are the number you wrote down previously. Restart again. The page file will now be a single unfragmented file that will never need defragged.

As for hiberfil.sys, I would simply delete it unless you absolutely have to have Hibernation for some reason. Hibernation's a bit overrated, especially for desktop computers. The idea somewhat makes sense for a laptop as an energy saver; but as I see it, if you need to Hibernate you might as well just shut down. I use Sleep on my laptop quite a bit, but never Hibernation; and for a desktop it really makes no sense at all. In Vista: Start>All Programs>Accessories>Right click "Command Prompt">"Run as Administrator". If User Account Control (UAC) asks you for permission, permit the Command Prompt to run. Enter "powercfg -h off" (without the quotes). Restart. The "hiberfil.sys" file will be automatically deleted. You can turn it back on by entering "powercfg -h on," but I think there are additional steps for recreating hiberfil.sys. I'm not sure what they are since I've never needed to turn it back on but the information should be available.

#6 OFFLINE   MrBruce

    Newbie

  • Members
  • Pip
  • 3 posts
  • Gender:Male
  • Location:Norwich, CT. USA
  • Interests:Computer Programing C++ MS-VB 2010. Researching computer software.

Posted 25 January 2010 - 08:01 PM

View Postnorel, on Jan 15 2010, 05:23 PM, said:

The best way I know of to deal with pagfile.sys is set it to a fixed size and be done with it. I can explain how you do it in Vista since that's what I have. There are instruction out there on the Web for other operating systems that aren't hard to find. Open "Control Panel", Classic View. Double click "System". Select "Advanced system settings". Click the Performance "Settings" button. Select the "Advanced" tab. Click the Virtual Memory "Change" button. Write down the "Currently allocated" number. Select "No paging file" and restart. Then go back to the same panel and setup a paging file with "Custom size" where both the Initial Size and the Maximum Size are the number you wrote down previously. Restart again. The page file will now be a single unfragmented file that will never need defragged.

As for hiberfil.sys, I would simply delete it unless you absolutely have to have Hibernation for some reason. Hibernation's a bit overrated, especially for desktop computers. The idea somewhat makes sense for a laptop as an energy saver; but as I see it, if you need to Hibernate you might as well just shut down. I use Sleep on my laptop quite a bit, but never Hibernation; and for a desktop it really makes no sense at all. In Vista: Start>All Programs>Accessories>Right click "Command Prompt">"Run as Administrator". If User Account Control (UAC) asks you for permission, permit the Command Prompt to run. Enter "powercfg -h off" (without the quotes). Restart. The "hiberfil.sys" file will be automatically deleted. You can turn it back on by entering "powercfg -h on," but I think there are additional steps for recreating hiberfil.sys. I'm not sure what they are since I've never needed to turn it back on but the information should be available.


These are some very good tips and thanks.
The system restore points are also untouchable by defraggler.
Of course they are NOT regualry accessed during normal computer usage, so they do not play a part in system slow down.
Deleting the old useless system restore points minimizes the fragmentation over the entire drive.
I usually only keep one restore point (the last one that worked) on my computer and delete the older ones.
The Wonderful World Of Computer Programing