Error message prevents drive defragment in XP

  GarySimpson 17:48 27 Sep 2006

My problem is that I cannot defragment my C: drive because Windows keeps reporting an error message and stopping the process. The error message reads "The scan has been canceled because an error occurred in file C:\WINDOWS\setupapi.log.0.old". Scandisk shows no errors on the C: drive which has 26% free. Any suggestions?

  VoG II 17:56 27 Sep 2006

Have you tried deleting C:\WINDOWS\setupapi.log.0.old ?

  GarySimpson 01:01 28 Sep 2006

Yes, I've tried deleting the file. Now, defragmenter stops with a different error message: "Drive (C:) may be corrupted. To check and fix the drive, run chkdsk /f." I've tried this a couple of times, but chkdsk doesn't find any problems with the disk. Other drives defragment normally.

  GarySimpson 01:16 28 Sep 2006

Now, if I continue to attempt to defragment, I come up with another erroe message saying that "the scan has been canceled because of an error in file: C:\WINDOWS\$HF_MIG$. This is a folder which contains a number of files connected to the Windows Service Pack. Do I really want to try deleting this? Is it time to try and reinstall Windows?

  terryf 02:33 28 Sep 2006

Click Start, point to Programs, point to Accessories, point to System Tools, click System Information, and then click System File Checker on the Tools menu.

  GarySimpson 09:23 28 Sep 2006

What am I looking for?

  Eric10 09:48 28 Sep 2006

Run a full disk check on your C: drive. Right-click your C: drive > Properties > Tools tab > 'Check Now' button under Error-checking > tick both boxes then agree to run the check at the next boot up. Restart your PC and it will run a full surface scan on the hard drive and attempt to repair any damage that it finds. This can take a long time depending on the size of your hard drive and the amount of damage (if any) and runs through 5 stages but it is very thorough and can fix a lot of problems.

  GarySimpson 18:56 28 Sep 2006

Thanks for that. I've tried it, and the scan found no problems, but the error remains just the same. Now it's reporting "The scan has been canceled because an error occurred in file "C:\WINDOWS\ODBC.INI"

  VoG II 19:25 28 Sep 2006

It sounds to me like there is something wrong with Windows Defragmenter.

See if Diskeeper lite will defrag it for you click here

  Jackcoms 20:04 28 Sep 2006

Have you tried defragging with your AV disabled?

  GarySimpson 08:08 29 Sep 2006

Thanks everyone. Defragging with AV disabled didn't work, but diskeeper lite has done the business. Thanks for all your help.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

iPhone X review

Political cartoons in 2017: Chris Riddell, Rebecca Hendin and Dave Brown on what it’s like to…

The best iPhone for 2017

Tennis : comment regarder la finale de la Coupe Davis 2017 ?