Hi zpasalic,
May I ask you what you used to format the FAT32 partition of your disk.img file?
(
https://github.com/klikaba/klika-os/blo ... s/disk.img )
The first FAT entry is 0xFFFF_FFFF instead of 0x0FFF_FFFF.
This is something that is mis-understood some times, and I wish to clarify.
The MS Fat Specification (not so) clearly states on page 18:
Quote:
The first reserved cluster, FAT[0], contains the BPB_Media byte value in its low 8 bits, and all other bits are set to 1. For example, if the BPB_Media value is 0xF8, for FAT12 FAT[0] = 0x0FF8, for FAT16 FAT[0] = 0xFFF8, and for FAT32 FAT[0] = 0x0FFFFFF8. The second reserved cluster, FAT[1], is set by FORMAT to the EOC mark. On FAT12 volumes, it is not used and is simply always contains an EOC mark. For FAT16 and FAT32, the file system driver may use the high two bits of the FAT[1] entry for dirty volume flags (all other bits, are always left set to 1). Note that the bit location is different for FAT16 and FAT32, because they are the high 2 bits of the entry.
It states that "all other bits are set to 1" but then shows "FAT32 FAT[0] = 0x0FFF_FFF8". When it states "all other bits are set to 1", I take that as all other bits in a standard FAT32 entry, which only uses 28 of the 32 bits.
Further down the page, it even shows the two high bits being uses as flags, using bits 26 and 27 as the high bits.
I am just asking, because I have seen a few places (incorrectly) say that the first FAT32 entry is 0xFFFF_FFFF instead of 0x0FFF_FFFF. I am wondering what you used to format the partition with.
Thanks,
Ben