vAmiga icon indicating copy to clipboard operation
vAmiga copied to clipboard

Hard drive geometry not recognized correctly

Open dirkwhoffmann opened this issue 2 years ago • 1 comments

This HDF is reported to have 0 heads:

Bildschirmfoto 2022-09-06 um 17 10 11

dirkwhoffmann avatar Sep 06 '22 15:09 dirkwhoffmann

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).

mras0 avatar Sep 07 '22 16:09 mras0

Fixed

dirkwhoffmann avatar Oct 23 '22 09:10 dirkwhoffmann