First post, by realnc
- Rank
- Oldbie
(This is with current SVN.)
It is currently impossible to mount HDD images. A 10MB image for example created with bximage from Bochs using defaults and formatted with DOS 6.22 fails the sanity check in drive_fat.cpp:
/* Sanity checks */
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;
}
In particular:
bootbuffer.headcount > headscyl
bootbuffer.headcount is 32 and headscyl is 16. Commenting this line out allows the image to be mounted and it appears to be working correctly.
Didn't this use to work in the past?
I'm attaching a FAT-formatted example 10MB image for testing. (It's empty so bzip2 compresses it to almost nothing.)