Open ghost opened 3 years ago
Note: 0.83.16 doesn't include FORMAT, but i added it to drivez folder
same happens with 2.88m floppy image
Can confirm the same thing with 0.83.17 (which does include FORMAT) on Linux.
also FORMAT keeps giving errors if i try formatting a 200k or smaller floppy disk image
If you boot FreeDOS, can you format 160 and 320KiB disks? It may be that FreeDOS Format cannot handle the early 8-sector per track formats of DOS 1.x or you may need to specifically specify you only want to format it as 8 sectors.
180 and 360KiB use 9-sector per track formats of DOS 2.0+.
tried booting into FreeDOS 1.3 RC4 Boot Floppy i made, i mounted the floppy image as drive B: , tried formatting it , it gives same errors
Part of the problem with formatting as 160, 180, 320 and such seems to be that the drive type being reported is a 3.5" type, even if you have a 160KiB floppy mounted. And none of those formats are valid for 3.5" disk types.
If the disk type mounted is a 5.25" type, the BIOS type should be set to a 5.25" drive type.
ok
I don't expect every low-end program on another dos system to be dosbox-x compatible. The most important thing is that it works under the system for which it was created.
Works under freedos 1.2.
https://user-images.githubusercontent.com/452325/133436863-0c9b6a12-aecc-45d7-9d50-c03660d61911.mp4
@grapeli Thing is that since 0.83.17, FORMAT is included with DOSBox-X, which to me raises the expectations of it working.
@rderooy I did not know.
In this case, you would actually expect it to work properly.
It works as long as the system version is > 7.
-set "dos ver=7.10"
https://gitlab.com/FDOS/base/format/-/blob/master/SOURCE/FORMAT/FLOPPY.C#L848
I did a quick check, created a 160KB disk image, mounted as A: and a 1.44MB disk image, mounted as B: Then I started Norton SysInfo 8.0 and it reported two 3.5" 1.44MB disk drives.
I also tried with "ver set 7.1" and did a format a: /F:160
and it failed with format complaining it is not a supported size for the drive type.
Format B: however succeeded, with some warnings:
Geometry set (int 13.18) error (FF). Ignored.
SECTORS PER TRACK stuck to 207, wanted 18. Continuing anyway.
Looking quickly through the code, I found the table of fdd types near the top in src/ints/bios_disk.cpp
. Based on the mapping in include/bios_disk.h
the 5th column is the bios drive type. e.g., type 6 is a 2.88MB FDD type.
And in bios_disk.cpp
it seems that this function should return the drive bios type based on the table.
uint8_t imageDisk::GetBiosType(void) {
if(!hardDrive) {
return (uint8_t)DiskGeometryList[floppytype].biosval;
} else return 0;
}
And this seems like it is called by src/hardware/cmos.cpp
so I don't yet understand why Norton SysInfo and FreeDOS format think the drive type is always 1.44MB.
It may not work. In my life I have never used a floppy disk formatted to 160kB.
Ticket Title - "Unable to Format 1.44M Floppy Disk".
@grapeli your right on the title.
As to 160KB size disks. Just boot PC-DOS 1.x ;-)
i had problem with 1.44M Floppies, also with 200kb floppies and below
Describe the bug creating or mounting 1.44m floppy image and formatting using FreeDOS Format doesn't work To Reproduce Steps to reproduce the behavior: imgmake floppy.img -t fd_1440 imgmount a floppy.img format A: get error "Media type 1440k not supported by this drive?"
Expected behavior expected to format the drive Screenshots
Environment (please complete the following information):
Additional context here is log file