FAT related questions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Matt1223
Member
Member
Posts: 45
Joined: Mon Jul 30, 2018 2:58 am

FAT related questions

Post 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?
Octocontrabass
Member
Member
Posts: 5562
Joined: Mon Mar 25, 2013 7:01 pm

Re: FAT related questions

Post 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.
rdos
Member
Member
Posts: 3296
Joined: Wed Oct 01, 2008 1:55 pm

Re: FAT related questions

Post by rdos »

Depends on FAT type. On FAT32, it has it's own cluster link, but for other versions, the size is fixed.
Post Reply