X
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time.
This article has been viewed 63,878 times.
Learn more...
This guide will teach you how to do a manual disk defrag through the Windows command prompt. Some Windows users have trouble with the Disk Defragmenter program so this is a solution to that problem, and might come in handy for other instances, too.
Steps
-
Click the Start Button and type in 'cmd.exe' into the search box.
-
Right click on 'cmd.exe' and select the option 'Run as Administrator.'Advertisement
-
In the window that pops up, type 'defrag C: /U'
-
Wait for the defragmentation to complete. This will take some time depending on how large and fragmented your disk is.
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
-
If you have more than one disk that needs to be formatted, add it in to the command, like this 'defrag C: F: /U'Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
Warnings
- Do not close the command prompt once you have started the command. This may cause damage to your files.Thanks
- Solid State Drives do not need to be defragmented. This only wears them out.Thanks
Advertisement
About This Article
Thanks to all authors for creating a page that has been read 63,878 times.
Is this article up to date?
Advertisement