First post, by bruenor41
Hi,
version 4130 added sanity check in file drive_fat.cpp. I try load img file like a 2GB hdd, but it fails on this check. Maybe is problem in hdd definition, maybe a bug. I am not sure, definition looks fine to me, it works with older revisions.
if ((bootbuffer.sectorsperfat == 0) || // FAT32 not implemented yet
(bootbuffer.bytespersector != 512) || // non-standard sector sizes not implemented
(bootbuffer.sectorspercluster == 0) ||
(bootbuffer.rootdirentries == 0) ||
(bootbuffer.fatcopies == 0) ||
(bootbuffer.headcount == 0) ||
(bootbuffer.headcount > headscyl) ||
(bootbuffer.sectorspertrack == 0) ||
(bootbuffer.sectorspertrack > cylsector)) {
created_successfully = false;
return;
}
imgmount d /path/to/file.img -t hdd -fs fat -size 512,63,64,1023