Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 12:17:45 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ImportListFromBootOptimize  (Read 3602 times)
rlarno
JkDefrag Supporter
***
Posts: 15


View Profile
« on: February 26, 2009, 10:08:30 pm »

Jeroen,

Does the ImportListFromBootOptimize function import the list from the volume it is working on or from the currently running volume?

I have a disk with 2 partitions:
C: is Win XP SP3
D: is Win Vista SP1

If I boot in Win XP and run SlowOptimize on the D: drive, what does "%SystemRoot%\Prefetch\Layout.ini" translate into?
Normally, in batch-file expansion, it would come up with "C:\Windows\Prefetch\Layout.ini" right? Now what I would like it to expand to while running "SlowOptimize.MyD D:" is the Vista Layout.ini file, since what I intend to do is optimize the Vista partition.

Thx, Rudi
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: February 26, 2009, 10:52:06 pm »

Does the ImportListFromBootOptimize function import the list from the volume it is working on or from the currently running volume?
Neither. The "%SystemRoot%" is a Windows setting. If you have booted XP then it should point to your XP windows folder, if you have booted Vista it should point to the Vista folder.

Quote
If I boot in Win XP and run SlowOptimize on the D: drive, what does "%SystemRoot%\Prefetch\Layout.ini" translate into?
See your "c:\Program Files\MyDefrag\MyDefrag.log" file, but I think it will be "C:\Windows\Prefetch\Layout.ini". MyDefrag contains a test and will only apply the boot optimization sorting to the volume where it found the "%SystemRoot%\Prefetch\Layout.ini" file, in this case "C:".

Quote
what I intend to do is optimize the Vista partition.
Boot Vista and run MyDefrag there. If you run MyDefrag in XP for the Vista disk then it will not be boot-optimized (at all), so you may want to use the "-e" commandline option to exclude the Vista disk while in XP, and vice-versa.
Logged
rlarno
JkDefrag Supporter
***
Posts: 15


View Profile
« Reply #2 on: February 26, 2009, 11:11:51 pm »

Jeroen, thanks for the explanation.

I should have known it works that way, since as you point out, it is a windows environment variable.

So.... the question then becomes: is it possible to find/detect the layout.ini to use on a certain volume, and thus optimize according to that file.
Its not as simple as it seems, as a disk can contain multiple installations: XP, Win2003 on a single partition. Vista (afaik) always needs to be installed on its own partition.

But if there were to be only one single \Prefetch\Layout.ini file on a volume, and you are processing that volume, would it be possible to use it?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: February 27, 2009, 10:22:03 am »

But if there were to be only one single \Prefetch\Layout.ini file on a volume, and you are processing that volume, would it be possible to use it?
I suppose so, yes. Please note that the contents of the file is a long list of filenames. The filenames must exactly match the current situation, in other words, the volume must be mounted on the same drive. For example, your Vista disk is mounted on D: when XP is booted, but is it also mounted on D: when Vista is booted? If not then the contents of the file will be different.
Logged
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #4 on: February 27, 2009, 12:57:24 pm »

In time I have played with PerfectDisk and its Boot optimization, there were several options for it.

AFAIK basicly there were 2 level of optimization:

1st: real boot file optimization
2nd: 1st level + frequently used files from layout.ini

first level was usually small and about constant.
Second was much bigger and was changing often, causing disk start zone reordering.

According to size, I would bet MyDefrag uses the 2nd one.
Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #5 on: February 28, 2009, 11:48:43 am »

Inspired by this thread I got an idea and looked in my layout.ini.
As I have most of my programs and windows user profiles on my D: drive (Not my OS drive), I assumed that the layout.ini file should have many references to my D: drive and I was right.
Based on this thread and the help, ImportListFromBootOptimize will only work for the OS drive (Mine is C:)
This means I can only partly optimize my boot process using MyDefrag with the ImportListFromBootOptimize feature.
It seems unnecessary to restrict ImportListFromBootOptimize to the OS drive.

jonib
Logged

jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #6 on: February 28, 2009, 09:15:34 pm »

It seems unnecessary to restrict ImportListFromBootOptimize to the OS drive.
Are you saying that your layout.ini files contains references to files on both the C: disk and the D: disk? That is interesting, I didn't think that was possible. If so then it is better that I remove the test, it is only there for performance reasons (skipping the import).
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #7 on: February 28, 2009, 09:23:03 pm »

It seems unnecessary to restrict ImportListFromBootOptimize to the OS drive.
Are you saying that your layout.ini files contains references to files on both the C: disk and the D: disk? That is interesting, I didn't think that was possible. If so then it is better that I remove the test, it is only there for performance reasons (skipping the import).
Yes my layout.ini contains references to both my C: and D: drives, on my WinXPsp2 system.

jonib
Logged

jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #8 on: February 28, 2009, 09:25:35 pm »

Yes my layout.ini contains references to both my C: and D: drives, on my WinXPsp2 system.
Ok, thanks for the feedback!
Logged
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #9 on: February 28, 2009, 09:40:25 pm »

My bootOptimize part of "Zone 2" is estimated to have 3-4 GB size on vista64.
Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
DIRTY_DEALER
JkDefrag Senior
****
Posts: 20


View Profile
« Reply #10 on: February 28, 2009, 09:42:37 pm »

My boot.ini also has files listed on c, d, and e drives. All these files get sorted.

Windows XP 64bit
Logged
rlarno
JkDefrag Supporter
***
Posts: 15


View Profile
« Reply #11 on: March 03, 2009, 06:14:06 pm »

Please note that the contents of the file is a long list of filenames. The filenames must exactly match the current situation, in other words, the volume must be mounted on the same drive. For example, your Vista disk is mounted on D: when XP is booted, but is it also mounted on D: when Vista is booted? If not then the contents of the file will be different.

You are quite right, my scenario of booting one partition to be able to better optimize the other partition no longer makes sense. Thanks.

Yes my layout.ini contains references to both my C: and D: drives, on my WinXPsp2 system.
Whoo, big eyeopener for me, did not expect this either. Makes the whole 'bootoptimize' a whole level harder I assume. As I assume that the current logic of mydefrag is to process a volume at a time and not process the bootoptimization for all non-removable and mounted volumes as a whole? Right?

Now, I would not really expect this as a standard feature of MyDefrag. Would be nice, though  Grin
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #12 on: March 05, 2009, 07:29:16 pm »

As I assume that the current logic of mydefrag is to process a volume at a time and not process the bootoptimization for all non-removable and mounted volumes as a whole?
Not as a whole, no. MyDefrag will read the "layout.ini" when processing a volume, and simply ignore listed files that are not on that particular volume.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!