dirkwhoffmann / vAmiga

vAmiga is a user-friendly Amiga 500, 1000, 2000 emulator for macOS

Home Page:https://dirkwhoffmann.github.io/vAmiga

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hard drive geometry not recognized correctly

dirkwhoffmann opened this issue · comments

This HDF is reported to have 0 heads:

Bildschirmfoto 2022-09-06 um 17 10 11

commented

It has 578112 blocks and GeometryDescriptor::driveGeometries (called from HDFFile::getGeometryDescriptor) tries to find a suitable geometry, but because all of them result in more than 1024 cylinders they're rejected. FWIW WinUAE just uses 18066/1/32 (C/H/S) for this one. Increasing HDR_C_MAX works around it (3011/6/32 is possible for example). I don't think you'll run in to any issues increasing it to ~16M (just checked my own implementation, and the only place where the number of cylinders is visible to emulation is with direct SCSI commands, and there 24-bit values are supported).

Fixed