FAT: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
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: | Line 547: | ||
For each given cluster number we can calculate the first sector of it (relative to the partition's offset): |
For each given cluster number we can calculate the first sector of it (relative to the partition's offset): |
||
<source lang="C"> |
<source lang="C"> |
||
first_sector_of_cluster = (cluster - 2) * fat_boot-> |
first_sector_of_cluster = ((cluster - 2) * fat_boot->sectors_per_cluster) + first_data_sector; |
||
</source> |
</source> |
||