VMware Communities
munrobasher
Enthusiast
Enthusiast

VMwareToolboxCmd.exe disk shrink c:\ accidentally shrinks *all* drives

According to the documentation the following command zeros out free sectors and then shrinks the disk:

VMwareToolboxCmd.exe disk shrink c:\

However, after zeroing out the C: drive, VMware Workstation then shrinks all disks. My VM has two disks: Disk-0.vmdk is the C: drive and Disk-1.vmdk is the data drive. This was displayed:

SkR85bF[1].png

Disk-1 is the data disk... fortunately, it does look like you can cancel the shrink operation for the accidental drive (Disk-1 is huge and would take hours to shrink) and it will move onto the next drive:

8DdRE37[1].png

There is a disk shrinkonly option which shrinks all drives but IMO this is a bug. It should have only shrunk the drive associated with the C: drive. You also get an error message which I assume is the result of me cancelling the shrink of Disk-1:

tkQwijZ[1].png

Tags (1)
0 Kudos
0 Replies