cp -r /mnt/vmfs/datastore1/my_vm /recovery/path/ sudo umount /mnt/vmfs 6. Advanced Use Cases Recover from a Disk Image (DD or E01) # Create a raw disk image (if disk is failing, use ddrescue) sudo dd if=/dev/sdb of=/recovery/esxi_disk.img bs=4M status=progress Mount the image via loopback with offset sudo losetup -f --show -o $((2048*512)) /recovery/esxi_disk.img (Find offset using: fdisk -lu /recovery/esxi_disk.img) sudo vmfs-fuse /dev/loop0 /mnt/vmfs List VMFS Extents (for spanned volumes) vmfsfsck -l /dev/sdb2 Experimental Write Support (Use with Extreme Caution) # Compile from source with --enable-write ./configure --enable-write make sudo make install Mount read-write (risky) sudo vmfs-fuse /dev/sdb2 /mnt/vmfs -o rw

sudo fdisk -l /dev/sdb Example output:

: Read-only, offline, and on a copy – the three rules of safe VMFS recovery.

0 0