Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Windows XP VirtualPC machine with a virtual hard disk. It's a dynamic disk, which means it expands as needed.

Right now it's about 13.8GB, mostly because I've done a bunch of stuff to it.

There's really only about 9GB of stuff on there, less when I clean it up a bit more.

I tried to defragment the disk using the built-in defragmenter for XP and it shows an enormous gap in the layout of the disk - probably all that stuff I removed.

However, after defragmenting the giant gap is still there, although obviously some defragmenting did occur.

My thinking is - if I could get this disk to really defragment completely then I could compact the image and get that filesize back. And since the end goal is to distribute this to some coworkers, that would be a big plus.

So - are there any free defragmenting tools which do a thorough job?

share|improve this question

closed as off-topic by Tog, random Apr 25 at 13:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – Tog, random
If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers 3

up vote 4 down vote accepted

I'm partial to jkdefrag to do my defragging work. I've never used it in a VM for exactly what you want to do, but it might be worth a shot.

share|improve this answer

Jeff blogged about making Smaller Virtual Machines and suggested using Whitney Defrag. In the comments John Mitchell suggested using SDelete, (to write zeros in the empty space to aid compression), as a free alternative to what Jeff recommends in his step 5.

share|improve this answer

The best windows defrag tool I have used is Diskeeper. It isn't cheap but it does the job well.

http://www.diskeeper.com/

They have versions specifically for virtual environments but I have only used the stand alone versions.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.