How to calculate FAT

I am studying FAT file system and how to calculate FAT size. Now I have a question:

Consider a disk size of 32 MB and a block size of 1 KB. Calculate the size of FAT16.

Now I know that to calculate it, we multiply the number of bits by writing with the number of blocks. Thus, the first step would be to calculate the number of blocks = (32 MB) / (1 KB) = 2 ^ 15 = 32 KB blocks.

Then we would put this in the first equation to get = 2 ^ 16 * 2 ^ 15 = 2 ^ 19 Now, still I understand, and I thought that was the answer (and that’s how I found it calculated at http: / /pcnineoneone.com/howto/fat1.html ).

However, the answer I gave goes one step further to divide 2 ^ 19 by (8 * 1024), which basically will give an answer of 64 KB. Why is this? I was looking for a watch, but could not find anything.

Can someone explain why we would perform the extra step of dividing 2 ^ 19 by (8 * 1024)? oh, and another question stated that the block size is 2 KB, and so he divided the final result into (8 * 1024 * 1024) ... where did 8 and 1024 come from? please, help

+5
source share
1 answer

you are using FAT16. Clusters are represented by 16 bits, which means 16/8 = 2 bytes. To get the size in bytes, the result must be divided by 8. To get the result in kilobytes, you must divide your result by 8 * 1024

+1
source

All Articles