![]() |
Disk Defragmenter Problems |
Note: You should back up the registry before you edit it.
To cause Disk Defragmenter not to allow a screen saver to start if Disk Defragmenter is running:
1.Start Registry Editor.
2.Create a Defrag key in the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets
3.Create a Settings key in the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Defrag
4.Create a string named DisableScreenSaver under the following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets
\Defrag\Settings
5.Edit the value "Default".
6.Change the value to "YES".
7.Quit Registry Editor and restart Disk Defragmenter. Screen savers will be disabled.
NOTE: Screen savers are not disabled under the following conditions:
When Disk Defragmenter is started from a scheduled task.
When Disk Defragmenter has finished defragmenting the drive that was
selected and is waiting for user input.
1. Disk Defragmenter Hangs After Choosing Disk
2. This occurs due to corrupt files, folders, or bad sectors on your hard disk.
3. To work around this behavior, delete the following files and folder:
4. Click Start, point to Settings, and then Click Folder Options.
5. Click the View tab, click Show all files, Click Apply and then click OK.
6. Delete the Applog folder from C:\Windows, and then run the Disk Cleanup Tool.
7. The Disk Cleanup Tool provides an easy interface to remove temporary internet files, .tmp files, and other optional components. To start the Disk Cleanup Tool:
8. Click Start, point to Programs, point to Accessories, point to System Tools, and then click Disk Cleanup.
9. Select the drive you wish to clean up, and then click OK.
The Disk Cleanup menu is displayed with the files that you need to delete are already selected. NOTE: If you wish to take this opportunity to remove other items that are not automatically selected you can do so. If you are not familiar with the Disk Cleanup Tool, you might want to remove the items at a later date.
Q186099 Description of the Disk Cleanup Tool in Windows 98
After you have removed the Applog folder and the temporary files in the steps above, run ScanDisk and then run the Disk Deframenter again.
Real Mode Scandisk
NOTE: Windows Millennium Edition (Me) does not include real mode support. If needed, you can start your computer with the startup disk, and then run ScanDisk.
If you run the ScanDisk utility and it doesn't find any errors, and then you try to run the Disk Defragmenter utility in Safe mode and it still does not complete, try to run ScanDisk from an MS-DOS prompt (real-mode).
First, configure ScanDisk to detect disk timeouts and check each cluster five times while performing a surface scan. To do so, follow these steps:
1. Find the Scandisk.ini file in the Windows\Command folder. Double-click the file, and if prompted, use any text editor (such as Notepad) to open the Scandisk.ini file.
2. Find the [Environment] section in the file. If the section does not
exist, use the example below and create an [Environment] section with these
parameters:
[Environment]
ScanTimeOut=On
NumPasses=5
3. Note that the "ScanTimeOut=" and "NumPasses=" lines may already exist, but with different values, if they do, change the existing values.
4. Save and then close the Scandisk.ini file.
5. Click Start, click Shut Down, click Restart the computer in MS-DOS mode, and then click Yes.
6. At the command prompt, type the following line and then press ENTER
to run ScanDisk
scandisk <drive>:
*where <drive> is the drive letter of the hard disk you want to
check. Note that you should run a surface scan when ScanDisk prompts you
to do so, repair any errors that ScanDisk finds, and view and save the
log file that ScanDisk creates.
7. When ScanDisk is finished, type exit and then press ENTER to return to Windows 98.
Run Disk Defragmenter again.
If you still have problems after you complete the steps above, it may be necessary for you to run a diagnostic utility designed for your specific hard disk. If you do not have the diagnostic utility that came with your computer, contact your hardware manufacturer.
The third-party products discussed in this article are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.
More on using Disk Defragmenter
Q186978
Disk Defragmenter: Drive's Contents Have Changed: Restarting...
Q259030
APC PowerChute Plus Causes Disk Defragmenter to Hang
When Disk Defragmenter optimizes programs, it logs information about this optimization in a file named Optlog.txt. The Optlog.txt file is located in the Windows\Applog folder. To determine the programs that are optimized by Disk Defragmenter, use the following steps:
1.Click Start, point to Find, and then click Files Or Folders.
2.In the Named box, type optlog.txt, and then click Find Now.
3.Double-click the Optlog.txt file, and then scroll to the Programs
Eligible For Optimization section. Programs that are optimized by Disk
Defragmenter are listed under this section.
Disk Defragmenter optimizes a program by moving the executable files and supporting files to a contiguous area of your hard disk. This can significantly decrease the time it takes to start the program.
Programs that are not optimized by Disk Defragmenter are listed under the Programs Ineligible For Optimization section. The programs that are not optimized do not have improved start times. These programs are flagged in the Optlog.txt file with the reason the program is not optimized.
Flag Description
S Log size smaller than <minimum log size>
U Program not used for more than <maximum no used days>
P No profile for program
E Associated program no longer exists
D Log deleted (may be combined with one of the above)
Microsoft Windows 98
Microsoft Windows 98 Second Edition
Microsoft Windows Millennium Edition
When you run the Disk Defragmenter tool in Windows 98, you may receive the following error message:
Error Defragmenting Drive C
Windows cannot finish defragmenting this drive because it has encountered a problem. Click Help and carry out the instructions for running Scan Disk, and then try defragmenting again.
ID No:DEFRAG00205
This can occur if the Applog file in the hidden C:\Windows\Applog folder is damaged.
Follow these steps:
1.Right-click an empty area on the desktop, and then click Properties.
2.On the Web tab, click Folder Options.
3.Click Yes.
4.On the View tab under Hidden files, click Show all files, and then click OK.
5.Click Start, point to Find, and then click Files or Folders.
6.In the Named box, type applog, click C: in the Look in box, click to select the Include subfolders check box, and then click Find Now.
7.Double-click the Applog folder to open it.
8.On the Edit menu, click Select all.
9.On the File menu, click Delete, and then click Yes when you are prompted
to confirm the deletion.