I've a corrupted vdi header and vm does not boot
I tried to copy 512 bytes from a new vdi to the corrupted vdi but end up with UUID issue as I missed to release and remove the corrupted vdi in virtual box
virtual box version - 6.1.12
vdi size - 852 GB (915,260,047,360 bytes)
attached the 2MB+ hex data (2098176 bytes)
VDI with a corrupted header
VDI with a corrupted header
- Attachments
-
- 2098176_bytes.zip
- (142.24 KiB) Downloaded 11 times
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: VDI with a corrupted header
Mpack's CloneVDI can try to repair corrupted headers. If CloneVDI can't do it, then you'll have to rely on your backups.
Re: VDI with a corrupted header
clone vdi says "source file corrupt - block map contains errors
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: VDI with a corrupted header
If the CloneVDI instructions have no way forward, then your VDI is toast. You can wait for Mpack to come by, he might have further ideas.
Re: VDI with a corrupted header
Please mark this as solved as I had a typo while created a new vdi(I had entered 825 instead of 852).
I came to know this after fsck reported a mismatch in size. Apologies for my mistake.
Mpack's manual solution works for me
I came to know this after fsck reported a mismatch in size. Apologies for my mistake.
Mpack's manual solution works for me
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: VDI with a corrupted header
Just to follow up on this. I had a look at the header even though CloneVDI is perfectly capable of analysing it correctly. Unfortunately it looks like, unusually, the original VDI is greater than 256GB capacity, and therefore the normal "2MB and change" diagnostic data is not correct in this case. The diagnostic file needs to grow by 1MB for every additional 256GB of VDI capacity.
Or not. If the file is repairable then CloneVDI will offer you a Repair button, even if it reports an error. If CloneVDI does not offer a repair button then the VDI cannot be repaired, because the problem is not confined to the header. Usually this means that the block map is doing things that can't be fixed, e.g. referencing the same block multiple times, or is referencing blocks that don't exist, perhaps because the VDI was truncated.
Or not. If the file is repairable then CloneVDI will offer you a Repair button, even if it reports an error. If CloneVDI does not offer a repair button then the VDI cannot be repaired, because the problem is not confined to the header. Usually this means that the block map is doing things that can't be fixed, e.g. referencing the same block multiple times, or is referencing blocks that don't exist, perhaps because the VDI was truncated.