Disable Auto Defrag

March 18, 2009 at 10:15:56
Specs: Windows XP, P4
Trying to figure out once again how to disable the auto defrag feature in Winbows XP. I have disabled the auto boot optimization feature, but after 20 minutes of no use, the HD starts churning away and I can see defragfat in the background. there is also no scheduled tasks.

Yes Windows XP has an automatic defrag feature that is turned on, on every single install, if you do not know this, then don't bother posting please. I don't want a bunch of "windows xp doesn't have an auto defrag feature" posts because it does. I really don't know why MS thought it would be a good idea to include this "feature".

PowerMac 9600(1 ghz G4)
512mb RAM
50gb SCSI
ATi 9200 PCI


See More: Disable Auto Defrag

Report •


#1
March 18, 2009 at 10:25:05
"Yes Windows XP has an automatic defrag feature that is turned on, on every single install, if you do not know this, then don't bother posting please". Your statement is incorrect. Whether you want to believe it or not. And, requesting that people don't post if they disagree with you is a good way to get NO HELP whatsoever.

EEOC


Report •

#2
March 18, 2009 at 10:37:27
"Your statement is incorrect. Whether you want to believe it or not. And, requesting that people don't post if they disagree with you is a good way to get NO HELP whatsoever."

That is because you do not know that windows has this feature turned on by default. So no, my statement is correct. Do a little research. I have been a PC/MAC tech since '96. You can disagree if you like elsewhere, but it is fact. I simply can not remember the correct registry hack needed to disable defragfat from loading while the system is idle and am looking for the proper path.

Please do not reply in my thread if you do not understand that windows XP has auto defrag turned on by default and don't understand how to disable it.

PowerMac 9600(1 ghz G4)
512mb RAM
50gb SCSI
ATi 9200 PCI


Report •

#3
March 18, 2009 at 10:49:17
Outlander, you are the one that doesn't know. But anyway, look at the link below, it may be of some help to you.

http://www.kellys-korner-xp.com/xp_...


Report •

Related Solutions

#4
March 18, 2009 at 10:50:00
Nevemind, I found it, I forgot I had to install Microsoft Powertoys to turn the stupid option off. The tools can be found on MS website:

http://www.microsoft.com/windowsxp/...

Couldn't remember that if the registry hack failed that tweakUI is needed to turn it off. And don't feel bad if you didn't know about the windows autodefrag, I'd say 95% of the users don't realize it. Sad considering it's been apart of any default windows install since Windows 95. 0_o

http://img12.imageshack.us/img12/74...

I hate MS.

PowerMac 9600(1 ghz G4)
512mb RAM
50gb SCSI
ATi 9200 PCI


Report •

#5
March 18, 2009 at 10:53:33
Some people just can't admit when they are wrong. And, Outlander, you never answered my questions.

EEOC


Report •

#6
March 18, 2009 at 11:01:49
I've never had a single machine do an auto defrag. You must have run something that started it.

Report •

#7
March 18, 2009 at 11:04:56
If you actually read my first post, your question was answered in there.

Yes, SOME people can't admit they are wrong, look in a mirror.

Read my other post, I posted a picture of the tool and where it says "Optimize hard drive while idle" option with it checked. THIS IS BY DEFAULT ON ALL WINDOWS INSTALLS!

There is the reg edit for "BootOptimizationFunction" and then you need the tweakUI tool to disable it if that does not work.

PowerMac 9600(1 ghz G4)
512mb RAM
50gb SCSI
ATi 9200 PCI


Report •

#8
March 18, 2009 at 11:29:34
Outlander

It appears to me that AFTER installing TweakUI those settings are enabled. I looked at many of the OTHER default settings in tweak and I KNOW for a fact those particular settings are not currently enabled. I haven't as of yet rebooted, so the default tweak UI settings haven't taken effect.

Possible you always install tweak and that is how defrag is enabled. My system runs 24/7 and I still occasionally need to defrag. How would you explain that? If the default is to defrag when idle I would think that my system would never need to manually be defragged.


Report •

#9
March 18, 2009 at 11:50:14
"Read my other post, I posted a picture of the tool and where it says "Optimize hard drive while idle" option with it checked. THIS IS BY DEFAULT ON ALL WINDOWS INSTALLS!" I saw that screen shot. It's of Tweak. Not related to default Windows installs in any way.

EEOC


Report •

#10
March 18, 2009 at 11:53:27
Edit: When I first started to reply to this post there were none but by the tme I did so there were ten so I have now changed my reply to this text which used to suggest a third party application being involved.

Bryan


Report •

#11
March 18, 2009 at 11:55:15
You can't argue with misinformed people who insist they know what they are talking about. I am sure this arrogance has caused other issues in Outlander's life.

Outlander you have confused boot optimization process with defragmentation.

defragfat belongs to Diskeeper.
http://www.liutilities.com/products...

MS defrag file is dfrg.msc and is limited in features which does not include a boot time defrag like Diskeeper does.

Windows 98 defrag was defrag.exe which also was limited with no boot time defragmenter which was why I used speeddisk and others to defrag at boot.

Your history is wrong.

You made a huge leap with TweakUI. That box you check schedules defrag to run which is not the same thing as boot optimization function as revealed by bootvis. You might want to review this concerning prefetch and the amount of time

http://www.technologyquestions.com/...


Report •

#12
March 18, 2009 at 11:57:45
"You can't argue with misinformed people who insist they know what they are talking about. I am sure this arrogance has caused other issues in Outlander's life."

wanderer, thus my signature. Applies to many :)

EEOC


Report •

#13
March 18, 2009 at 12:01:15
Defragfat belongs to diskeeper... LOL!!!! OMG!

remind me to never post in the windows XP section again with an intelligent question... wow... lol.

defragfat is windows xp default defragment utility for "FAT32" filesystems, I don't use NTFS unless I have to.

wow, just wow.....

and TweakUI gives the user the option to to disable the defrag while idle option not available unless the tool is downloaded. I'm sure there is a registry entry somewhere so users dont have to download the tool, but I don't know where it is.

PowerMac 9600(1 ghz G4)
512mb RAM
50gb SCSI
ATi 9200 PCI


Report •

#14
March 18, 2009 at 12:17:22
"And don't feel bad if you didn't know about the windows autodefrag, I'd say 95% of the users don't realize it. Sad considering it's been apart of any default windows install since Windows 95. 0_o" That's not true either.

EEOC


Report •

#15
March 18, 2009 at 12:54:28
Outlander

Wanderer is correct. I did some checking and the tweakUI isn't for defrag, it is for optimize. That rearranges files on the hard drive for faster file access. Not the same thing as defrag.


Report •

#16
March 18, 2009 at 14:25:41
I have a question. What win files are used for the optimize?

Report •

#17
March 18, 2009 at 19:08:57
If I may interject my 2 cents worth.
Actually Outlander is both right and wrong in this particular situation. The process is checked and the system does optimize the computer during idle and is set to default. The problem is that it is a carry over from windows 98 and Tweak UI just continues to show it. Checking or unchecking the box does absolutely nothing at all. There is no registry key to do this. And if one does exist it is installed by the User or by a third party apt so as to be totally controlled for optimizing the hard disk.

This was hit on above

With that said...XP does by default optimizes the boot sector of the drive when idle....from Microsoft “Accepted values for this entry are Y or N. If the entry is set to Y, Windows automatically optimizes the file location for boot optimization. This optimization occurs automatically if the system is idle for 10 minutes. Boot optimization improves startup time by locating startup files in contiguous clusters on the volume, reducing the movement of the disk head when reading the volume.”the registry entry for this is:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]

"Enable"="Y" (Y = defrag will optimize for boot and app launch)

This does not defrag the system files only a small portion of the boot and a small portion of the application launch. and only within certain perimeters... This is not true defrag as the term implies only the Laying Out of pages used in boot and application launch in a contiguous form on hard disk during idle time and is controlled by prefetch.
From Microsoft The prefetcher service parses both the boot and application launch scenario files, determines what pages to be prefetched, and builds a file named %windir%\prefetch\layout.ini. Layout.ini is used for defrag to lay these pages out contiguously on disk for improved disk I/O.

Layout.ini is built after 32 application starts. It is also built periodically after boots excluding the first boot which runs the out of box experience. Layout.ini is generated and a defrag initiated by the prefetcher service after an idle timeout of approximately 5 to 30 minutes after boot.

The following registry keys can be monitored for status as well as the timestamps on the layout.ini and boot prefetch scenario files.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher]
"LastDiskLayoutTime"=hex:30,cb,3d,2b,34,ed,c0,01
"LastDiskLayoutTimeString"="2001/06/04-13:23:08" (should match time on layout.ini)

The point being is that Xp will optimize the boot sector for faster starts and quicker application launches by default. This occurs transparently for end-users. This is not a bad thing and should be left alone as it is less than 5 to 12 seconds of time and is automatically delayed when system is brought back to service. There is just no way for this to have any impact on the user.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
"FileTimeStamp"=hex(b):30,cb,3d,2b,34,ed,c0,01
"OptimizeComplete"="Yes" (yes = layout completed successfully)

Change Is Good
http://www.citizenlink.org/Stopligh...


Report •

#18
March 18, 2009 at 19:16:11
Thanks for clearing that up for us lurkswithin. I tried to find some info on that and came up short.

So then when installing TweakUI the ticked boxes are already enabled before installing tweak? That doesn't seem to mesh with my settings.


Report •

#19
March 18, 2009 at 20:17:12
OtheHill,

TweakUI sets up varible options to tweak your system specifically for you the user. On first installing the application there are some items that are prechecked but are only suggestions for you the user to utilize if and only if you hit the apply button when you first use it. Those settings are just general settings that tweak can perform and suggests that you do this (for those that are not that savvy). Outlander is mistaken that this is already performed for you...it is only a suggestion by tweak. It only becomes true when you apply it the first time. then tweak changes the registry keys for you....

The point is that checking the Optimize While Idle box, then hitting apply does not work...period. There is no Key for this to be applied to. It just does not exist in windows XP. The key did exist in windows 95 and 98 but was removed when NTSF file system came along. TweakUI just did not remove the option from the application so it is a carry-over option that doesn't work. Tweak does not insert or change any registry settings for this option when checked or unchecked.

The ironic part is that OutLander was correct in stating that this is a default setting within windows XP (really all winOS that use the NTFS format).

The default settings are through the prefetch system as stated above... and only after the first out of box boot has performed its initial checks. On the second boot and if given adequate idle time (not set) between 5 and 30 minutes depending on the system itself and what is installed.

This may not happen for the first 31 boots of the system. Ater the 32 boot-up then the layout.ini file is forced to be installed and ran. But note that this only causes a slight hick-up in the system when done the first time.

Change Is Good
http://www.citizenlink.org/Stopligh...


Report •

#20
March 19, 2009 at 04:19:27
lurkswithin, thanks from me as well for the clarification.

Outlander?

EEOC


Report •

#21
March 19, 2009 at 05:31:41
Very informative. It is a good day when you learn something new.

Report •

#22
March 19, 2009 at 10:13:54
TweakUI shows some settings that are not normally accessible to the user by default. When TweakUI is launched it displays the options that are "currently enabled".

I use FAT32, NOT NTFS. I have my reasons for sticking with FAT32 and am not going to get into that. ANYWAYS... on a default install of winblows XP, it will launch a defrag when the computer is idle. For NTFS this might be just the boot optimization that it not really noticeable, BUT.. I use FAT32 and winblows XP will launch the full defrag utility (defragfat.exe, defragfat32.exe, defrag.exe, etc. turned it off, so I cant see it anymore) if the computer is idle for around 15-20 mins. And yes, even though Vista does not support FAT32, even Vista(Crapista) runs a defrag utility in the background which can be disabled.

This is why I did not want ill-informed people posting about this issue to avoid a fight. On a default winblows install (especially with FAT32) it will launch the defrag utility when idle. There is a registry key to disable it(which TweakUI displays as a check box), along with the boot optimization key. Since I can not remember the other reg key, or entry, TweakUI worked just the same. I had to do some digging with google, past a few pages, to find the TweakUI post on another forum, I totally forgot about TweakUI.

Remember, TweakUI DOES NOT "ADD" NEW FEATURES. TweakUI simply illuminates the options to turn off certain features in windows that are not visible by default. (like the option in windows explorer to display or hide hidden or system files without using TweakUI, TweakUI just display more options, get it?)

Long story short, even if I can't remember the proper reg key, the option was in TweakUI and I disabled it. No more background defraging.

PowerMac 9600(1 ghz G4)
512mb RAM
50gb SCSI
ATi 9200 PCI


Report •

#23
March 20, 2009 at 12:49:33
Outlander,

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout]

"EnableAutoLayout"=dword:00000000

Found in TweakUI under the “General” section, “Optimize hard disk when idle”

The problem here is that the key is shown but is no string to be changed so in reality the tweakUI can not switch this off and on because TweakUI can not write registry strings. Again in order for this key to be a legitimate registry key to be edited it must have the value string written in order to be set. Which this key does not have. Either you or some other program has to do this.
**********************************************************
The built in boot optimizer when intiated is scheduled to run every three days

This is the default setting when it is activated. If it is running every time you boot your computer as you stated then you or some program had to not only write the string to enable it but change the switch to a different setting to run it every day.
**********************************************************
Directly from Microsoft:

Disable Background disk defragmentation:
Add the following registry keys to your run-time image:

Key Name:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction\
Name: Enable
Type: REG_SZ
Value: N

Disable Background auto-layout:

Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout
Value Name: EnableAutoLayout
Type: REG_DWORD
Value: 0

For more information about how to add this registry key to your configuration, see Adding Registry Data to a Configuration in Windows XP

I point out that even Microsoft tells you to ADD the keys to your configuration.

*********************************************************
Now to be fair about this, Microsoft also says :

To maximize EWF performance, the disk defragmentation and auto-layout services should be disabled. The disk defragmentation service rearranges data on the disk to create contiguous sections of data. Additionally, the auto-layout service moves the most-used data closer to the center of the disk to expedite boot time. These services, if enabled, can impact the performance of EWF by adding unnecessary information to the overlay.

The term if enabled speaks to me that it is not always enabled by default settings.
**********************************************************
According to you :
TweakUI shows some settings that are not normally accessible to the user by default. When TweakUI is launched it displays the options that are "currently enabled". On 1 new install and 4 other older installs, Tweak UI shows the checked box but I assure you that the registry keys on those systems are not enabled at all. This goes back to what I originally stated that this feature is a left over from the older versions and was not removed by the latest revamping (which by the way was 5 years now).
**********************************************************
So, for you to come out and state:
Yes Windows XP has an automatic defrag feature that is turned on, on every single install, if you do not know this, then don't bother posting please. I don't want a bunch of "windows xp doesn't have an auto defrag feature" posts because it does. I really don't know why MS thought it would be a good idea to include this "feature".
kind of points to the fact that you saw something or read it somewhere and then decided it was always this way and no other possibility exists just shows you to be a tad bit misinformed and a whole lot arrogant as hell.

As to the snide remarks about ill-informed people...maybe you need to add yourself to that list. Microsoft says it straight out that it is not enabled on all systems and that registry strings have to be added to enable it.

Change Is Good
http://www.citizenlink.org/Stopligh...


Report •


Ask Question