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.

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. FYI 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
add comment

2 Answers

up vote 5 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 - http://technet.microsoft.com/en-us/sysinternals/bb897428.aspx Part of the Sysinternals Suite by Mark Russinovich.

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

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
2  
@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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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