sudo apt update sudo apt install vmfs-tools vmfs6-tools mdadm ddrescue 4.1 Identify the VMFS Volume First, attach the physical disk(s) or LUN to the Linux host.
sudo foremost -i /dev/sdX -o /output -t vmdk,vmx This recovers VMDK headers and data, but VM configuration files will be fragmented and may be incomplete. If you have a raw .dd or .img of the datastore: linux vmfs recovery
lsblk fdisk -l /dev/sdX VMFS partition type is typically 0xFB (VMFS). For VMFS6, type 0xFC . If the datastore resides on a hardware RAID passed through as a single disk, skip. For software RAID (e.g., failed ESXi software RAID): sudo apt update sudo apt install vmfs-tools vmfs6-tools
mdadm --assemble --scan mdadm --detail /dev/mdX For VMFS5: skip. For software RAID (e.g.