I am developing a minimalistic Operating System. I created a MBR that looks in the Master Partition Table
for active partition. The Problem I am facing is with the loading of sectors into memory.
With respect to loading sectors, I came across two schemes,
- CHS addressing
- LBA addressing
I read that CHS is supported by almost all BIOS but the problem lies in the fact that it can address atmost 8GB
and this drawback is rectified with LBA.
With those being said, I would like to ask some questions:
Question 1:
What scheme is best to choose with? If CHS, Is there any way I could access above the 8GB mark?
Question 2:
In LBA, how will I be able to load a sector from (say)partition 4?
ie: How will I be able to find the starting block number of 4th partition?
Note: The scenario happens in 16 bit real mode
.
Thanks.
OS : Ubuntu
Compiler : CC