Prefetch How to manually create layout.ini

G

Guest

Hello everyone

I have had experiences with windows xp for a long time with prefetch. If the
layout.ini file ever gets deleted either because windows get angry somehow,
or the file get corrupted, it takes like a month for windows to rebuild the
layout.ini file. Yes, all the .pf files are there and files are added as new
programs are run. But, I know that the defragmenter perfectdisk 7.0 doesn't
see them because the layout.ini file does not exist (I assume that the built
in defragger won't put the files at the beginning of the disk either unless
layout.ini is there)

I need to know how to kick windows into rebuilding that layout.ini file asap!

Thank you very much
 
G

Guest

Also, about 15 minutes ago i heard of a command line:

defrag C: /b

this does not defrag the drive, just moves the files in the prefetch
database to the beginning of the drive, but it needs layout.ini to accomplish
this right?

also this command-line::

Rundll32.exe advapi32.dll,ProcessIdleTasks
 
G

Guest

and some wonderful posts from the thread:"Cleaning LAYOUT.INI"
Rundll32.exe advapi32.dll,ProcessIdleTasks


Prefetching is a self-maintaining utility. Many XP Tweakers find that
purging prefetch is an itch they have to scratch. If you empty it, after
the appropriate # of reboots it will repopulate the folder. However,
I've seen cases where the Layout.Ini will not get re-created and the
benefits of Prefetching are lost. Also, if you manually edit the Layout
file it may in effect corrupt it. If you're intent on doing it, Backup the
folder to a alternate location (Just in Case). Then purge it, Run all
your programs a few times, Reboot 4-5 times and then to force a
manual rebuild - Click Start, Run and enter the following String.
rundll32.exe advapi32.dll,ProcessIdleTasks [Enter]
Once the command completes, check the contents of Layout.Ini &
make sure the data is rebuilt. Run Defrag.

However, I would just leave the folder alone.

You can force a boot optimization by doing the following:
Start | Run | Type: cmd | OK |
Type:

defrag c: -boot

Hit Enter

Also...

Disk Layout can be manually forced by...
Start | Run | Type: cmd | OK |
Type:

Rundll32.exe advapi32.dll,ProcessIdleTasks

Hit Enter

[[It can take 10 to 15 minutes for idle tasks to complete. Task Manager will
report processes running, and the disk will likely be active during this
time.]]

To see what happened, navigate to >>>
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
Value Name: OptimizeComplete
Value Type: REG_SZ
Value Data: Yes or N
If Yes, boot optimization was completed.
If No there will be an entry in OptimizeError.

Value Name: OptimizeError
Value Type: REG_SZ
Value Data: Insufficient space or Insufficient Resources
 
B

bumtracks

wonder what does this one ...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout
EnableAutoLayout Dword 1
LayoutFilePath String C:\WINDOWS\Prefetch\Layout.ini

dooz?
 
W

Wesley Vogel

Rundll32.exe advapi32.dll,ProcessIdleTasks will rebuild the layout.ini file,
even if it has been deleted from %windir%\Prefetch. Layout.ini is the
OptimalLayoutFile. [OptimalLayoutFile] is the first line in layout.ini.

Manually create a layout.ini.
Paste these two lines in Notepad, including the brackets[]

[OptimalLayoutFile]
Version=1

Save the file as layout.ini in %windir%\Prefetch

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

Part of that was copied from one of *my* posts.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

TweakUI
[+] General
Optimize hard disk when idle

Optimize hard disk when idle
[[This allows Windows to rearrange files on the hard disk when the computer
is not in use to improve performance. This is a system wide setting which
requires a restart for changes to take effect.]]

TweakUI changes this key to 0 or 1...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout
Value Name: EnableAutoLayout
Value Type: REG_DWORD
Value Data: 0 or 1
0 = disabled
1 = enabled

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout
Value Name: LayoutFilePath (The path to layout.ini)
Value Type: REG_SZ
Value Data: C:\WINDOWS\Prefetch\Layout.ini

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
bumtracks said:
wonder what does this one ...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout
EnableAutoLayout Dword 1
LayoutFilePath String C:\WINDOWS\Prefetch\Layout.ini

dooz?


HesDeadJim said:
and some wonderful posts from the thread:"Cleaning LAYOUT.INI"
Rundll32.exe advapi32.dll,ProcessIdleTasks


Prefetching is a self-maintaining utility. Many XP Tweakers find that
purging prefetch is an itch they have to scratch. If you empty it, after
the appropriate # of reboots it will repopulate the folder. However,
I've seen cases where the Layout.Ini will not get re-created and the
benefits of Prefetching are lost. Also, if you manually edit the Layout
file it may in effect corrupt it. If you're intent on doing it, Backup
the folder to a alternate location (Just in Case). Then purge it, Run all
your programs a few times, Reboot 4-5 times and then to force a
manual rebuild - Click Start, Run and enter the following String.
rundll32.exe advapi32.dll,ProcessIdleTasks [Enter]
Once the command completes, check the contents of Layout.Ini &
make sure the data is rebuilt. Run Defrag.

However, I would just leave the folder alone.

You can force a boot optimization by doing the following:
Start | Run | Type: cmd | OK |
Type:

defrag c: -boot

Hit Enter

Also...

Disk Layout can be manually forced by...
Start | Run | Type: cmd | OK |
Type:

Rundll32.exe advapi32.dll,ProcessIdleTasks

Hit Enter

[[It can take 10 to 15 minutes for idle tasks to complete. Task Manager
will
report processes running, and the disk will likely be active during this
time.]]

To see what happened, navigate to >>>
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
Value Name: OptimizeComplete
Value Type: REG_SZ
Value Data: Yes or N
If Yes, boot optimization was completed.
If No there will be an entry in OptimizeError.

Value Name: OptimizeError
Value Type: REG_SZ
Value Data: Insufficient space or Insufficient Resources
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top