vmkfstools -Q /path/to/VM_name-flat.vmdk Output example:
Introduction In the VMware ecosystem, a virtual disk is typically represented by two files: a small descriptor file ( .vmdk ) and a large raw data file (the -flat.vmdk ). The descriptor contains disk geometry and pointers, while the -flat.vmdk holds the actual virtual machine data. recover vmdk flat file
# Disk DescriptorFile version=1 CID=fffffffe parentCID=ffffffff createType="vmfs" RW 83886080 VMFS "VM_name-flat.vmdk" The Disk Data Base #DDB vmkfstools -Q /path/to/VM_name-flat
ls -la VM_name-flat.vmdk # Size in bytes / 512 = number of sectors Create a text file recovered.vmdk with the following content (adjust numbers): get the size in sectors:
Have a recovery story or tool recommendation? Share it in the comments below.
Capacity: 42949672960 (40 GB) Disk type: 2 (VMFS thin) Alternatively, get the size in sectors: