Page 1 of 3

Any tool that repairs a corrupted VDI file?

Posted: 7. Oct 2011, 03:25
by leonbnu
Host: vista
Guest: debian 64bit

The guest suddenly crashed when i was switching branches in git. Then I couldn't start the VM again. After I removed the img . I couldn't attach it again to the SATA controller, It gives me error saying "VERR_NOT_SUPPORTED". Then i also tried the CloneVDI tool, it tells me not recognized VDI file format. So I guess the img file is corrupted somehow ?

Then I opened the VDI file with a binary reader, I can still see my project files. So I am wondering there is anything that I can try to repair this VDI file ?
Here is the first part of the VDI file

Code: Select all

Offset(h)  00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

000000000  D9 04 76 8E B3 EB 22 8A 18 F1 B5 5D 3C 8C 0C E1  Ù.vŽ³ë"Š.ñµ]<Œ.á
000000010  36 C1 62 CF F9 76 AE 3D 13 90 A5 28 02 DB 46 BC  6ÁbÏùv®=..¥(.ÛF¼
000000020  05 76 92 78 9B 62 64 69 97 B0 17 5E 88 D4 C3 3E  .v’x›bdi—°.^ˆÔÃ>
000000030  B0 96 3A EF 3F CA 9C C1 91 01 52 83 49 6B D6 C0  °–:ï?ÊœÁ‘.RƒIkÖÀ
000000040  DC 44 4F BB 1B FB 0E 4D 90 01 00 00 01 00 00 00  ÜDO».û.M........
000000050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000000A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000000B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000000C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000000D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000000E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000000F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000130  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000140  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000150  00 00 00 00 00 10 00 00 00 10 04 00 00 00 00 00  ................
000000160  00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00  ................
000000170  00 00 00 00 10 00 00 00 00 00 10 00 00 00 00 00  ................
000000180  00 00 01 00 D9 91 00 00 C3 2F D5 79 EE 70 B8 45  ....Ù‘..Ã/Õyîp¸E
000000190  AB C9 5E 91 D6 0F 06 6F 84 B5 19 1A 27 D4 E2 45  «É^‘Ö..o„µ..'ÔâE
0000001A0  B7 EF 43 96 85 FF 93 AF 00 00 00 00 00 00 00 00  ·ïC–…ÿ“¯........
0000001B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000001C0  00 00 00 00 00 00 00 00 00 04 00 00 FF 00 00 00  ............ÿ...
0000001D0  3F 00 00 00 00 02 00 00 B4 27 2F F9 ED 79 FA 17  ?.......´'/ùíyú.
0000001E0  EC 2D BC 14 0D 2C 45 8A 5E E7 98 7E E6 62 16 7D  ì-¼..,EŠ^ç˜~æb.}
0000001F0  80 88 03 04 BF 08 9A 6A 5B 49 CF D6 65 79 4E C7  €ˆ..¿.šj[IÏÖeyNÇ
000000200  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000210  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000220  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000230  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000240  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000250  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000260  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000270  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000280  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000290  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000002A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000002B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000002C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000002D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000002E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000002F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000300  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000310  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000320  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000330  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000340  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000350  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000360  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000370  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000380  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000390  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000003A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000003B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000003C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000003D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000003E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000003F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000400  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000410  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000420  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000430  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000440  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000450  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000460  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000470  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000480  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000490  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000004A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000004B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000004C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000004D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000004E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000004F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000500  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000510  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000520  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000530  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000540  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000550  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000560  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000570  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000580  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000590  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000005A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000005B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000005C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000005D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000005E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000005F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000600  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000610  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000620  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000630  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000640  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000650  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000660  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000670  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000680  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000690  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000006A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000006B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000006C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000006D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000006E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000006F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000700  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000710  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000720  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000730  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000740  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000750  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000760  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000770  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000780  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000790  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000007A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000007B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000007C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000007D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000007E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000007F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000800  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000810  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000820  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000830  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000840  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000850  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000860  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000870  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000880  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000890  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000008A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000008B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000008C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000008D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000008E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000008F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000900  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000910  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000920  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000930  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000940  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000950  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000960  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000970  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000980  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000990  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000009A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000009B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000009C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000009D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000009E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000009F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A10  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A30  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A50  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A70  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A80  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A90  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000AA0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000AB0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000AC0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000AD0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000AE0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000AF0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B10  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B30  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B50  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B70  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B80  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B90  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000BA0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000BB0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000BC0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000BD0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000BE0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000BF0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C10  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C30  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C50  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C70  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C80  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C90  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000CA0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000CB0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000CC0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000CD0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000CE0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000CF0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D10  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D30  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D50  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D70  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D80  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D90  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000DA0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000DB0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000DC0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000DD0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000DE0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000DF0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E10  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E30  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E50  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E70  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E80  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E90  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000EA0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000EB0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000EC0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000ED0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000EE0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000EF0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F10  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F30  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F50  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F70  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F80  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F90  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000FA0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000FB0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000FC0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000FD0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000FE0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000FF0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................


Re: Any tool that repairs a corrupted VDI file?

Posted: 7. Oct 2011, 12:46
by mpack
FIRST MAKE A BACKUP OF THE VDI FILE IN CASE YOU MAKE THINGS WORSE.

Your VDI file is definitely corrupted, but it looks to me like it's only the preheader which is damaged. The preheader is like a signature that marks this as a legit VDI file, but it doesn't contain any data. The UINT cbSize field at offset 72 (48 hex) is the first field of the true header, and this contains the four byte value I would expect (90 01 00 00), and I think the fields after that are ok too.

If this the only corruption then it should be easy to fix. The hex editor you mentioned hopefully allows you to copy and paste between files, so just replace the first 72 bytes of the damaged file with that from an undamaged VDI. That should repair the damage.

Re: Any tool that repairs a corrupted VDI file?

Posted: 7. Oct 2011, 18:58
by leonbnu
Thank you so much! backing up my VDI image now, going to replace the first 72 bytes, fingers crossed..

Re: Any tool that repairs a corrupted VDI file?

Posted: 7. Oct 2011, 19:33
by leonbnu
Yes, it worked!
Thank you so much for your help! :D

Re: Any tool that repairs a corrupted VDI file?

Posted: 7. Oct 2011, 20:48
by vbox4me2
Make sure you run a chkdsk now.

Re: Any tool that repairs a corrupted VDI file?

Posted: 27. Mar 2014, 17:41
by Giorgio
Hy,
I have a big problem, my VM will not open, this is the error when I open the virtual machine.
Thanks :)

Could not open the medium '/Volumes/admin/Desktop/MACWIN2003/MACWIN2003.vdi'.
VDI: invalid pre-header in '/Volumes/admin/Desktop/MACWIN2003/MACWIN2003.vdi' (VERR_VD_VDI_INVALID_HEADER).
VD: error VERR_VD_VDI_INVALID_HEADER opening image file '/Volumes/admin/Desktop/MACWIN2003/MACWIN2003.vdi' (VERR_VD_VDI_INVALID_HEADER).


Codice 'uscita:
NS_ERROR_FAILURE (0x80004005)
Componente:
Medium
Interfaccia:
IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}

Re: Any tool that repairs a corrupted VDI file?

Posted: 27. Mar 2014, 19:27
by mpack
Sorry, my crystal ball is broken. If you want me to comment on your VDI corruption then you need to give me the data. Note the information provided by the OP in this thread.

Incidentally, I would want to see the original data, not the stuff that you have been messing with. "I tried adding 72 bytes" does not sound good, and the other stuff you tried - I don't recognize at all.

Re: Any tool that repairs a corrupted VDI file?

Posted: 30. Mar 2014, 13:42
by mpack
It's a good job I revisited this thread by accident. It isn't a good idea to provide missing information by editing your previous post, because I don't get any notification that you've done that. As far the forum summary was concerned, I was the last person to comment in this thread.

More bad news: I've looked at the file snippet you provided and it's junk. This is not the header of a VDI file. It's some other kind of data entirely: the data is very dense - hardly a zero byte in sight, so I'd say it's a piece of executable code or it's compressed something (part of a zip maybe).

Now, you only gave me the first 4K of the file, which corresponds to a single file cluster. If you like you can zip up (say) the first 100k, and I'll take another look to see if anything is left.

Oh: and I suggest running a chkdsk on your host drive.

Re: Any tool that repairs a corrupted VDI file?

Posted: 31. Mar 2014, 12:12
by Giorgio
Hy Mpack, thanks for your help!

I attach the file

Sorry for my english...

Re: Any tool that repairs a corrupted VDI file?

Posted: 31. Mar 2014, 13:35
by mpack
The snippet posted is 9.7K, not the 100K asked for.

However, it's large enough that I should be seeing the start of the block map, and I'm not - it's still garbage all the way through to the end. I see no possibility of recovery, in fact I don't even believe this was ever a VDI file.

Re: Any tool that repairs a corrupted VDI file?

Posted: 31. Mar 2014, 14:27
by Giorgio
This is a file VDI, believe me
This is the result after the computer crashed. When I restarted the computer, the folder was not there! I found the file with a scan.
It was a Virtual Machine Hard Disk 500 GB, 70 GB used.

Re: Any tool that repairs a corrupted VDI file?

Posted: 31. Mar 2014, 15:10
by mpack
Giorgio wrote:I found the file with a scan.
Then I'm afraid your scan tool has recovered the correct filename but the wrong data. The data does not come from a VDI file.

A crash (other than a head crash on the disk itself) will not lose data from a file. It specifically won't lose a file header! It isn't as if these things are held in volatile memory.

Re: Any tool that repairs a corrupted VDI file?

Posted: 31. Mar 2014, 15:37
by Giorgio
Ok Mpack! Thanks for you help!

Re: Any tool that repairs a corrupted VDI file?

Posted: 22. Apr 2014, 16:52
by jpopelka
Hello experts,

well I have a vdi file named winxp.vdi. I have just defragmented it and it worked fine. After shutdown of computer and restart I am not able to run it under Virtualbox, I see just a blackscreen with no activities on this virtual drive. Another VD named winXp.vdi that is on a second HD works flawlessly.
Any recommended remedy for such a behaviour?

Re: Any tool that repairs a corrupted VDI file?

Posted: 22. Apr 2014, 17:03
by mpack
@jpopelka, please start a new thread and describe your problem properly.

This thread does not match your question: if VirtualBox gives you an error that it can't open the VDI file, then you have a corrupted VDI file. If the VM starts but you have a problem with the guest... then you have a problem with the guest, not with the VDI, and therefore you don't have the problem being discussed in this thread.