Restore the Windows Defragmenter
(Windows XP / 2000 / 2003)

I've seen on several computers where the built in Disk Defragmenter not longer runs correctly. This often happens when you install a third party defragmenter like Diskeeper, then on uninstalling, it does not restore the built in one correctly.
Some of the problems you may encounter are, a box like the one shown here
Snap-in failed to initialize,
CLSID: {43668E21-2636-11D1-A1CE-0080C88593A5}
when you try to run windows defrag, or other times, the defrag window will show up, but the analyze and defragment buttons will do nothing.
Solution
The solution is actually quite simple. You need to re-register the defragmenters snap-in files, and the basic registry entries.
-
First open up a Command Prompt, this can be found at:
Start -> All Programs -> Accessories -> Command Prompt
-
Change into your windows\system32 directory. Your windows directory will be either windows or winnt. Type:
cd \windows\system32
-
Register the defrag components, by typing:
regsvr32 dfrgsnap.dll
regsvr32 dfrgui.dll

-
At this stage, you may find the defragmenter works. If not, there is one more step you can do.
Using Windows Explorer browse to your windows\inf folder.
In there you will find a file called dfrg.inf right click this file, and select Install.
-
Done!
UPDATE (21 July 2006):
John B left a comment below that is helping a lot of people, I've copied it up here to make it easy to find. Basically, make sure you have a paging file.
Anyone getting the "Disk Defragmenter Could not start" message and on Windows XP Home This is what worked for me. Go to Control Panel, Select System and select the Advance Tab. Now Select Settings Under Performance and again select the advance tab. Under Virtual Memory select Change. Make sure that the Paging File Size for selected Drive for the Drive partition you want to Defrag has either a custom at least 2 times the amount of installed RAM if the space is available or is set to System Managed Size. Once I did this Defrag started working again. I don't know how the Page file got turned off on my system but this has been driving me mad for months!! Hope it helps someone else out there !!!
John B :)
Feedback
3/10/2004 5:18 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you.. 3rd party software messed me up. Knew there was a fix, glad to know you!
18/10/2004 10:58 a.m.
# re: How To: Fix Windows Built in Defragmenter
Brilliant!
30/10/2004 8:09 a.m.
# re: How To: Fix Windows Built in Defragmenter
Hi, I've tried your method. But my built-in defrag.exe still doesn't work. The UI shows all ok. But when I press analyze or defragment, nothing happens. Please help. thanks.
6/11/2004 11:28 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thanks, mate ! It did work for me after installing and uninstalling diskeeper server 7.0. Any ideas why diskeeper server would not work on a win 200 advance server ?
8/11/2004 8:52 a.m.
# re: How To: Fix Windows Built in Defragmenter
I couldn't register those dll files. It said "dllregisterserver in dfrgsnap.dll failed. Return code was: 0x80040154" the same went for the drfgui.dll file. I tried the 2nd method but it still said snap in failed when i started the defragmenter. Do i need to restart the pc?
18/11/2004 7:00 a.m.
# re: How To: Fix Windows Built in Defragmenter
GOD LOVE YOU
22/11/2004 12:40 p.m.
# re: How To: Fix Windows Built in Defragmenter
Worked for me to after a failed uninstall of Diskeeper 9
24/11/2004 2:26 p.m.
# re: How To: Fix Windows Built in Defragmenter
Grime,
Have you tried this:
*At this stage, you may find the defragmenter works. If not, there is one more step you can do.
*Using Windows Explorer browse to your windows\inf folder.
In there you will find a file called dfrg.inf right click this file, and select Install.
This is posted as a last step as a fix for the problem you just described.
----------
Just wanted to say... This fix worked for me! And to think I was actually going to reformat my machine! Heh..
Sincerely,
TheCh0s3n1
24/11/2004 7:48 p.m.
# re: How To: Fix Windows Built in Defragmenter
Tried everything listed above; no dice. "dllregisterserver in dfrgsnap.dll failed. Return code was: 0x80040154"
29/11/2004 7:45 a.m.
# re: How To: Fix Windows Built in Defragmenter
Had the same problem, turns out that in SP2 you have to have "DCOM Server Process Launcher" enabled in administrative tools> services for the defragger to work. Otherwise the buttons on the defrag tool don't do anything. Set this service to "Automatic" and restart.
30/11/2004 9:39 p.m.
# re: How To: Fix Windows Built in Defragmenter
Plz,could you help me?
Every time i try to analyze or defragment hard drives,an error occurs:"Disk Defragmenter could not start."
I don't have any other 3rd party defragmenter.
Shall i get one if this problem cannot be solved?
1/12/2004 3:47 p.m.
# re: How To: Fix Windows Built in Defragmenter
TNX. The fix worked great. I tried to remove DISKEEPER v. 8
and Win 2k defragmenter quit but your fix got it working again.
TNX again DOC
12/12/2004 1:26 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thanks,
regsvr32 c:\windows\system32\dfrgsnap.dll fixed my problem that I have just spent a couple of hours trying to find the answer for (had already run regsvr32 c:\windows\system32\dfrgui.dll and regsvr32 c:\winnt\system32\dmdskmgr.dll).
The answer is always "out there", youve just got to find it
12/12/2004 12:42 p.m.
# re: How To: Fix Windows Built in Defragmenter
I also have tried everyhting, but still no go. Even down loaded diskeeper and even that gave an error message not able to initialize
13/12/2004 1:46 p.m.
# re: How To: Fix Windows Built in Defragmenter
I too am still struggling with this....any ideas??
15/12/2004 10:44 a.m.
# re: How To: Fix Windows Built in Defragmenter
Every time I try to analyze or defragment hard drives,an error occurs:"Disk Defragmenter could not start."
I don't have any other 3rd party defragmenter. I also have SP2 installed, I tried you method and still the same message pops up?
Shall I get one if this problem cannot be solved?
27/12/2004 3:41 a.m.
# re: How To: Fix Windows Built in Defragmenter
tried both ways.
was getting same message as "coli" from 11/08/04 post.
any other ideas?
27/12/2004 1:45 p.m.
# re: How To: Fix Windows Built in Defragmenter
try running an xp repair from your app/support cd
8/01/2005 3:23 p.m.
# re: How To: Fix Windows Built in Defragmenter
I had the same problem. Here you go, try this:
Try running the file named " " in the system32 folder. It might complain about a file named "odbcbcp.dll". If so, "EXPAND" this file from your WindowsXP CD to the System32 folder. Taht should to it.
-GREG
example command:
EXPAND D:\i386\odbcbcp.dl_ c:\windows\system32\odbcbcp.dll
12/01/2005 8:51 a.m.
# re: How To: Fix Windows Built in Defragmenter
my defrag program starts but then aborts and says there are inconsistensies in the filesystem. Can you help? PLEASE??!!
Thank you,
JIll
13/01/2005 12:21 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thanks A lot !! my defrag has finally returned insted of that crappy diskeeper software...
15/01/2005 5:02 a.m.
# re: How To: Fix Windows Built in Defragmenter
Greg says:
"Try running the file named " " in the system32 folder"
Named what?
I would realy want to try your method, because
my Defrag. still "could not start", even after I tryed
ALL of the above methods.
Any more ideeas will be greately apreciated.
17/01/2005 7:44 a.m.
# re: How To: Fix Windows Built in Defragmenter
I tried all of the methods listed in your directions but defrag still does not work. A error window opens saying that "Windows can not open this file" "To open this porgram windows need to know what program created it" do you have anyother suggestions.
19/01/2005 4:18 a.m.
# re: How To: Fix Windows Built in Defragmenter
I have done with success the 3 steps listed above but my defragmenter still does not start, its windows open but when I try to scan or defrag I have the message "The defragmenter can not open" (in fact the message is in french because I am in France !)
The DCOM service is running.
19/01/2005 6:24 p.m.
# re: How To: Fix Windows Built in Defragmenter
Hi thank you for explaining the defrag re-fix. It worked for me. However now when I try to defrag, it always stops and says, "scan cannot continue due to error in file XXX." I delete the file, start defrag again, and a new file has an error. Please help. Thanks
20/01/2005 7:21 a.m.
# re: How To: Fix Windows Built in Defragmenter
I've found through my own 3rd party defrag tool uninstall fiasco that in order to get the "defrag.exe" to work again, you also need to go into the c:\windows\inf directory, right click on the "dfrg.inf" file and select the "install" option from the menu. This gets the defrag.exe utility working again.
There are a lot of .inf files in that directory that you can use to reinstall certain windows components if they break -- it's just a matter of knowing which .inf file goes with what.
Hope this helps. (sorry if someone already answered but i didn't read through ALL the posts)
28/01/2005 2:49 p.m.
# re: How To: Fix Windows Built in Defragmenter
No obscene comments here although I could direct one or two towards that famous third party defragmenter. It looked pretty but when I decided not to spend the money for it they got me.
I am not sure which of the fixes worked. I was able to light up defrag but the buttons did nothing. I did all of the above. No improvement. Then I remembered to try a reboot. That did it. My good old Windows Defrag is now working with its former gusto.
Thanks much.
29/01/2005 11:34 p.m.
# re: How To: Fix Windows Built in Defragmenter
A last solution : Try another defragmenter (not Diskeeper witch also does not start on my PC).
I have downloaded the evaluation version of PerfectDisk 7.0 and it works very well.
31/01/2005 5:40 a.m.
# re: How To: Fix Windows Built in Defragmenter
thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you!
I could not run diskeeper in win xp faisafe, and I only was able to run on failsafe mode cause my disk was too fragmented!!!!!! i hate diskeeper
1/02/2005 2:10 p.m.
# re: How To: Fix Windows Built in Defragmenter
Anyone getting the "Disk Defragmenter Could not start" message and on Windows XP Home This is what worked for me. Go to Control Panel, Select System and select the Advance Tab. Now Select Settings Under Performance and again select the advance tab. Under Virtual Memory select Change. Make sure that the Paging File Size for selected Drive for the Drive partition you want to Defrag has either a custom at least 2 times the amount of installed RAM if the space is available or is set to System Managed Size. Once I did this Defrag started working again. I don't know how the Page file got turned off on my system but this has been driving me mad for months!! Hope it helps someone else out there !!!
John B :)
10/02/2005 11:02 p.m.
# re: How To: Fix Windows Built in Defragmenter
John B
You are a gentleman and a scholar.
13/02/2005 2:59 a.m.
# re: How To: Fix Windows Built in Defragmenter
thanks! simple yes, yet very effective!
18/02/2005 4:52 a.m.
# re: How To: Fix Windows Built in Defragmenter
THANK YOU, O WISE AND POWERFUL FIX-IT PERSON.
20/02/2005 6:36 a.m.
# re: How To: Fix Windows Built in Defragmenter
I have an old school Windows 98 system. Can someone tell me how the directions differ? I do not have "command promt" under the accessories menu. Thanks!
28/02/2005 12:33 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you very much...didn't know what to do anymore :-)
fu&*%ing diskeeper 9.***** everything up
4/03/2005 2:47 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you! Exactly what I was looking for! :-)
6/03/2005 2:32 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you for your article! It's kinda phunny how Microsloth doesn't even have documentation on this....
10/03/2005 1:06 p.m.
# re: How To: Fix Windows Built in Defragmenter
Super fantastico - thanks much
10/03/2005 11:27 p.m.
# re: How To: Fix Windows Built in Defragmenter
John B..... Many thanks from Holland...
16/03/2005 4:44 p.m.
# re: How To: Fix Windows Built in Defragmenter
I've read all the posts and performed all the instructions from the main site.
Still nothing worked.
Who can help me?
16/03/2005 8:14 p.m.
# re: How To: Fix Windows Built in Defragmenter
ok i tried everything could find dcom in my admin area but then i found it under services and it said dcom error, i hear spybot disables dcom, you go to this link and download program...it allows you to enable dcom and disable dcom, i guess if you leave it disabled it causes high security threats to your pc...so best to disable after you finish defragmenting.
http://grc.com/dcom/
WOW ...just takes a bit of hunting around on web and some brains to figure out prob..and voila!.
16/03/2005 8:15 p.m.
# re: How To: Fix Windows Built in Defragmenter
basically you need to have dcom enabled to run defrag...
if you have spybot it would of enabled it.....
17/03/2005 6:05 a.m.
# re: How To: Fix Windows Built in Defragmenter
I found that (in WinXP) the file that runs the Disk Defragmenter is "dfrg.msc" not "defrag.exe". As soon as I restored the dfrg.msc file to C:\Windows\System32 from a backup, the defragmenter program came up and began working normally again. Apparently the 3d party defragmenter program I had tried ("O & O" something -- the install file is "oodfre_V3.5.562_english.exe") and uninstalled, normally, somehow did away with the dfrg.msc file or the connection to it.
19/03/2005 3:45 a.m.
# re: How To: Fix Windows Built in Defragmenter
my disk defragmentor says, "please run chkdsk/f" but it does that every time i restart and it says could not lock current drive. all i wanted was to run disk defragmentation but now i've got three problems instead of one! please help
19/03/2005 1:44 p.m.
# re: How To: Fix Windows Built in Defragmenter
John B....you are the man!!!!!!!! I went through registry editing trial ware, surfed for hours looking for answers, turned off firewalls, and banged my head against real ones for two nights!!!
Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27/03/2005 4:22 p.m.
# re: How To: Fix Windows Built in Defragmenter
I am banging my head against the wall right now...I have read over ALL the comments and tried ALL the above precedures and apparently none of them worked for me.
I get the msg "This version of Disk Defragmenter does not support running more than one instance." on my computer and I guess it was around the time after I installed SP2 that it appeared so. However, my "DCOM Server Process Launcher" IS enabled.
PLEASE HELP ME!!!
3/04/2005 10:22 a.m.
# re: How To: Fix Windows Built in Defragmenter
I have search far and wide for this fix. Found a few sites that said after uninstalling Diskeeper and it failed to restore the default defrag program that the only way to restore it was to re-install XP. Fould and article under FAQ's on the diskeeper site that was suppose to restore it, but it didn't. Found your site thru Google. And it worked like a charm.
Thank you so much!!
6/04/2005 3:52 a.m.
# re: How To: Fix Windows Built in Defragmenter
Had the problem (Defrag comes up but Analyze and Defrag did nothing), tried the CMD window regserv method. Not worked. Tried the "install" Windows/Inf addition. Not worked.
Searched for all instances of dfrg*, found quite a few, specifically some in "windows/servicepacks/i386" and in Windows/(compressed/uninstalldirectories or whatever they're called).
Two variables I noticed:
This is a Dell system, essentially as configured by Dell, with a tiny unamed FAT format partition for Utilites which can be accessed via the BIOS and a special bootup, and then the normal large named C: drive partition formated as NTFS. This tiny FAT partition DID show up in the DEFRAG app window but the Analyze and Defrag buttons didn't work on it either.
Secondly, simply put, I noticed that I did NOT have an instance of DFRGNTFS.EXE in the Windows/System32 folder, even though the C: drive was an NTFS drive as noted above.
So I finally just manually copied all the DFRG* files from the Windows/Servicepacks/I386 folder to the Windows/System32 folder, confirming that I did want to over write those that duplicated. After this, of course, I no DID have an instance of the DFRGNTFS.EXE in that System32 folder.
Then when I went to the Start Menu/Accessories/SystemTools/Defrag and launched it.....VOILA!!! the app opened, and when I clicked on the Analyze button it worked, and problem solved!! At last!
I gave the big wordy background, because I speculate that somehow the presence of the FAT partition (which I think is also the first partition on the physical drive??) caused the Service Pack Updates, to conclude that I had only the need of the FAT version of the Defrag app, and so it never added the updated NTFS version back in after deleting the older Defrag app it was updating.
As I say pure speculation, but it wasn't working, it didn't have the DFRGNTFS.EXE, I had NEVER added or removed any form of Defrag application, nor had I adjusted/altered any instance of services (DCOM...referenced above), and now it is working.
Maybe more technically experienced and articulate contributors to this board can test my theory and rewrite a simpler and more concise answer for others suffering from this problem.
Thanks for this board and all the input though, because it is what gave me the idea and the courage to experiment!
JACKnME
7/04/2005 8:27 a.m.
# re: How To: Fix Windows Built in Defragmenter
Wow -
...I can't believe after spending so much time on MS's website and not finding a single helpful thing or any reference to anything remotely close to what I was experiencing
...spending time looking for alternatives that work on MS 2000 Server
...trying to find one that is safe and secure
All I needed was a quick fix! I tried to re-register the two DLLs as mentioned, the problem still persisted - BUT - then I tried the -> "If not, there is one more step you can do" step, and that worked!! How about that...a simple solution that is spelled out very clearly! Will wonder ever cease?
THANK YOU - MUCH APPRECIATED!
13/04/2005 2:29 p.m.
# re: How To: Fix Windows Built in Defragmenter
All I can say is: YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!! YOU RULE!!!!!
26/04/2005 5:04 p.m.
# re: How To: Fix Windows Built in Defragmenter
John B!!!!!!!!!!!!!!!
You are unfriggin believable. I been tryin' to fix defrag for months. Your page file solution worked!!!!!!!!!!!!!!!!!!
You da man!
7/05/2005 9:43 a.m.
# re: How To: Fix Windows Built in Defragmenter
thanx goes to John B!
8/05/2005 9:15 a.m.
# re: How To: Fix Windows Built in Defragmenter
Any ideas on how to fix it in Windows 2003 business server?
9/05/2005 2:19 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thanks.
I had to re-install SP2 on XP because a few things were broken after half installing Norton Internet Security 2005.
Had to uninstall 2005, manually delete the directories, run symantec cleanup and registry removal filesss.
Unfortunatly, although I got NIS 2005 working perfect, I broke My Windows Firewall and Disk Defragmenter.
I re-installed SP2, but that did not fix the defrag. Your fix worked.
Thanks
15/05/2005 8:24 a.m.
# re: How To: Fix Windows Built in Defragmenter
Disk Defragmentor could not start.
Disk drives (DVD & CDRW) will not read/start when disk is inserted.
USB drives will not recognize..."Disk is not formatted. Do you want to format it now?"
WHAT makes this happen? How does one fix this?
RM
19/05/2005 9:53 a.m.
# re: How To: Fix Windows Built in Defragmenter
THANK YOU JOHN B!
20/05/2005 12:10 a.m.
# re: How To: Fix Windows Built in Defragmenter
that feels much better thank you, love you loads
27/05/2005 10:42 p.m.
# re: How To: Fix Windows Built in Defragmenter
Grrrreat. Works.
31/05/2005 11:14 a.m.
# re: How To: Fix Windows Built in Defragmenter
That happened to me just after I disabled the paging executive in registry coz I wanted to use my considerable amount of ram. So u see; we're bound to use virtual memory
for more years...
6/06/2005 6:42 p.m.
# re: How To: Fix Windows Built in Defragmenter
defrag still does not work. A error window opens saying that "Windows can not open this file" "To open this porgram windows need to know what program created it" do you have anyother suggestions.
7/06/2005 4:40 p.m.
# re: How To: Fix Windows Built in Defragmenter
i am still having trouble getting my defrag to work. i registered the 2 components like stated, but nothing changed, still able to pull up the defrag screen, but buttons won't work. i either can't find or don't have the file dfrg.inf. i also tried the method that JACKnME suggested, but still nothing. little background, i recently reformated my computer and installed XP. now i can't defragment. also if any suggestions, i click start/search/for files and folders.. but nothing happens then either.
any suggestions would be great
12/06/2005 6:14 p.m.
# re: How To: Fix Windows Built in Defragmenter
One more fix for the "Disk Defragmenter Could not start" message and on Windows XP Home. On a safe boot I noticed a driver "imagedrv.sys" that was being loaded from an old Nero install before I had to repair my disk. After I removed this from my c:\windows\system32\drivers directory and fdisk/mbr the system came up, said it found a new device and defrag now runs without the message!
14/06/2005 2:23 a.m.
# re: How To: Fix Windows Built in Defragmenter
I tried with above steps in Windows 2003 server. But The defrag engine not started
21/06/2005 1:14 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you so much!!!!!!!!!!!!!!!!!!!!!!!
27/06/2005 12:15 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you so much. This procedure has help me out so much.
2/07/2005 7:53 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thx for this article :)
It helped me a lot after having installed diskeeper :)
**--- PS: You may consider editing: no command prompt is necessary on winxp atleast. You can just type the regsvr32 .... in to "Run" on the start menu. ---**
4/07/2005 8:22 p.m.
# re: How To: Fix Windows Built in Defragmenter
Start Server DCOM processor it will work (it worked for me)
13/07/2005 5:01 p.m.
# re: How To: Fix Windows Built in Defragmenter
hi, i have the same problem as Harveer from march 19, 2005.
when i try to start the program it says "please run chkdsk/f".
when i try to run checkdisk, it says could not lock current drive, so checkdisk can never run.
defrag used to work fine so this one is puzzling me. any advice?
dsegal@uccs.edu
5/08/2005 9:02 a.m.
# re: How To: Fix Windows Built in Defragmenter
Great, it worked. Thanks from Germany!
7/08/2005 11:48 p.m.
# re: to Danno
Just answer "Y" to the question if you want to schedule a check for next reboot, then reboot, et voilà your drive's being checked.
12/08/2005 2:49 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you SO much for the fix to install defragmenter on XP... I've searched everywhere, and your fix worked!
Thanks again!
Amanda in FL
13/08/2005 12:57 p.m.
# re: How To: Fix Windows Built in Defragmenter
I was unable to defragment - GUI defrag just blinked at me. Command line defrag reported "cannot connect to Defragmenter Engine". Your advice re regsvr32 dfrgsnap.dll and regsvr32 dfrgui.dll, plus dfrg.inf did the trick. Very grateful. Thanks!
14/08/2005 8:49 p.m.
# re: How To: Fix Windows Built in Defragmenter
Awesome thanks!
15/08/2005 12:04 a.m.
# re: How To: Fix Windows Built in Defragmenter
Without this page it probably would have taken me a long time or something drastic to solve this problem so THANK YOU!
The DOS part didn't work for me and I don't have an "Inf" folder under Windows (I hope this is okay, anyone, please let me know if it isn't!) I searched for the dfrg.inf but it wasn't found so I downloaded it on to my Desktop instead and installed it from there. The program now works.
24/08/2005 2:51 p.m.
# re: How To: Fix Windows Built in Defragmenter
Great tip! Worked perfectly!!
27/08/2005 11:45 p.m.
# re: How To: Fix Windows Built in Defragmenter
THANK YOU!
Your solution solved my problem:)
Solution
The solution is actually quite simple. You need to re-register the defragmenters snap-in files, and the basic registry entries.
First open up a Command Prompt, this can be found at:
Start -> All Programs -> Accessories -> Command Prompt
Change into your windows\system32 directory. Your windows directory will be either windows or winnt. Type:
cd \windows\system32
Register the defrag components, by typing:
regsvr32 dfrgsnap.dll
regsvr32 dfrgui.dll
I am so greatful for this information. I had looked everywhere for the solution.
God Bless.
29/08/2005 6:39 a.m.
# re: How To: Fix Windows Built in Defragmenter
im using dk, i set a boot time defrag, and everything seemed fine. re-booted pc, diskeeper boot time defrag started then stopped saying chkdsk is set to run on this drive, cannot defrag a dirty volume. so i re-booted again, and chkdsk did not run, so i started up windows again, ran diskeeper but it will not allow me to degrag, set boottime or anything, it just keeps saying chkdsk has been set by os or user, cannot continue. even when i force a boot time chkdsk at command prompt, it runs, but diskeeper still wont let me defrag. i tried something from another site that said in registry, to find entry, autochkdsk autochk and to change it to autochkdsk autochk*. so did that and still nothing. can not defrag now. really giving me a pain. anyone help? ratking@ntlworld.com dk and xp is f.u.b.a.r.
29/08/2005 6:58 a.m.
# re: How To: Fix Windows Built in Defragmenter
Just thought i would update, as i found out problem.
Needed to reset something called the 'dirty bit' or something.
Anyway incase someone has same problem, at command prompt, type chkntfs x: /c (replace x with drive letter that needs checking).
Reboot, and chkdsk runs a quick test on drive or drives specified, and resets the 'dirty bit' to 0, then diskeeper returns to normal. i can now defrag.
29/08/2005 10:29 a.m.
# re: How To: Fix Windows Built in Defragmenter
THANK YOU THANK YOU THANK YOU! Don't know how/why my defrag wouldn't work (no third party program) but I did reformat & reinstall original software due to other problems, "upgraded" to XP SP2, installed all my other programs & hardware -one at a time - No problems for days, then suddenly can't get IE to work, Norton only scans so far and hangs, explorer wouldn't come up, and on. I was told to try to defrag which is why I discovered this lastest problem. This is one solution that worked
FYI - my files do show up in \system32 but "failed to load." I also found them in /WINDOWS/ServicePackFiles\i386 and was able to regsvr32 command those...
30/08/2005 12:21 a.m.
# re: How To: Fix Windows Built in Defragmenter
defrag does'nt work
30/08/2005 9:27 p.m.
# re: How To: Fix Windows Built in Defragmenter
My defrag problem is not caused by third party software. I have two hard drives in my pc. The primary hard drive, ( the "C" drive ), defrags properly, on command, as it should. It's the second hard drive, ( designated as the "F" hard drive ), that no longer defrags on command, as it used to. Whenever I try to defrag the second hard drive, ( the "F" drive ), I get the message that Chkdsk /f is scheduled to run on the next startup of the pc, and that I should allow Chkdsk /f to run at the next startup. So I do allow Chkdsk /f to run at the next startup, but that doesn't clear the problem, and it does not allow my defrag to be initiated afterwards. All I get is repeated Chkdsk /f scheduled running messages, each and every time I try to defrag, and no matter how many times I comply and follow those instructions, the messages simply repeat, over and over again. Meanwhile, all I have to do is select the primary hard drive, ( the "C" drive ), to defrag, and it defrags with no problems whatsoever. When Chkdsk /f runs on hard drive "F", no corrupted files or folders are ever detected, and there are no bad sectors found on the hard drive. In other words, the hard drive is not dying, and there's no corrupted data on it. The computer functions flawlessly, including those functions handled by the second hard drive, ( my "F" drive ). But, I cannot defrag the "F" hard drive, and I need to. Can anyone out there, PLEASE HELP ME? I'm getting desperate! I'm trying to learn as much as possible, as soon as possible, but for now, I need simple explanations,
( probably much simpler than you are used to giving ). Otherwise, I won't understand what you're instructing me to do. I'm not totally computer literate, yet. This has been going on for more than a month now. I really need some help. Thank You very much.........I can follow your instructions, if you make them simple enough.
6/09/2005 7:33 a.m.
# re: How To: Fix Windows Built in Defragmenter
Many, Many Thanks.
Following all the the feed back I decided to re register the defrag components.
And to my surprise it now works a treat.
Again THANKYOU.
8/09/2005 8:14 p.m.
# re: How To: Fix Windows Built in Defragmenter
The snap-in error freaked me out! I have a home studio with music recorded on the c drive. I thought my HDD was going down! Thanx for the VERY easy fix!!!
14/09/2005 12:37 p.m.
# re: How To: Fix Windows Built in Defragmenter
Brilliant!!
I inherit a server, badly managed, badly dealt with, remains of Diskkeeper 5.02 all over it, can't get it to defrag, can't get the remains out....you got my defrag running again, kudos!!
btw....I HATE people who say kudos, that's how happy I am!
15/09/2005 10:32 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you for the exellent tips. And very nice follow ups! I should thank John B as his recipe was successfull in my case:
"Disk defragmenter could not start" WinXP sp2 message. Solution was to check the disk SWAP file existence.
And Thanks to Google.ru as well it keeps the page high enouth to be found :)
???????, ??????! :)
18/09/2005 4:20 a.m.
# re: How To: Fix Windows Built in Defragmenter
I have no idea where the XP defrag went, but after reading your instructions, i had just installed a reg clean up / tune up prog - all worked ok. but when i went to defrag, the tool was missing - whether it was because of the thrid party software not sure, but i installed also into my XP notebook and the defrag tool is still present there - but anyway - a BIG thanks for guiding me to recovery of the defrag tool - what a great bunch of people you are!
thanks
Brian Marshall
21/09/2005 7:19 a.m.
# re: How To: Fix Windows Built in Defragmenter
You rock so much... Thank you. again 3rd party software goofed my standard-defrager up. Now it works. Thanks :D :D :D
Best regards
25/09/2005 7:13 a.m.
# re: How To: Fix Windows Built in Defragmenter
I tried the above methods and I got my defragmentation back to my Windows 2000 SP4. The dfrg.inf seems to be the first step to try out. Thank you all.
1/10/2005 5:09 p.m.
# re: How To: Fix Windows Built in Defragmenter
What a dork I am!
All of the above fixes worked successfully for me and still defrag did not work.
"basically you need to have dcom enabled to run defrag... "
THIS STEP ABOVE DID THE TRICK!! THANKS!!
Without DCOM started, defrag will NEVER workee workee...
6/10/2005 3:09 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you! You're the Best! I used the Windows browsing and worked by the first attempt.
7/10/2005 8:12 a.m.
# re: How To: Fix Windows Built in Defragmenter
Found all of this very helpful, and though it didn't totally solve my problem, ALSO Doing the following change did...
replace your dfrgntfs.exe file in system32 with the one in your i386 folder.
( I was getting "Program too big etc etc...")
Defrag is off like a gun now. Thanks again for the assistance!
10/10/2005 12:27 a.m.
# Second step did the trick, damn Diskeeper!
Excellent!
I had installed Diskeeper, which didn't have an uninstaller (for shame). After the trial ran out, I used Windows to uninstall the program. When it came time to defrag, it didn't respond. I read the info here and went straight for the windows\inf folder. "In there you will find a file called dfrg.inf right click this file, and select Install."
No doubt, worked like a charm without performing the prior steps. Try this one first.
Damn Diskeeper with their lack of uninstaller and phucking up files to cause general mayhem!! I guess they would hope that you pay for their program and fix a very simple matter that they already had insight into.
Thanks to Andreas for sharing this info, I was getting tired of searching other sites where the so called solutions were literally stupid and could lead to disasterous consequences.
10/10/2005 1:46 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thx John B your advice was very helpfull
17/10/2005 5:02 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thanks alot for your help with this...glad to see sites like this!!!! with REAL information.
17/10/2005 9:55 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you thank you thank you, this has helped me so mmuch!!!!!!
25/10/2005 6:14 a.m.
# re: How To: Fix Windows Built in Defragmenter
Ali has nothing on you! You are the greatest! Thanks!
26/10/2005 1:51 p.m.
# re: How To: Fix Windows Built in Defragmenter
You are terrific!!! that was simple and it really worked !!!
Thanks, Lindsay
5/11/2005 11:19 a.m.
# re: How To: Fix Windows Built in Defragmenter
A very pleasant site which made me passed an owl moment. Thank you still and cheer.
5/11/2005 2:51 p.m.
# Diskeeper 9.0 and Windows XP SP2
well friends
I need HELP !!!
I installed the Diskeeer 9.0 trial and when i uninstall him the original defrag dont work more.
Ok so ...
1- I tryed use the executive software instructions to original defrag work again but without sucess
2 - I tryed re-register the ".dll" files but i always get the message box error:
"DllRegisterServer in c:\windows\system32\dfrgsnap.dll missed
Error Code: 0X80040154"
with a just Ok button
3 - I tryed restore the Windows SP2 original dfrgsnap.dll and other dfrg files so i repeat the process to re-register and nothing.
4 - i tryed use the .inf reinstall method but withou sucess.
So anyone can post a step by step method to get my original defrag again ???
8/11/2005 9:57 a.m.
# re: How To: Fix Windows Built in Defragmenter
I still got the msg "This version of Disk Defragmenter does not support running more than one instance." on my computer after I've tried your method.
Here is the solution that it works for my system. You might try it.
Close all instances of any mmc's that are open. Go into task manager and kill mmc.exe.
13/11/2005 10:29 a.m.
# re: How To: Fix Windows Built in Defragmenter
Many thanks for the fix.
22/11/2005 7:45 p.m.
# re: How To: Fix Windows Built in Device Manager
We had a problem with Device Manager. All the device were working perfectly but device manager didn't display a single device .
We tried to repair it but we got the following message :
snap-in failed to initialize Name : Device Manager CLSID : {74246bfc-4c96-11d0-abef-0020a-f6bob7a
Operating System is Windows Xp Prof Service pack 2
kindly suggest some solution and mail to it_nlpl@rediffmail.com
With regards
NLPL
24/11/2005 12:00 p.m.
# re: How To: Fix Windows Built in Defragmenter
Not sure what is going on with my defragmentor, but this is what I see. When I bring up the prompt to defrag under the volume column I see C: drive. then nothing under status, then fat32 under file system.
There is only this one line and when I look at the picture above there are at least 3. Is Fat32 the right file system or am I missing something?
The program opens fine, but when I hit the analyze button or the defrag button nothing happens, no message or anything.
25/11/2005 6:50 a.m.
# re: How To: Fix Windows Built in Defragmenter
Unfortunatly it didn't for for me. still doing the same thing as befor
26/11/2005 2:33 a.m.
# re: How To: Fix Windows Built in Defragmenter
Very good...
thank you
27/11/2005 11:12 a.m.
# re: How To: Fix Windows Built in Defragmenter
hi i have a problem it says i have to rin chkdsk /f but when i run it in cmd it says if i want to do something an i says yes and reboot but nothing hapends i kan defrag my harddrive C plzz help men seend email tobbe_a_92@hotmail.com plzplzplzplz answer!!! you tip donsen`t work
29/11/2005 8:04 a.m.
# re: How To: Fix Windows Built in Defragmenter
THX John B :)
That worked great!!!!!!!!!!!!!!!!!!!!!!!!!!!
Anyone getting the "Disk Defragmenter Could not start" message and on Windows XP Home This is what worked for me. Go to Control Panel, Select System and select the Advance Tab. Now Select Settings Under Performance and again select the advance tab. Under Virtual Memory select Change. Make sure that the Paging File Size for selected Drive for the Drive partition you want to Defrag has either a custom at least 2 times the amount of installed RAM if the space is available or is set to System Managed Size. Once I did this Defrag started working again. I don't know how the Page file got turned off on my system but this has been driving me mad for months!! Hope it helps someone else out there !!!
UJ
1/12/2005 6:58 p.m.
# re: How To: Fix Windows Built in Defragmenter
I have windows xp
When I bring up the defragmenter screen, it is devoid of text. I tried the 2 dll entries, which it states succeeded, but then I get a pop-up, noted as regsvr32.exe, stating the application or DLL c:\windows\32\dfrgreg.dll is not a valid windows image.
I haven't put in other defragmenter programs. I don't know how long ago this ceased operating. I tried system restore, but it won't accept changes beyond this past week.
6/12/2005 3:48 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you so much!!!!!!!!!!!
I now hate Diskeeper.
13/12/2005 9:41 a.m.
# re: How To: Fix Windows Built in Defragmenter
when i defrag, it only goes to 3% then says...defrag complete for drive c but some files cannot be defragged, see report for list of these files.
I have defragged for years and even earlier that day and have never gotten this message
16/12/2005 2:43 p.m.
# re: How To: Fix Windows Built in Defragmenter
THANK YOU for posting this greatly appriciate your help.
17/12/2005 3:44 p.m.
# re: How To: Fix Windows Built in Defragmenter
I read all the threads hoping to find the solution for my problem i.e after i downloded and cleaned my regitry using "Registry mechanic " my disc defragmenter doesn't seem to be working .I am not able to re-install dfrg.inl
it says c:\WINNT\inf\dfrg.inf could not be found.even though i can see it existing in that folder.Could some one out there resolve my problem.
thanx in advance
Sam
21/12/2005 12:42 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thankx to "UJ" for this simple fix (29/11/05) worked immediately!!!
23/12/2005 6:43 p.m.
# re: How To: Fix Windows Built in Defragmenter
this has frustrated the h*** out of me but after this quick fix it seems to be working NICE>!
26/12/2005 11:21 p.m.
# re: How To: Fix Windows Built in Defragmenter
This fix worked well ,
at last my defragmenter is working.
Really happy there are guys like you out there that share theire knowledge on the net ,Many Thanks.
jonny
2/01/2006 12:10 a.m.
# re: How To: Fix Windows Built in Defragmenter
i need here weth my defragmenter
3/01/2006 8:01 a.m.
# re: How To: Fix Windows Built in Defragmenter
I was able to make the changes in the Command Prompts but Disk Defragmenter still does not work. I could not find the windows\inf file in Windows using Windows Explorer.
I would appreciate additional suggestions. Thanks!
6/01/2006 7:24 a.m.
# re: How To: Fix Windows Built in Defragmenter
Here is another possible fix -
Check your application log for event id 4609. If you have them, check the security rights on your Windows\Registration folder. On our network, machines that work have full rights for Everyone. I changed it to that and restarted and it works prefectly! Based upon what I read, I believe the rights are somehow causing an issue with the starting up of the DCOM Server Process Launcher...
Hutch
14/01/2006 11:29 a.m.
# re: How To: Fix Windows Built in Defragmenter
Thanks, a hundred times over John B. Your solution was so easy, even I, a computer illiterate, was able to do it, and within seconds.
19/01/2006 1:53 a.m.
# re: How To: Fix Windows Built in Defragmenter
xcellent! did the three fixes... but if you have your inf folder hidden search will not find it. thnx!
19/01/2006 10:50 a.m.
# re: How To: Fix Windows Built in Defragmenter
Many thanks to Ron, who way back in 2004 suggested for SP2 starting the "DCOM Server Process Launcher" in services to get the buttons working again in the defragger. It worked for me. (note: this was not a recovery from an uninstall of an independent defragger)
20/01/2006 4:09 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you for posting this page. It saved me from having to do a repair (or worse, a reinstall).
28/01/2006 1:41 p.m.
# re: How To: Fix Windows Built in Defragmenter
THANK YOU! THANK YOU! THANK YOU!
29/01/2006 4:05 p.m.
# re: How To: Fix Windows Built in Defragmenter
Worked great - THANK YOU!!!
30/01/2006 4:00 a.m.
# re: How To: Fix Windows Built in Defragmenter
I HAVE BEEN TRYING FOR ABSOLUTLY AGES TO GET MY DEFRAG WORKING AND WAS TRYING TO GET A DOWNLOAD TO DO IT AND COULDNT SO I WAS DELIGHTED TO FIND YOUR SITE AND IT WORKED AS YOU SAID IT WOULD , THANKS A MILLION TRICIA
31/01/2006 4:57 p.m.
# re: How To: Fix Windows Built in Defragmenter
Thank you, from another grateful user of your solution.
But I am curious, has anyone nailed down exactly what is causing this to happen in the first place? I use W2K and I removed Diskeeper a long time ago and never had a problem running system defrag on a regular basis. Recently I have been reviewing Registry cleaning utilities but I don't recall not being able to run a defrag after a reg clean which is my normal routine. So I am curious if any one has a similar experience?
1/02/2006 9:56 p.m.
# re: How To: Fix Windows Built in Defragmenter
My problem is that whenever i start defragmentor from system tools, it asks me the program in which i want to run dfrg.msc please help.
2/02/2006 10:53 a.m.
# re: How To: Fix Windows Built in Defragmenter
hi,
What can you do if your windows defragmenter seems to have been lost or removed altogether?
8/02/2006 7:54 a.m.
# re: How To: Fix Windows Built in Defragmenter
Recently my laptop has been ruuning slow and erratically. When I go to my System Tools, Defragmeter, it no longer shows my C: drive and the following Error Message is shown: