Forum Discussion
Altera_Forum
Honored Contributor
21 years agoReading the first sector of a CF card
I'm trying to read the first sector of a compact flash card. This is the boot sector and bpb of a fat filesystem. This sector has a lot of information about how the filesystem is(number of sector...
Altera_Forum
Honored Contributor
21 years agoHi
You are right. This is not the boot sector. From my experience, if you are using a FAT filesystem, you won't find the bpb at the actual first sectors. There are partition tables and other stuff before that. What I did was to read the first sectors until I found something that confirmed that this is the bpb, meaning the jumpBoot (starts with EB or E9) and also the last two bytes of the sector are 0x55 and 0xAA. I foudn the bpb at logical sector 32. Nir