More info! What OS are you using? How big / and how full is the C: drive? Same for D:.
What is "it" that says it must be defragged?
My guess at this stage is that D: is very full and is being used for the swap file. What are the Virtual memory settings?