R. McCarty;
Excerpt from: John L. Joseph
Diskeeper Development Section
Executive Software
[I deleted the file layout.ini (in the same WINDOWS\PREFETCH directory). Then I rebooted my system
three times. This was to force the boot-related files to be re-evaluated and have their prefetch
data refreshed. I then opened a command prompt window and entered the command:
rundll32.exe advapi32.dll,ProcessIdleTasks
At this point, the file layout.ini was rebuilt.
I then forced a "boot optimization" by entering the command (in the command prompt window):
defrag c: -boot
It finished pretty fast, so I looked in the registry to see what happened:
HKEY_LOCAL_MACHINE
SOFTWARE
MICROSOFT
DFRG
BootOptimizeFunction
and the "OptimizeComplete" item was set to Yes. So I set the LcnStartLocation to zero and the
LcnEndLocation to zero, and ran the -boot again. These two fields are the logical cluster numbers1
of the beginning and ending of the boot-optimized "zone". The built-in defragmenter (and Diskeeper)
do not move files in this zone in order to honor the boot-optimization.
This time running "defrag" took longer and the LcnEndLocation was 363658, with the LcnStartLocation
being 345622. That's a range of 282MB on this volume.]
===
I had a problem with Prefetch not recreating the Layout.ini. I followed the steps above and it was
recreated.