Hi, while working on FORMAT fixes, we found 3 differences in the default
BPB / xBPB between FreeDOS and Win98 kernels (apart from different FAT
sizes due to different size optimization, FreeDOS now optimizes better :-))

- Win98 reports a FAT1x root dir size of 512 and a FAT1x FAT size which
  is equal to the actual FAT32 FAT size, while FreeDOS reports the values
  0 and 0 here to make clear that the FAT32 xBPB has to be used
- Win98 leaves the info sector position and backup offset uninitialized
  (values are 0) instead of using the value -1 which officially means NONE.
  FreeDOS initializes the values to position 1 and offset 6
- Win98 leaves the root directory starting cluster value uninitialized
  (value is 0) while FreeDOS suggests the plausible value 2 - this leads
  to a broken and misplaced root directory, including possible trashing of
  reserved or FAT sectors, with older FORMAT versions.

The info sector position thing did lead to cases where the info sector
would overwrite the boot sector when you boot Win98. Finally the non-zero
FAT1x fields for FAT32 drives lead to filesystems which were FAT16 and
FAT32 mixed together with even older FORMAT versions.

The upcoming FORMAT 0.91o (PREVIEW available on my homepage, but there
are still some mirror/undelete optimizations to be done!) is able to
fill in all the fields which Win98 leaves empty or at FAT1x values with
the correct FAT32 values.

Would it be of any use to initialize the mentioned values or at least the
FAT size value in "Win98 style" in the FreeDOS default BPB in the future?
I get the impression that Win98 assumes that you will only read the default
BPB, notice the FAT size being > 256 sectors and then construct the xBPB
with all the FAT32 values yourself. At least many values of the xBPB have
very boring defaults when you query the Win98 kernel for a default xBPB.

Boring defaults means that no boot sector backup and no filesystem info
sector will be used when you FORMAT under Win98. I recommend formatting
under FreeDOS for that reason (too lazy to add an option /Z:force-using-
info-sector-and-backups...).

Eric.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to