Page 1 of 1

FAT related questions

Posted: Fri Mar 31, 2023 3:38 pm
by Matt1223
How do I find the size of the root directory? Should I use the root directory entries data field in the BIOS Parameter Block or should I use something else?

Re: FAT related questions

Posted: Fri Mar 31, 2023 4:20 pm
by Octocontrabass
Have you checked Microsoft's FAT32 specification?

The root directory is an ordinary directory on FAT32 volumes, so you find its size the same way you find the size of any directory: walk the FAT chain to see how many clusters it uses.

Re: FAT related questions

Posted: Sun Apr 02, 2023 3:47 am
by rdos
Depends on FAT type. On FAT32, it has it's own cluster link, but for other versions, the size is fixed.