VMware

How to restore deleted .vmdk file? |VMware Communities

Hello,

I’ve accidentally removed my .vmdk file. How to restore it? My data files “<mymachinename>-s00**.vmdk” are present. I have  I use VMware Player 15.5.6 build-16341506

 

Here is my .vmx file:

#!/usr/bin/vmware .encoding = “UTF-8” config.version = “8” virtualHW.version = “16” mks.enable3d = “TRUE” pciBridge0.present = “TRUE” pciBridge4.present = “TRUE” pciBridge4.virtualDev = “pcieRootPort” pciBridge4.functions = “8” pciBridge5.present = “TRUE” pciBridge5.virtualDev = “pcieRootPort” pciBridge5.functions = “8” pciBridge6.present = “TRUE” pciBridge6.virtualDev = “pcieRootPort” pciBridge6.functions = “8” pciBridge7.present = “TRUE” pciBridge7.virtualDev = “pcieRootPort” pciBridge7.functions = “8” vmci0.present = “TRUE” hpet0.present = “TRUE” nvram = “Windows 10 x64.nvram” virtualHW.productCompatibility = “hosted” gui.exitOnCLIHLT = “FALSE” powerType.powerOff = “soft” powerType.powerOn = “soft” powerType.suspend = “soft” powerType.reset = “soft” displayName = “Windows 10 x64” usb.vbluetooth.startConnected = “TRUE” firmware = “efi” sensor.location = “pass-through” guestOS = “windows9-64” tools.syncTime = “TRUE” sound.autoDetect = “TRUE” sound.virtualDev = “hdaudio” sound.fileName = “-1” sound.present = “TRUE” numvcpus = “6” cpuid.coresPerSocket = “6” memsize = “7132” mem.hotadd = “TRUE” sata0.present = “TRUE” nvme0.present = “TRUE” nvme0:0.fileName = “Windows 10 x64.vmdk” nvme0:0.present = “TRUE” sata0:1.deviceType = “cdrom-raw” sata0:1.fileName = “auto detect” sata0:1.present = “TRUE” usb.present = “TRUE” ehci.present = “TRUE” usb_xhci.present = “TRUE” svga.graphicsMemoryKB = “1048576” ethernet0.connectionType = “nat” ethernet0.addressType = “generated” ethernet0.virtualDev = “e1000e” serial0.fileType = “thinprint” serial0.fileName = “thinprint” floppy0.fileType = “device” floppy0.fileName = “” ethernet0.present = “TRUE” serial0.present = “TRUE” extendedConfigFile = “Windows 10 x64.vmxf” floppy0.clientDevice = “FALSE” numa.autosize.cookie = “60062” numa.autosize.vcpu.maxPerVirtualNode = “6” uuid.bios = “56 4d 00 9c 7b c1 9a ba-09 4e db f4 86 37 08 ed” uuid.location = “56 4d bf a2 56 09 12 13-c8 83 c0 35 af ed be ac” vm.genid = “-3407638657669161311” vm.genidX = “-1657473956734542349” nvme0:0.redo = “” pciBridge0.pciSlotNumber = “17” pciBridge4.pciSlotNumber = “21” pciBridge5.pciSlotNumber = “22” pciBridge6.pciSlotNumber = “23” pciBridge7.pciSlotNumber = “24” usb.pciSlotNumber = “32” ethernet0.pciSlotNumber = “160” sound.pciSlotNumber = “33” ehci.pciSlotNumber = “34” usb_xhci.pciSlotNumber = “192” vmci0.pciSlotNumber = “35” sata0.pciSlotNumber = “36” nvme0.pciSlotNumber = “224” svga.vramSize = “268435456” vmotion.checkpointFBSize = “4194304” vmotion.checkpointSVGAPrimarySize = “268435456” ethernet0.generatedAddress = “00:0C:29:37:08:ED” ethernet0.generatedAddressOffset = “0” vmci0.id = “-2043213587” monitor.phys_bits_used = “43” cleanShutdown = “TRUE” softPowerOff = “FALSE” usb:1.speed = “2” usb:1.present = “TRUE” usb:1.deviceType = “hub” usb:1.port = “1” usb:1.parent = “-1” checkpoint.vmState = “” floppy0.autodetect = “TRUE” sata0:1.autodetect = “TRUE” sata0:1.clientDevice = “FALSE” svga.guestBackedPrimaryAware = “TRUE” tools.remindInstall = “TRUE” toolsInstallManager.updateCounter = “1” toolsInstallManager.lastInstallError = “0” guestOS.detailed.data = “” vhv.enable = “TRUE” floppy0.startConnected = “FALSE” sata0:1.startConnected = “FALSE” isolation.tools.hgfs.disable = “FALSE” sharedFolder0.present = “FALSE” sharedFolder0.enabled = “TRUE” sharedFolder0.readAccess = “TRUE” sharedFolder0.writeAccess = “TRUE” sharedFolder0.hostPath = “/home/art/mydir/dev/pwa” sharedFolder0.guestName = “PWAServer” sharedFolder0.expiration = “never” sharedFolder.maxNum = “0” hgfs.mapRootShare = “TRUE” gui.lastPoweredViewMode = “fullscreen” # See https://wiki.archlinux.org/index.php/VMware#System_speedup_tricks MemTrimRate = “0” sched.mem.pshare.enable = “FALSE” prefvmx.useRecommendedLockedMemSize = “TRUE” mainmem.backing = “swap” usb_xhci:4.present = “TRUE” usb_xhci:4.deviceType = “hid” usb_xhci:4.port = “4” usb_xhci:4.parent = “-1”

Here is extract from log:

2020-07-10T16:52:13.793+03:00| vmx| I005: DISK: OPEN nvme0:0 '/home/art/VMs/Windows 10 x64/Windows 10 x64.vmdk' persistent R[] 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [0]: "Windows 10 x64-s001.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [1]: "Windows 10 x64-s002.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [2]: "Windows 10 x64-s003.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [3]: "Windows 10 x64-s004.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [4]: "Windows 10 x64-s005.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [5]: "Windows 10 x64-s006.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [6]: "Windows 10 x64-s007.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [7]: "Windows 10 x64-s008.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [8]: "Windows 10 x64-s009.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [9]: "Windows 10 x64-s010.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [10]: "Windows 10 x64-s011.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [11]: "Windows 10 x64-s012.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [12]: "Windows 10 x64-s013.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [13]: "Windows 10 x64-s014.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [14]: "Windows 10 x64-s015.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [15]: "Windows 10 x64-s016.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [16]: "Windows 10 x64-s017.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [17]: "Windows 10 x64-s018.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [18]: "Windows 10 x64-s019.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [19]: "Windows 10 x64-s020.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [20]: "Windows 10 x64-s021.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [21]: "Windows 10 x64-s022.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [22]: "Windows 10 x64-s023.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [23]: "Windows 10 x64-s024.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [24]: "Windows 10 x64-s025.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-DSCPTR: Opened [25]: "Windows 10 x64-s026.vmdk" (0xa) 2020-07-10T16:52:13.794+03:00| vmx| I005: DISKLIB-LINK  : Opened '/home/art/VMs/Windows 10 x64/Windows 10 x64.vmdk' (0xa): twoGbMaxExtentSparse, 180355072 sectors / 86 GB. 2020-07-10T16:52:13.795+03:00| vmx| I005: DISKLIB-LIB   : Opened "/home/art/VMs/Windows 10 x64/Windows 10 x64.vmdk" (flags 0xa, type twoGbMaxExtentSparse). 2020-07-10T16:52:13.795+03:00| vmx| I005: DISKLIB-LIB_MISC   : DiskLib_GetStorageBlockSizes: Failed to get storage block sizes, The virtual disk requires a feature not supported by this program. 2020-07-10T16:52:13.795+03:00| vmx| I005: DiskGetGeometry: Reading of disk partition table 2020-07-10T16:52:13.795+03:00| vmx| I005: DISK: Disk '/home/art/VMs/Windows 10 x64/Windows 10 x64.vmdk' has UUID '60 00 c2 9f 78 bf fb 85-c1 a0 8a 1d f8 99 4c d7' 2020-07-10T16:52:13.795+03:00| vmx| I005: DISK: OPEN '/home/art/VMs/Windows 10 x64/Windows 10 x64.vmdk' Geo (11226/255/63) BIOS Geo (0/0/0)

I think I need to point valid offsets in this vmdk file based on file sizes. Here are file sizes:

-rwxrwxrwx 1 root root 4261937152 июл 13 11:21 'Windows 10 x64-s001.vmdk' -rwxrwxrwx 1 root root 4261937152 июл 10 19:05 'Windows 10 x64-s002.vmdk' -rwxrwxrwx 1 root root 4259053568 июл 10 19:07 'Windows 10 x64-s003.vmdk' -rwxrwxrwx 1 root root 4240834560 июл 10 19:07 'Windows 10 x64-s004.vmdk' -rwxrwxrwx 1 root root 4261806080 июл 10 19:07 'Windows 10 x64-s005.vmdk' -rwxrwxrwx 1 root root 4261871616 июл 10 19:07 'Windows 10 x64-s006.vmdk' -rwxrwxrwx 1 root root 4260298752 июл 10 19:07 'Windows 10 x64-s007.vmdk' -rwxrwxrwx 1 root root 4261543936 июл 10 19:05 'Windows 10 x64-s008.vmdk' -rwxrwxrwx 1 root root 4245225472 июл 10 19:05 'Windows 10 x64-s009.vmdk' -rwxrwxrwx 1 root root 4261871616 июл 10 19:05 'Windows 10 x64-s010.vmdk' -rwxrwxrwx 1 root root  335609856 июл 10 19:05 'Windows 10 x64-s011.vmdk' -rwxrwxrwx 1 root root 4261871616 июл 10 19:07 'Windows 10 x64-s012.vmdk' -rwxrwxrwx 1 root root 4261937152 июл 10 19:05 'Windows 10 x64-s013.vmdk' -rwxrwxrwx 1 root root 2214920192 июл 10 19:05 'Windows 10 x64-s014.vmdk' -rwxrwxrwx 1 root root 1073938432 июл 10 19:05 'Windows 10 x64-s015.vmdk' -rwxrwxrwx 1 root root 4261937152 июл 10 19:05 'Windows 10 x64-s016.vmdk' -rwxrwxrwx 1 root root 4261937152 июл 10 19:07 'Windows 10 x64-s017.vmdk' -rwxrwxrwx 1 root root 1141047296 июл 10 19:05 'Windows 10 x64-s018.vmdk' -rwxrwxrwx 1 root root 4261609472 июл 10 19:05 'Windows 10 x64-s019.vmdk' -rwxrwxrwx 1 root root 4261937152 июл 10 19:05 'Windows 10 x64-s020.vmdk' -rwxrwxrwx 1 root root 2214592512 июл 10 19:07 'Windows 10 x64-s021.vmdk' -rw-rw-rw- 1 root root 1320878080 июл 10 19:07 'Windows 10 x64-s022.vmdk' -rw-rw-rw- 1 root root     458752 июл  9 17:49 'Windows 10 x64-s023.vmdk' -rw-rw-rw- 1 root root     524288 июл 13 11:39 'Windows 10 x64-s024.vmdk' -rw-rw-rw- 1 root root     524288 июл 13 11:39 'Windows 10 x64-s025.vmdk' -rw-rw-rw- 1 root root     458752 июл  9 18:20 'Windows 10 x64-s026.vmdk'

I created another drive and have copied its vmdk but how to figure out the offsets? Here is the one:

# Disk DescriptorFile version=1 encoding="UTF-8" CID=fffffffe parentCID=ffffffff createType="twoGbMaxExtentSparse"  # Extent description   ???????????????????????????? RW ????? SPARSE "Windows 10 x64-s001.vmdk" RW 8323072 SPARSE "Windows 10 x64-s002.vmdk" RW 8323072 SPARSE "Windows 10 x64-s003.vmdk" RW 8323072 SPARSE "Windows 10 x64-s004.vmdk" RW 8323072 SPARSE "Windows 10 x64-s005.vmdk" RW 8323072 SPARSE "Windows 10 x64-s006.vmdk" RW 8323072 SPARSE "Windows 10 x64-s007.vmdk" RW 8323072 SPARSE "Windows 10 x64-s008.vmdk" RW 8323072 SPARSE "Windows 10 x64-s009.vmdk" RW 8323072 SPARSE "Windows 10 x64-s010.vmdk" RW 8323072 SPARSE "Windows 10 x64-s011.vmdk" RW 8323072 SPARSE "Windows 10 x64-s012.vmdk" RW 8323072 SPARSE "Windows 10 x64-s013.vmdk" RW 8323072 SPARSE "Windows 10 x64-s014.vmdk" RW 8323072 SPARSE "Windows 10 x64-s015.vmdk" RW 8323072 SPARSE "Windows 10 x64-s016.vmdk" RW 8323072 SPARSE "Windows 10 x64-s017.vmdk" RW 8323072 SPARSE "Windows 10 x64-s018.vmdk" RW 8323072 SPARSE "Windows 10 x64-s019.vmdk" RW 8323072 SPARSE "Windows 10 x64-s020.vmdk" RW 8323072 SPARSE "Windows 10 x64-s021.vmdk" RW 5570560 SPARSE "Windows 10 x64-s022.vmdk"  # The Disk Data Base  #DDB  ddb.adapterType = "lsilogic" ddb.geometry.cylinders = "11226" ddb.geometry.heads = "255" ddb.geometry.sectors = "63" ddb.longContentID = "46d92eea92459923483ce4fefffffffe" ddb.uuid = "60 00 C2 9e 9e 79 37 a2-73 96 7b 7f 5d 6d 8e 20" ddb.virtualHWVersion = "16" 

Source link

Tags

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Close