Where does the FAT region of FAT16 begin?

101 Views Asked by At

I'm writing a C program that reads FAT16 file images. I have a variable that stores the location of the beginning of the FAT. What value should I put there?

I was able to find the beginning of the Reserved Region, and have determined:
- BytesPerSec = read( image, 11, 2 )
- SectorCount16 = read( image, 19, 2 )
- etc

Is there any way to determine the offset of the FAT from the boot partition block, or the boot sector?

Does it begin right after the boot sector?
Does this mean LAST_BYTE( boot_sector ) +1 is the first byte of the FAT?

0

There are 0 best solutions below