Bypass Windows 98's never-ending defrag operation

By Greg Shultz, Special to ZDNet Asia
Friday, October 22, 2004 01:46 PM


This article originally appeared in TechProGuild.

If you're supporting the Windows 98 operating system, chances are that you've encountered the mind-numbing problem in which Disk Defragmenter is unable to complete a defrag operation. In this situation, Disk Defragmenter works normally until it gets to about the 10 percent complete marker. Then, it stops and displays a message like the one shown in Figure A.

Figure A: Disk Defragmenter never gets past the 10 percent complete marker before it starts all over again.

When this happens, the logical thing to do is to stop Disk Defragmenter and make sure all open applications are shut down, even those that run in the background, and then rerun Disk Defragmenter. However, once Disk Defragmenter hits the 10 percent complete marker, it again displays the same message and starts all over at the beginning of the hard disk. At this point, you may even restart the system in Safe Mode and try running Disk Defragmenter from there. Again, Disk Defragmenter starts over when it hits the 10 percent complete marker. This scenario plays over and over no matter what you do.

Fortunately, I've discovered an interesting technique that takes advantage of a hidden tool buried on the Windows 98 CD. This technique will bypass all these drive contents change interruptions and allow Disk Defragmenter to perform a full defragmentation operation on a Windows 98 system that is experiencing the never-ending defrag operation. In this article, I'll examine the cause of this problem in more detail, as well as introduce you to my full defrag technique and explain how it works.

A theory for the never-ending defrag operation
While many of my IT colleagues have offered all sorts of theories on what causes Disk Defragmenter to choke at the 10 percent complete marker--everything from a Microsoft plot to drive users nuts to the tidal effects of the moon--I’ve never been able to find a definite answer. And, yes, I even investigated the Microsoft Knowledge Base, which roots the problem in active applications accessing the hard disk and suggests shutting down all running programs. However, I’ve experienced this problem firsthand many times and found that none of the obvious explanations seems to offer a solution to the problem of the never-ending defrag operation.

Over the years, I developed my own theory and solution, which after time-tested examination, seems to be as good an explanation as I’ve encountered. In order to get a handle on what is causing Windows 98’s Disk Defragmenter to choke at the 10 percent marker, I began to investigate how this utility goes about doing its job.

There are basically three stages that Disk Defragmenter goes through when defragmenting your disk. Each of these stages can be demarcated at the percent complete values that Disk Defragmenter displays in its status bar. During the 0 and 4 percent complete values, Disk Defragmenter is actually running a special version of ScanDisk for Windows in order to check the disk for errors before doing anything with the files. If an error is found, Disk Defragmenter halts operation and prompts you to run the ScanDisk for Windows. If no problems are found on the hard disk, Disk Defragmenter enters the next stage. During the 5 to 9 percent complete values, Disk Defragmenter is essentially plotting out a road map of the best locations on the hard disk to use when it actually begins moving the files.

Once these preliminaries are complete, Disk Defragmenter begins moving the files and placing them in contiguous order on the disk. This stage begins at the 10 percent complete value and continues on to the 100 percent complete value. When Disk Defragmenter has a problem at or around the 10 percent complete value (which causes the utility to stop, display the error message, and start all over), it’s apparent that Disk Defragmenter is encountering a problem when it begins moving chunks of data that it finds somewhere towards the beginning of the hard disk.


A quick restart
When Disk Defragmenter encounters a problem that causes it to restart, you’ll notice that it very quickly moves past 0 to 4 percent complete values and picks up where it left off. This is because the ScanDisk activity occurs only when Disk Defragmenter is started and is not repeated if Disk Defragmenter is forced to restart because of disk activity.



2 3 Next 

WORTHWHILE?

0

0 votes
Save to my library  Save to My Library  
Blog

Talkback 3 comments

Any suggestions on where I can go to download defrag.inf? I am unable to locate the CD that you speck of...and I have been unable to find a downloadable version. Regardless, thanks for your article.
Posted by anonymous on Monday, April 11 2005 03:30 AM

When I set up to run the disk defrag the pause button is on and the system is frozen and will not activate. Any suggestions how to fix?
thanks.
Posted by joe pare on Wednesday, May 04 2005 04:10 AM

You don't need the defrag.inf file. You can use the defrag.exe file in the windows driectory, and create the registry key yourself. In the registry editor, go to the LOCALMACHINE/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/RUNSERVICEONCE folder. Then enter your own string by right clicking in the right hand window, selecting new - string. Double click on the string you just created and enter C:WINDOWS/DEFRAG.EXE as the value for that string. Then exit the registry and restart your computer. The defragmentation software will come up before you log in. Don't forget to do the vitual memory shut down outlined in this article. It all worked for me.
Posted by Corrie Block on Thursday, December 22 2005 08:51 PM

Use shades of gray to enhance scale in Excel

Microsoft Office Suite

Excel's palette is generous, but don't throw buckets of pigment all over your spreadsheets just because you can.


Read more »


Ultimate 2012 recovery site: the moon

Blog thumbnail

Have you seen the disaster movie "2012"? A friend from Control Risks and I did, and we reluctantly concluded we wouldn't be able to write off the cost of our..... by Nathaniel Forbes

Read more »

Tech Jobs Now!


Tags

  1. antivirus
  2. apple ipod
  3. cnet networks inc.
  4. desktop
  5. e - mail
  6. hard drive
  7. intuit inc.
  8. mcafee inc.
  9. microsoft corp.
  10. microsoft windows
  11. microsoft windows vista
  12. microsoft windows xp
  13. norton co.
  14. pc
  15. performance
  16. security
  17. software
  18. tool
  19. web
  20. web site