[VirtualBox Disk Image] [Regression] EINVAL when opening image created by Aaru 5.3.0 #1004

Open
opened 2026-01-29 15:37:57 +00:00 by claunia · 1 comment
Owner

Originally created by @claunia on GitHub (Nov 30, 2024).

Originally assigned to: @claunia on GitHub.

Version

Development commit

Commit hash

1f164d9c75

Tested debug version?

  • Yes

Which operating systems have you used?

  • Windows
  • Linux
  • macOS
  • Other

What is the architectural bit size you're using?

  • 32-bit
  • 64-bit
  • Unsure or unknown

What processor are you using?

  • An Intel or AMD
  • An ARM or Apple Silicon
  • Unsure or unknown

Image format

VirtualBox Disk Image

Application that created the image

aaru

What were you doing when it failed?

  • I was converting the image to another format...
  • I was retrieving image information...
  • I was retrieving filesystem information...
  • I was listing the filesystem contents...
  • I was extracting the filesystem contents...
  • I was creating a metadata sidecar...
  • I was checksumming the image...
  • I was verifying the image...
  • I was calculating the image entropy...

Destination image format

No response

Filesystem

No response

Description

EINVAL after reading logical CHS from image created from Aaru 5.3.

Exact command line used

aaru --debug fs info RVOS.vdi

Expected behavior

Image opens correctly.

Actual behavior

EINVAL return error.

Output of command execution with debug output enabled

aaru 6.0.0-alpha9+1f164d9c.1f164d9c7513c8293c0c385d20e7ad83831ad2d4
Copyright © 2011-2024 Natalia Portillo

DEBUG (Fs-info command): --debug=True
DEBUG (Fs-info command): --encoding=
DEBUG (Fs-info command): --filesystems=True
DEBUG (Fs-info command): --input=RVOS.vdi
DEBUG (Fs-info command): --partitions=True
DEBUG (Fs-info command): --verbose=False
DEBUG (Format detection): Trying plugin A2R
DEBUG (Format detection): Trying plugin Aaru Format
DEBUG (Format detection): Trying plugin ACT Apricot Disk Image
DEBUG (Format detection): Trying plugin Alcohol 120% Media Descriptor Structure
DEBUG (Format detection): Trying plugin Anex86 Disk Image
DEBUG (Anex86 plugin): fdihdr.unknown = 540818492
DEBUG (Anex86 plugin): fdihdr.hddtype = 1970430273
DEBUG (Anex86 plugin): fdihdr.hdrSize = 1919505952
DEBUG (Anex86 plugin): fdihdr.dskSize = 1818326388
DEBUG (Anex86 plugin): fdihdr.bps = 544763714
DEBUG (Anex86 plugin): fdihdr.spt = 1802725700
DEBUG (Anex86 plugin): fdihdr.heads = 1634552096
DEBUG (Anex86 plugin): fdihdr.cylinders = 1042310503
DEBUG (Format detection): Trying plugin Apple 2IMG
DEBUG (Format detection): Trying plugin Apple Disk Archival/Retrieval Tool
DEBUG (Format detection): Trying plugin Apple DiskCopy 4.2
DEBUG (DiskCopy 4.2 plugin): tmp_header.diskName = "<< Aaru VirtualBox Disk Image >>>
"
DEBUG (DiskCopy 4.2 plugin): tmp_header.dataSize = 2131811006 bytes
DEBUG (DiskCopy 4.2 plugin): tmp_header.tagSize = 16777472 bytes
DEBUG (DiskCopy 4.2 plugin): tmp_header.dataChecksum = 0x90010000
DEBUG (DiskCopy 4.2 plugin): tmp_header.tagChecksum = 0x01000000
DEBUG (DiskCopy 4.2 plugin): tmp_header.format = 0x00
DEBUG (DiskCopy 4.2 plugin): tmp_header.fmtByte = 0x00
DEBUG (DiskCopy 4.2 plugin): tmp_header.valid = 0
DEBUG (DiskCopy 4.2 plugin): tmp_header.reserved = 0
DEBUG (Format detection): Trying plugin Apple New Disk Image Format
DEBUG (Format detection): Trying plugin Apple NIB
DEBUG (Format detection): Trying plugin Apple Universal Disk Image Format
DEBUG (Format detection): Trying plugin Basic Lisa Utility
DEBUG (Format detection): Trying plugin BlindWrite 4
DEBUG (Format detection): Trying plugin BlindWrite 5
DEBUG (Format detection): Trying plugin CDRDAO tocfile
DEBUG (Format detection): Trying plugin CDRWin cuesheet
DEBUG (Format detection): Trying plugin CisCopy Disk Image (DC-File)
DEBUG (Format detection): Trying plugin CloneCD
DEBUG (Format detection): Trying plugin CopyTape
DEBUG (Format detection): Trying plugin CPCEMU Disk-File and Extended CPC Disk-File
DEBUG (Format detection): Trying plugin d2f disk image
DEBUG (Format detection): Trying plugin D88 Disk Image
DEBUG (D88 plugin): d88hdr.name = "<<< Aaru VirtualB"
DEBUG (D88 plugin): d88hdr.reserved is empty? = False
DEBUG (D88 plugin): d88hdr.write_protect = 0x6D
DEBUG (D88 plugin): d88hdr.disk_type = 97 (97)
DEBUG (D88 plugin): d88hdr.disk_size = 1042310503
DEBUG (Format detection): Trying plugin Digital Research DiskCopy
DEBUG (Format detection): Trying plugin DIM Disk Image
DEBUG (Format detection): Trying plugin DiscFerret
DEBUG (Format detection): Trying plugin DiscJuggler
DEBUG (DiscJuggler plugin): dscLen = -1437270016
DEBUG (Format detection): Trying plugin DiskDupe DDI Disk Image
DEBUG (Format detection): Trying plugin Dreamcast GDI image
DEBUG (Format detection): Trying plugin Dunfield's IMD
DEBUG (Format detection): Trying plugin HD-Copy disk image
DEBUG (Format detection): Trying plugin IBM SaveDskF
DEBUG (Format detection): Trying plugin KryoFlux STREAM
DEBUG (Format detection): Trying plugin MAME Compressed Hunks of Data
DEBUG (Format detection): Trying plugin MAXI Disk image
DEBUG (MAXI Disk plugin): tmp_header.unknown = 60
DEBUG (MAXI Disk plugin): tmp_header.diskType = 60
DEBUG (MAXI Disk plugin): tmp_header.heads = 60
DEBUG (MAXI Disk plugin): tmp_header.cylinders = 32
DEBUG (MAXI Disk plugin): tmp_header.bytesPerSector = 65
DEBUG (MAXI Disk plugin): tmp_header.sectorsPerTrack = 97
DEBUG (MAXI Disk plugin): tmp_header.unknown2 = 114
DEBUG (MAXI Disk plugin): tmp_header.unknown3 = 117
DEBUG (Format detection): Trying plugin Microsoft VHDX
DEBUG (Format detection): Trying plugin Nero Burning ROM image
DEBUG (Nero plugin): imageStream.Length = 320055280640
DEBUG (Nero plugin): footerV1.ChunkID = 0x809DB2CA
DEBUG (Nero plugin): footerV1.FirstChunkOffset = 21930
DEBUG (Nero plugin): footerV2.ChunkID = 0x00000000
DEBUG (Nero plugin): footerV2.FirstChunkOffset = 9267760188851508650
DEBUG (Format detection): Trying plugin Parallels disk image
DEBUG (Format detection): Trying plugin PartClone disk image
DEBUG (Format detection): Trying plugin Partimage disk image
DEBUG (Format detection): Trying plugin QEMU Copy-On-Write disk image
DEBUG (Format detection): Trying plugin QEMU Copy-On-Write disk image v2
DEBUG (QCOW2 plugin): qHdr.magic = 0x3C3C3C20
DEBUG (QCOW2 plugin): qHdr.version = 1096905333
DEBUG (Format detection): Trying plugin QEMU Enhanced Disk image
DEBUG (Format detection): Trying plugin Ray Arachelian's Disk IMage
DEBUG (Ray Arachelian's Disk IMage plugin): header.signature = <<< Aaru VirtualBox Disk Image >>>

DEBUG (Ray Arachelian's Disk IMage plugin): header.diskType = 0
DEBUG (Ray Arachelian's Disk IMage plugin): header.heads = 0
DEBUG (Ray Arachelian's Disk IMage plugin): header.cylinders = 0
DEBUG (Ray Arachelian's Disk IMage plugin): header.sectorsPerTrack = 0
DEBUG (Ray Arachelian's Disk IMage plugin): header.signature matches? = False
DEBUG (Format detection): Trying plugin RS-IDE Hard Disk Image
DEBUG (Format detection): Trying plugin Spectrum Floppy Disk Image
DEBUG (Format detection): Trying plugin SuperCardPro
DEBUG (Format detection): Trying plugin Sydex CopyQM
DEBUG (Format detection): Trying plugin Sydex TeleDisk
DEBUG (Format detection): Trying plugin T98 Hard Disk Image
DEBUG (Format detection): Trying plugin T98-Next NHD r0 Disk Image
DEBUG (Format detection): Trying plugin Virtual PC
DEBUG (Format detection): Trying plugin Virtual98 Disk Image
DEBUG (Format detection): Trying plugin VirtualBox Disk Image
Image format identified by VirtualBox Disk Image.

DEBUG (VirtualBox plugin): vHdr.creator = <<< Aaru VirtualBox Disk Image >>>

DEBUG (VirtualBox plugin): vHdr.magic = 3201962111
DEBUG (VirtualBox plugin): vHdr.version = 1.1
DEBUG (VirtualBox plugin): vHdr.headerSize = 400
DEBUG (VirtualBox plugin): vHdr.imageType = Normal
DEBUG (VirtualBox plugin): vHdr.imageFlags = 0
DEBUG (VirtualBox plugin): vHdr.description = 
DEBUG (VirtualBox plugin): vHdr.offsetBlocks = 512
DEBUG (VirtualBox plugin): vHdr.offsetData = 1221632
DEBUG (VirtualBox plugin): vHdr.cylinders = 16383
DEBUG (VirtualBox plugin): vHdr.heads = 16
DEBUG (VirtualBox plugin): vHdr.spt = 63
DEBUG (VirtualBox plugin): vHdr.sectorSize = 512
DEBUG (VirtualBox plugin): vHdr.size = 320072933376
DEBUG (VirtualBox plugin): vHdr.blockSize = 1048576
DEBUG (VirtualBox plugin): vHdr.blockExtraData = 0
DEBUG (VirtualBox plugin): vHdr.blocks = 305246
DEBUG (VirtualBox plugin): vHdr.allocatedBlocks = 305228
DEBUG (VirtualBox plugin): vHdr.uuid = 6845eda0-3633-4ae3-8dc2-8f5cff078c07
DEBUG (VirtualBox plugin): vHdr.snapshotUuid = a620eb58-98df-4bc8-9250-060eccb27bdc
DEBUG (VirtualBox plugin): vHdr.linkUuid = 00000000-0000-0000-0000-000000000000
DEBUG (VirtualBox plugin): vHdr.parentUuid = 00000000-0000-0000-0000-000000000000
DEBUG (VirtualBox plugin): vHdr.logicalCylinders = 620181
DEBUG (VirtualBox plugin): vHdr.logicalHeads = 16
DEBUG (VirtualBox plugin): vHdr.logicalSpt = 63
DEBUG (VirtualBox plugin): vHdr.logicalSectorSize = 0
DEBUG (VirtualBox plugin): Reading Image Block Map
DEBUG (VirtualBox plugin): Reading Image Block Map took 21.5185 ms
Unable to open image format
Error: EINVAL
Uploading statistics

Affected image

No response

Originally created by @claunia on GitHub (Nov 30, 2024). Originally assigned to: @claunia on GitHub. ### Version Development commit ### Commit hash 1f164d9c7513c8293c0c385d20e7ad83831ad2d4 ### Tested debug version? - [X] Yes ### Which operating systems have you used? - [ ] Windows - [X] Linux - [ ] macOS - [ ] Other ### What is the architectural bit size you're using? - [ ] 32-bit - [X] 64-bit - [ ] Unsure or unknown ### What processor are you using? - [X] An Intel or AMD - [ ] An ARM or Apple Silicon - [ ] Unsure or unknown ### Image format VirtualBox Disk Image ### Application that created the image aaru ### What were you doing when it failed? - [ ] I was converting the image to another format... - [X] I was retrieving image information... - [ ] I was retrieving filesystem information... - [ ] I was listing the filesystem contents... - [ ] I was extracting the filesystem contents... - [ ] I was creating a metadata sidecar... - [ ] I was checksumming the image... - [ ] I was verifying the image... - [ ] I was calculating the image entropy... ### Destination image format _No response_ ### Filesystem _No response_ ### Description EINVAL after reading logical CHS from image created from Aaru 5.3. ### Exact command line used aaru --debug fs info RVOS.vdi ### Expected behavior Image opens correctly. ### Actual behavior EINVAL return error. ### Output of command execution with debug output enabled ```shell aaru 6.0.0-alpha9+1f164d9c.1f164d9c7513c8293c0c385d20e7ad83831ad2d4 Copyright © 2011-2024 Natalia Portillo DEBUG (Fs-info command): --debug=True DEBUG (Fs-info command): --encoding= DEBUG (Fs-info command): --filesystems=True DEBUG (Fs-info command): --input=RVOS.vdi DEBUG (Fs-info command): --partitions=True DEBUG (Fs-info command): --verbose=False DEBUG (Format detection): Trying plugin A2R DEBUG (Format detection): Trying plugin Aaru Format DEBUG (Format detection): Trying plugin ACT Apricot Disk Image DEBUG (Format detection): Trying plugin Alcohol 120% Media Descriptor Structure DEBUG (Format detection): Trying plugin Anex86 Disk Image DEBUG (Anex86 plugin): fdihdr.unknown = 540818492 DEBUG (Anex86 plugin): fdihdr.hddtype = 1970430273 DEBUG (Anex86 plugin): fdihdr.hdrSize = 1919505952 DEBUG (Anex86 plugin): fdihdr.dskSize = 1818326388 DEBUG (Anex86 plugin): fdihdr.bps = 544763714 DEBUG (Anex86 plugin): fdihdr.spt = 1802725700 DEBUG (Anex86 plugin): fdihdr.heads = 1634552096 DEBUG (Anex86 plugin): fdihdr.cylinders = 1042310503 DEBUG (Format detection): Trying plugin Apple 2IMG DEBUG (Format detection): Trying plugin Apple Disk Archival/Retrieval Tool DEBUG (Format detection): Trying plugin Apple DiskCopy 4.2 DEBUG (DiskCopy 4.2 plugin): tmp_header.diskName = "<< Aaru VirtualBox Disk Image >>> " DEBUG (DiskCopy 4.2 plugin): tmp_header.dataSize = 2131811006 bytes DEBUG (DiskCopy 4.2 plugin): tmp_header.tagSize = 16777472 bytes DEBUG (DiskCopy 4.2 plugin): tmp_header.dataChecksum = 0x90010000 DEBUG (DiskCopy 4.2 plugin): tmp_header.tagChecksum = 0x01000000 DEBUG (DiskCopy 4.2 plugin): tmp_header.format = 0x00 DEBUG (DiskCopy 4.2 plugin): tmp_header.fmtByte = 0x00 DEBUG (DiskCopy 4.2 plugin): tmp_header.valid = 0 DEBUG (DiskCopy 4.2 plugin): tmp_header.reserved = 0 DEBUG (Format detection): Trying plugin Apple New Disk Image Format DEBUG (Format detection): Trying plugin Apple NIB DEBUG (Format detection): Trying plugin Apple Universal Disk Image Format DEBUG (Format detection): Trying plugin Basic Lisa Utility DEBUG (Format detection): Trying plugin BlindWrite 4 DEBUG (Format detection): Trying plugin BlindWrite 5 DEBUG (Format detection): Trying plugin CDRDAO tocfile DEBUG (Format detection): Trying plugin CDRWin cuesheet DEBUG (Format detection): Trying plugin CisCopy Disk Image (DC-File) DEBUG (Format detection): Trying plugin CloneCD DEBUG (Format detection): Trying plugin CopyTape DEBUG (Format detection): Trying plugin CPCEMU Disk-File and Extended CPC Disk-File DEBUG (Format detection): Trying plugin d2f disk image DEBUG (Format detection): Trying plugin D88 Disk Image DEBUG (D88 plugin): d88hdr.name = "<<< Aaru VirtualB" DEBUG (D88 plugin): d88hdr.reserved is empty? = False DEBUG (D88 plugin): d88hdr.write_protect = 0x6D DEBUG (D88 plugin): d88hdr.disk_type = 97 (97) DEBUG (D88 plugin): d88hdr.disk_size = 1042310503 DEBUG (Format detection): Trying plugin Digital Research DiskCopy DEBUG (Format detection): Trying plugin DIM Disk Image DEBUG (Format detection): Trying plugin DiscFerret DEBUG (Format detection): Trying plugin DiscJuggler DEBUG (DiscJuggler plugin): dscLen = -1437270016 DEBUG (Format detection): Trying plugin DiskDupe DDI Disk Image DEBUG (Format detection): Trying plugin Dreamcast GDI image DEBUG (Format detection): Trying plugin Dunfield's IMD DEBUG (Format detection): Trying plugin HD-Copy disk image DEBUG (Format detection): Trying plugin IBM SaveDskF DEBUG (Format detection): Trying plugin KryoFlux STREAM DEBUG (Format detection): Trying plugin MAME Compressed Hunks of Data DEBUG (Format detection): Trying plugin MAXI Disk image DEBUG (MAXI Disk plugin): tmp_header.unknown = 60 DEBUG (MAXI Disk plugin): tmp_header.diskType = 60 DEBUG (MAXI Disk plugin): tmp_header.heads = 60 DEBUG (MAXI Disk plugin): tmp_header.cylinders = 32 DEBUG (MAXI Disk plugin): tmp_header.bytesPerSector = 65 DEBUG (MAXI Disk plugin): tmp_header.sectorsPerTrack = 97 DEBUG (MAXI Disk plugin): tmp_header.unknown2 = 114 DEBUG (MAXI Disk plugin): tmp_header.unknown3 = 117 DEBUG (Format detection): Trying plugin Microsoft VHDX DEBUG (Format detection): Trying plugin Nero Burning ROM image DEBUG (Nero plugin): imageStream.Length = 320055280640 DEBUG (Nero plugin): footerV1.ChunkID = 0x809DB2CA DEBUG (Nero plugin): footerV1.FirstChunkOffset = 21930 DEBUG (Nero plugin): footerV2.ChunkID = 0x00000000 DEBUG (Nero plugin): footerV2.FirstChunkOffset = 9267760188851508650 DEBUG (Format detection): Trying plugin Parallels disk image DEBUG (Format detection): Trying plugin PartClone disk image DEBUG (Format detection): Trying plugin Partimage disk image DEBUG (Format detection): Trying plugin QEMU Copy-On-Write disk image DEBUG (Format detection): Trying plugin QEMU Copy-On-Write disk image v2 DEBUG (QCOW2 plugin): qHdr.magic = 0x3C3C3C20 DEBUG (QCOW2 plugin): qHdr.version = 1096905333 DEBUG (Format detection): Trying plugin QEMU Enhanced Disk image DEBUG (Format detection): Trying plugin Ray Arachelian's Disk IMage DEBUG (Ray Arachelian's Disk IMage plugin): header.signature = <<< Aaru VirtualBox Disk Image >>> DEBUG (Ray Arachelian's Disk IMage plugin): header.diskType = 0 DEBUG (Ray Arachelian's Disk IMage plugin): header.heads = 0 DEBUG (Ray Arachelian's Disk IMage plugin): header.cylinders = 0 DEBUG (Ray Arachelian's Disk IMage plugin): header.sectorsPerTrack = 0 DEBUG (Ray Arachelian's Disk IMage plugin): header.signature matches? = False DEBUG (Format detection): Trying plugin RS-IDE Hard Disk Image DEBUG (Format detection): Trying plugin Spectrum Floppy Disk Image DEBUG (Format detection): Trying plugin SuperCardPro DEBUG (Format detection): Trying plugin Sydex CopyQM DEBUG (Format detection): Trying plugin Sydex TeleDisk DEBUG (Format detection): Trying plugin T98 Hard Disk Image DEBUG (Format detection): Trying plugin T98-Next NHD r0 Disk Image DEBUG (Format detection): Trying plugin Virtual PC DEBUG (Format detection): Trying plugin Virtual98 Disk Image DEBUG (Format detection): Trying plugin VirtualBox Disk Image Image format identified by VirtualBox Disk Image. DEBUG (VirtualBox plugin): vHdr.creator = <<< Aaru VirtualBox Disk Image >>> DEBUG (VirtualBox plugin): vHdr.magic = 3201962111 DEBUG (VirtualBox plugin): vHdr.version = 1.1 DEBUG (VirtualBox plugin): vHdr.headerSize = 400 DEBUG (VirtualBox plugin): vHdr.imageType = Normal DEBUG (VirtualBox plugin): vHdr.imageFlags = 0 DEBUG (VirtualBox plugin): vHdr.description = DEBUG (VirtualBox plugin): vHdr.offsetBlocks = 512 DEBUG (VirtualBox plugin): vHdr.offsetData = 1221632 DEBUG (VirtualBox plugin): vHdr.cylinders = 16383 DEBUG (VirtualBox plugin): vHdr.heads = 16 DEBUG (VirtualBox plugin): vHdr.spt = 63 DEBUG (VirtualBox plugin): vHdr.sectorSize = 512 DEBUG (VirtualBox plugin): vHdr.size = 320072933376 DEBUG (VirtualBox plugin): vHdr.blockSize = 1048576 DEBUG (VirtualBox plugin): vHdr.blockExtraData = 0 DEBUG (VirtualBox plugin): vHdr.blocks = 305246 DEBUG (VirtualBox plugin): vHdr.allocatedBlocks = 305228 DEBUG (VirtualBox plugin): vHdr.uuid = 6845eda0-3633-4ae3-8dc2-8f5cff078c07 DEBUG (VirtualBox plugin): vHdr.snapshotUuid = a620eb58-98df-4bc8-9250-060eccb27bdc DEBUG (VirtualBox plugin): vHdr.linkUuid = 00000000-0000-0000-0000-000000000000 DEBUG (VirtualBox plugin): vHdr.parentUuid = 00000000-0000-0000-0000-000000000000 DEBUG (VirtualBox plugin): vHdr.logicalCylinders = 620181 DEBUG (VirtualBox plugin): vHdr.logicalHeads = 16 DEBUG (VirtualBox plugin): vHdr.logicalSpt = 63 DEBUG (VirtualBox plugin): vHdr.logicalSectorSize = 0 DEBUG (VirtualBox plugin): Reading Image Block Map DEBUG (VirtualBox plugin): Reading Image Block Map took 21.5185 ms Unable to open image format Error: EINVAL Uploading statistics ``` ### Affected image _No response_
claunia added the bugdump image format labels 2026-01-29 15:37:58 +00:00
Author
Owner
@claunia commented on GitHub (Nov 30, 2024): ![](https://github.trello.services/images/mini-trello-icon.png) [[VirtualBox Disk Image] [Regression] EINVAL when opening image created by Aaru 5.3.0](https://trello.com/c/qCqtkrKv/95-virtualbox-disk-image-regression-einval-when-opening-image-created-by-aaru-530)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#1004