I'm trying to load a file from a FAT12 filesystem:
LBA = (Cluster - 2) * SectorsPerCluster
Why : Cluster - 2
Thanks.
First Logical Cluster Help
- Khaoticmind
- Member
- Posts: 29
- Joined: Tue Nov 18, 2008 1:06 pm
- Location: Brazil
Re: First Logical Cluster Help
If i got you right, and you are talking about the data area of the FAT, this happens because the first two entries on the FAT table are reserved. So the first sector of data is actually the third sector on the FAT.
Hope this helps.
Hope this helps.
Re: First Logical Cluster Help
thanks, it's helpful,, but what is the first logical cluster and what does it point to?
- Khaoticmind
- Member
- Posts: 29
- Joined: Tue Nov 18, 2008 1:06 pm
- Location: Brazil
Re: First Logical Cluster Help
that depends, first logical sector of where?renovatio wrote:thanks, it's helpful,, but what is the first logical cluster and what does it point to?
If its from the disk than it points to the first physical sector of the disk.
If its the first logical sector of the data area it points well... to the start of the data on the fat, which probably is not the first logical sector.
If this maybe of some help, you can take a look at my bootloader to see if it makes things clearer for you
http://code.google.com/p/the-kos/source ... t/boot.asm
Cheers
Re: First Logical Cluster Help
many thanks for your reply...