Page 1 of 1
First Logical Cluster Help
Posted: Mon Dec 15, 2008 1:36 pm
by renovatio
I'm trying to load a file from a FAT12 filesystem:
LBA = (Cluster - 2) * SectorsPerCluster
Why : Cluster - 2
Thanks.
Re: First Logical Cluster Help
Posted: Mon Dec 15, 2008 1:49 pm
by Khaoticmind
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.
Re: First Logical Cluster Help
Posted: Mon Dec 15, 2008 2:38 pm
by renovatio
thanks, it's helpful,, but what is the first logical cluster and what does it point to?
Re: First Logical Cluster Help
Posted: Mon Dec 15, 2008 5:21 pm
by Khaoticmind
renovatio wrote:thanks, it's helpful,, but what is the first logical cluster and what does it point to?
that depends, first logical sector of where?
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
Posted: Tue Dec 16, 2008 7:05 am
by renovatio
many thanks for your reply...