It is not Linux that must know it, but the BIOS.
The BIOS will load the boot sector (the first sector of the disk) and execute it (it has the signature you wrote). The last part of the boot sector contains 4 partitions. The boot code will just find the active partition, load it in memory and execute it (because the boot sector is expected on a precise point of memory, there is also a copy of actual sector and jump into it). The new boot sector may boot the operating system, or just it may be very similar to a MBR, but in this case it is a secondary partition table), and so recursively. GRUB just modify boot sector, and it uses the fact that disk sector are larger then 512 bytes (size of floppy sectors) to store more code (to load secondary GRUB code).
That is about how the execution of code is done.
Programs in Linux (and also Linux) known about table structure of MBR (and other partition table formats, as you see, it is just a convention), so they know that in hard disk it should be on the first sector, and every extended table should have one partition and eventually an additional link to a extended table.
If the program or kernel cannot recognize it, you cannot edit it. But possibly BIOS can boot (or better the code in the boot sector can do it). We are talking with old programs, with very limited memory, so do not expect much logic. Worst case: "Press any key to reboot".
0x01BE
and occupies 4 16-byte values, just before the Boot Signature of0x55 0xAA
. Partition Table Entries have a specific format. First byte is the status: "(bit 7 set is for active or bootable, old MBRs only accept 0x80, 0x00 means inactive, and 0x01–0x7F stand for invalid)"