I would like to move all the data on a drive in Windows Server 2003 to the beginning of the drive (a virtual hard drive) so that I can more fully compact the .vhd file. However, the Windows server 2003 built in defrag tool only defrags the files, leaving large gaps of freespace (on the order of Gigabytes) that prevent me from compacting the file.
Is there any way to consolidate the data at the beginning of the drive in Windows Server 2003?
Edit: Under Hyper-V, it is no longer necessary to defragment and precompact the .vhd. Simply run the Hyper-V compacter and it takes care of everything. Accepting the answer below because it does help consolidate free space.