© J.C. Kessels 2009
How to use MyDefrag from a bootable CD-ROM or memory stick?Tip: Is MyDefrag installed on your harddisk? Then you can boot from a standard bootable CD-ROM, navigate to MyDefrag on the harddisk and just run it. No need to construct a special CD-ROM.
It is possible and relatively easy to use MyDefrag as a "portable" program. MyDefrag is a single program called "MyDefrag.exe", fairly small and completely standalone (it only uses standard Windows DLL's). Basically all you need to do is make a copy of the program, and make a copy of the MyDefrag script that you want to run. All the other files in the MyDefrag distribution are extra's and are not essential to run MyDefrag.
Boot optimization does not workMyDefrag optimizes your disk(s) for the currently booted Windows, which in this case is the CD-ROM (or memory stick or whatever). Not your harddisk. MyDefrag uses the "%SystemRoot%\Prefetch\Layout.ini" file for the boot optimization. If all the volumes are mounted on the exact same drive letter as when you have booted normally, and the CD-ROM method uses a ramdisk, then perhaps you can copy the layout.ini file from the harddisk to the place where MyDefrag expects to find it:
WarningDo not hibernate your computer, then boot with something else (such as BartPE), and then change the hibernated disk in any way. This will corrupt the disk, a known hibernation problem. MyDefrag contains a test and will refuse to process hibernated disks.
See also:Frequently Asked Questions