FAT: Difference between revisions

No change in size ,  9 years ago
m
For some reason, the first sector of a cluster was, according to this page, "first_sector_of_cluster = (cluster - 2) * fat_boot->reserved_sector_count + first_data_sector;". Corrected.
[unchecked revision][unchecked revision]
m (For some reason, the first sector of a cluster was, according to this page, "first_sector_of_cluster = (cluster - 2) * fat_boot->reserved_sector_count + first_data_sector;". Corrected.)
Line 547:
For each given cluster number we can calculate the first sector of it (relative to the partition's offset):
<source lang="C">
first_sector_of_cluster = ((cluster - 2) * fat_boot->reserved_sector_countsectors_per_cluster) + first_data_sector;
</source>