Reputation: 33
I'm making a bootloader which will of course be positioned on the 0th sector. Because of the limitation of only 512 bytes, which is the allowed size for the bootloader, I'm making it read the 1st sector, the sector right after the bootloader. Can the amount of information on the 1st sector be more than 512 bytes and still be read or do I have to specify for the computer to start reading the 3rd sector?
Upvotes: 2
Views: 437
Reputation: 6221
Each sector is 512, so if you want your bootload to obtain more than 512 bytes you actually need to load more sectors. Which sectors are actually available to you to keep the code or data, depends on partitioning schema, that is applied to the underlying disk (it will be different for MBR, GPT etc.).
Upvotes: 2