I'm building a file system that resembles FAT. It has the following setup:
| MBR | FAT Area | Data Area |
So if given the sector_size (the size of a sector in bytes), cluster_size(the size of the cluster in sectors), and disk_size (the size of the disk in clusters), how can I calculate the length of the FAT Area?
I know that MBR starts at cluster 0, and FAT Area starts at cluster 1. But I don't know what information I can use to calculate the length of the FAT Area.
Also, The root directory starts at the first cluster in the Data Area, so how can I calculate the length of the root directory as well?