error VDI: invalid pre-header - VERR_VD_VDI_INVALID_HEADER opening image file
Posted: 14. Feb 2021, 15:59
Dear Oracle community,
I'm having a real big trouble recovering / loading / opening vdi medium file on virtualbox manager. This file was recovered right before a disk wipe-out. I'm asking if anyone can help me at least find way to recover some of the files inside this vdi file or even if possible to restore the linux guest medium at all. Here is the output errors and info about the file/system:
Files in VM folder:
Thank you
Pedro
I'm having a real big trouble recovering / loading / opening vdi medium file on virtualbox manager. This file was recovered right before a disk wipe-out. I'm asking if anyone can help me at least find way to recover some of the files inside this vdi file or even if possible to restore the linux guest medium at all. Here is the output errors and info about the file/system:
I would post printscreen errors and info if i had permission to post urls, but because i'm new here I can't do it for now. I'm just going to quote errors:Failed to open a session for the virtual machine IONGNSS.
Could not open the medium 'C:\Users\epedr\VirtualBox VMs\IONGNSS\IONGNSS_1.vdi'.
VDI: invalid pre-header in 'C:\Users\epedr\VirtualBox VMs\IONGNSS\IONGNSS_1.vdi' (VERR_VD_VDI_INVALID_HEADER).
VD: error VERR_VD_VDI_INVALID_HEADER opening image file 'C:\Users\epedr\VirtualBox VMs\IONGNSS\IONGNSS_1.vdi' (VERR_VD_VDI_INVALID_HEADER).
Result Code: E_FAIL (0x80004005)
Component: MediumWrap
Interface: IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
Files in VM folder:
Repair attempt with: VBoxManage internalcommands repairhd
Directory of C:\Users\epedr\VirtualBox VMs\IONGNSS
14/02/2021 13:04 <DIR> .
14/02/2021 13:04 <DIR> ..
14/02/2021 13:04 6 454 IONGNSS.vbox
13/02/2021 16:54 6 454 IONGNSS.vbox-prev
13/01/2021 02:12 39 450 574 848 IONGNSS_1.vdi
14/02/2021 13:04 <DIR> Logs
3 File(s) 39 450 587 756 bytes
3 Dir(s) 247 754 063 872 bytes free
VBoxManage internalcommands dumphdinfo:C:\Users\epedr\VirtualBox VMs\IONGNSS>VBoxManage internalcommands repairhd IONGNSS_1.vdi -format VDI
VBoxManage.exe: error: VDI: invalid pre-header in 'IONGNSS_1.vdi'
VBoxManage.exe: error: Error code VERR_VD_IMAGE_REPAIR_IMPOSSIBLE at F:\tinderbox\win-6.1\src\VBox\Storage\VDI.cpp(2943) in function int __cdecl vdiRepair(const char *,struct VDINTERFACE *,struct VDINTERFACE *,unsigned int)
Convertion to raw attempt: VBoxManage internalcommands converttorawC:\Users\epedr\VirtualBox VMs\IONGNSS>VBoxManage internalcommands dumphdinfo IONGNSS_1.vdi
VBoxManage.exe: error: Format autodetect failed: VERR_NOT_SUPPORTED
VBoxManage internalcommands converthdC:\Users\epedr\VirtualBox VMs\IONGNSS>VBoxManage internalcommands converttoraw -format VDI IONGNSS_1.vdi rescue_raw
VBoxManage.exe: error: VDI: invalid pre-header in 'IONGNSS_1.vdi'
VBoxManage.exe: error: Error code VERR_VD_VDI_INVALID_HEADER at F:\tinderbox\win-6.1\src\VBox\Storage\VDI.cpp(889) in function int __cdecl vdiImageReadHeader(struct VDIIMAGEDESC *)
VBoxManage.exe: error: VD: error VERR_VD_VDI_INVALID_HEADER opening image file 'IONGNSS_1.vdi'
VBoxManage.exe: error: Error code VERR_VD_VDI_INVALID_HEADER at F:\tinderbox\win-6.1\src\VBox\Storage\VD.cpp(5762) in function int __cdecl VDOpen(struct VDISK *,const char *,const char *,unsigned int,struct VDINTERFACE *)
VBoxManage.exe: error: Cannot open the source image: VERR_VD_VDI_INVALID_HEADER
What more can I do? Can anyone please help me?C:\Users\epedr\VirtualBox VMs\IONGNSS>VBoxManage internalcommands converthd -srcformat VDI -dstformat -RAW IONGNSS_1.vdi rescue.raw
VBoxManage.exe: error: VDI: invalid pre-header in 'IONGNSS_1.vdi'
VBoxManage.exe: error: Error code VERR_VD_VDI_INVALID_HEADER at F:\tinderbox\win-6.1\src\VBox\Storage\VDI.cpp(889) in function int __cdecl vdiImageReadHeader(struct VDIIMAGEDESC *)
VBoxManage.exe: error: VD: error VERR_VD_VDI_INVALID_HEADER opening image file 'IONGNSS_1.vdi'
VBoxManage.exe: error: Error code VERR_VD_VDI_INVALID_HEADER at F:\tinderbox\win-6.1\src\VBox\Storage\VD.cpp(5762) in function int __cdecl VDOpen(struct VDISK *,const char *,const char *,unsigned int,struct VDINTERFACE *)
VBoxManage.exe: error: Cannot open the source image: VERR_VD_VDI_INVALID_HEADER
Thank you
Pedro