VMware Communities
GaryRudolph
Contributor
Contributor

createDisk to Resize (Shrink)

I'm trying to resize an existing VM disk using Fusion 1.1. Particularly I'm shrinking the drive from 30GB to 21GB. I used Partition Magic to resize the partition to the first 21GB on the disk. Now I'm stuck trying to use diskCreate to clone and size the disk to 21GB.

I used the following diskCreate command:

diskCreate -C C.vmdk -t twoGBFlat -s 21gb C2.vmdk

When it does the new disk C2 is the same size as the original (30GB) and not 21GB.

I recall being able to do this with vdiskmanager on a windows machine, but it looks like the Fusion tools don't work the same. I also tried copying the Fusion VM to a vmserver 1.0.X, but it the VM disk is a newer version and it's tools won't work on it.

Is there a way to do this with createDisk, or am I going to have to resort to creating a new empty disk and mounting both disks from a Linux ISO and using dd to copy?

Thanks, Gary

Reply
0 Kudos
1 Reply
GaryRudolph
Contributor
Contributor

I gave up on createDisk to do a clone and resize. I just created a new disk and created a Temp Ubuntu image off the Ubuntu ISO and used dd to copy the one disk to the other, and ignored the error that the target disk was larger.

Reply
0 Kudos