I've got the following things on my hard disk:
1. Custom master boot record.
2. A FAT16 partition.
3. Custom bootsector on partition.
How can partition bootsector get the partition's start sector number (LBA), I've got two variants so far:
1. Read the MBR again, look up for bootable partition, and find the sector number (If no MBR is present (Example: some USB ThumbDrives) bootsector fails)
2. or MBR should pass the sector number as parameter to the bootsector (If no custom MBR is present the parameter will be NULL, so the bootsector fails here too)
Which one is whould be better? Or any other choice will be appreciated.
