Hi,
alexfru wrote:
To create a boot sector, occupying no more than the first 512 bytes of the disk, to find, load, then execute a specified loader file, while completing specified tasks within this code, as well as following the rules given.
Is it supposed to be:
a) an MBR, where the partition table describes primary partitions, and where it makes no sense to load anything from any file system whatsoever (e.g. where it should only load the first sector of the active partition and jump to it); or..
b) a boot sector (the first sector of a partition and not the first sector of the disk), where the partition table probably doesn't exist and would describe extended partitions (not primary partitions) if it did exist?
For the latter case; I think the testing should be more realistic. E.g. a dual boot system with some sort of boot manager installed in the MBR (e.g. GRUB,
GAG,
Plop, etc); with 2 primary partitions that both contain the boot sector being tested and a FAT file system, where the boot sector must only use files from its own partition (e.g. and the boot sector on partition 1 can't accidentally boot the loader on partition 2; regardless of whatever tricks the boot manager does to allow dual boot).
Cheers,
Brendan