Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a built-in way to defragment a folder? I am using VM Player so I would like my 3 GB disk image to be defragmented if possible.

My disk partition that the image lies in has 12 GB left and has roughly 90% of the disk used. I probably would not need a defrag but I would like to do it if it's possible.

share|improve this question
up vote 6 down vote accepted

I haven't found a way to do this with native commands but there are additional programs out there that allow you to selectively defrag individual files.

I've used programs like defraggler from the guys who brought you CCleaner.

Or a contig - Part of the Sysinternals Suite by Mark Russinovich.

share|improve this answer
+1 for Defraggler. Works a treat. – Al E. Nov 23 '09 at 22:04

It sounds like you have your OS and then your VM with it's OS image... instead of trying to defrag from your root/normal OS, why not try to do a defrag inside of your VM OS image - that is, run your VM and have it do a defrag.

Does that work for you?

share|improve this answer
@rlb.usa - A disk defragmentation from within the virtual machine will not do the same thing. The virtual image is a single file (or multiple) on the physical disk. Defragging from within the virtual machine will only rearrange the virtual files within the image. If that physical image file is scattered across the physical disk, defragging from the host OS will arrange the file's fragments so they are stored contiguously on the disk, increasing performance. – Robert Cartaino Nov 23 '09 at 17:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .