joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.53k stars 371 forks source link

Detects possible FAT geometry in fixed VHDs too #4961

Closed maxpat78 closed 2 months ago

maxpat78 commented 2 months ago

Since MBR and FAT CHS geometries may differ even with Windows 11 created VHDs, we attempt to read both of them.

Fixes #4958

BridgeHeadland commented 2 months ago

Is there really any difference between creating a VHD file in Windows 10 or 11, even with DOSBox-X?

maxpat78 commented 2 months ago

@BridgeHeadland

Is there really any difference between creating a VHD file in Windows 10 or 11, even with DOSBox-X?

Yes, if you partition or format, different softwares do different calculations of geometry recorded in MBR and boot sector. It happens that Windows 11 stores a X-255-63 geometry in boot sector, and another one in MBR.