VMware Communities
teranb
Contributor
Contributor

How do I restore vmdk disk image?

I have a disk with a Linux system, splitted into parts, and with one snapshot.

There are 9 parts of disk with snapshot (Disk-000001-s001..9.vmdk), and 9 parts of disk without snapshot (Disk-s001..9.vmdk).

Disk.vmdk
Disk-000001.vmdk
Disk-000001-s001.vmdk
Disk-000001-s002.vmdk
Disk-000001-s003.vmdk
Disk-000001-s004.vmdk
Disk-000001-s005.vmdk
Disk-000001-s006.vmdk
Disk-000001-s007.vmdk
Disk-000001-s008.vmdk
Disk-000001-s009.vmdk
Disk-s001.vmdk
Disk-s002.vmdk
Disk-s003.vmdk
Disk-s004.vmdk
Disk-s005.vmdk
Disk-s006.vmdk
Disk-s007.vmdk
Disk-s008.vmdk -- DAMAGED
Disk-s009.vmdk

 

I have files Disk-s008.vmdk damaged (and Disk-Snapshot027.vmem).

Is it possible to restore the image?

 

Reply
0 Kudos
2 Replies
a_p_
Leadership
Leadership

You could try to replace the damaged file with a copy of "Disk-000001-s008.vmdk".
This won't bring back the lost data, but it should technically fix the virtual disk, so that you can access it.
I recommend that you take another snapshot after replacing the file, and before powering on the VM.

Please allow me to ask you what kind of damage you have. Has the file been overwritten etc.?
If it's a metadata corruption, I may be able to fix the metadata depending on the extent of damage.

André

Reply
0 Kudos
teranb
Contributor
Contributor

The files have been in RAR archive, and RAR archive has get corrupted, and I extracted 80% of the file (Disk-s008.vmdk).

I executed "vmware-vdiskmanager -R Disk.vmdk". It fixed "Disk-s008.vmdk".

Then I resumed my Virtual Machine from suspended state (probably it won't boot otherwise), and tried to repair filesystem under Linux (with a command fsck ).

Then I rebooted my Linux VM, and it's started, but it's broken in some way, and I have to reinstall it.

Probably no one will reply here about Linux, so...

I don't know about Linux, but in Windows, chkdsk can damage the filesystem more than it has been damaged before.

It fixes the filesystem, but not repairs the files.

I could give it another try.

Reply
0 Kudos