The Virtual Disk Development Kit contains a tool called the Virtual Disk Manager utility to manipulate offline VMDK files on Windows or Linux (clone, create, relocate, rename, grow, shrink, or defragment). Virtual Disk Manager manipulates virtual disk (VMDK) files, and has many useful capabilities. One key feature is the ability to enlarge a virtual disk so that its maximum capacity is larger than it was when you created it. If you need more disk space on a given virtual disk but do not want to add another virtual disk or use ghosting software to transfer the data on a virtual disk to a larger virtual disk, you can change the maximum size of the disk. Of course this is not possible with physical hard drives.Here's the output:
VMware Virtual Disk Manager - build 85132.
Usage: vmware-vdiskmanager.exe OPTIONS <disk-name> | <mount-point>
Offline disk manipulation utility
Operations, only one may be specified at a time:
-c : create disk. Additional creation options must
be specified. Only local virtual disks can be
created.
-d : defragment the specified virtual disk. Only
local virtual disks may be defragmented.
-k : shrink the specified virtual disk. Only local
virtual disks may be shrunk.
-n <source-disk> : rename the specified virtual disk; need to
specify destination disk-name. Only local virtual
disks may be renamed.
-p : prepare the mounted virtual disk specified by
the drive-letter for shrinking.
-r <source-disk> : convert the specified disk; need to specify
destination disk-type. For local destination disks
the disk type must be specified.
-x <new-capacity> : expand the disk to the specified capacity. Only
local virtual disks may be expanded.