extending a virtual disk in vmware

Extending a virtual disk in vmware

1. Backup!

2. Somewhere in the vmware installation directory, there is a tool named "vmware-vdiskmanager.exe". There is a lot of options, for resize use "-x":

vmware-vdiskmanager.exe -x 8Gb ...path.to.vm..../vm_disk.vmdk

(hint: type the command manually, do not copy/paste from web. Otherwise you can get typographical spaces or minuses instead of the usual ones.)

3. The disk is extended, now it's time to update the partition table and the disk "C" to match the new size of the disk. Several options are availabe, they are listed in vmware's knowledge base:

VMware Virtual Disk Manager Does Not Expand Partitions

I tried GParted LiveCD and it worked:

GParted -- Live CD/USB/PXE/HD

GParted run automatically, I had no problems to use it.

4. When Windows started, it noticed that something strange had happended with the disk and executed "chkdsk". The tool validated that everything is in order, and Windows started as usual. With a bigger system disk.

Categories: windows