fluxengine icon indicating copy to clipboard operation
fluxengine copied to clipboard

Auto detect format for IBM disks when writing

Open keithclark opened this issue 4 years ago • 2 comments
trafficstars

IBM formatted disks store format information in the Bios Parameter Block of the boot sector. Could the IBM writer decode the first sector prior to writing anything to disk and configure itself automatically if no presets or configuration options are passed?

There are some strange boot sector BPB formats around (i.e. Atari ST disks sometimes claim to formatted one way but actually formatted another) so being able to specify custom params would still be useful.

keithclark avatar May 18 '21 13:05 keithclark

Unfortunately the IBM format doesn't mean it's a PC format --- there are plenty of other systems around which use the same encoding, such as the Acorn computers or the Commodore 1581. (Or PC disks which don't have a FAT filesystem on them, now I think of it.) It's certainly an option for formats which do have a BPB, though...

davidgiven avatar May 18 '21 18:05 davidgiven

Ah yes - good point about the different non-FAT formats not having a BPB. I'm not sure if there's a reliable way to detect for the existence of a BPB.

keithclark avatar May 18 '21 23:05 keithclark