BIOS seems to boot even though the first sector is empty

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
moogloof
Posts: 2
Joined: Mon Nov 21, 2022 3:02 pm
Libera.chat IRC: moogloof

BIOS seems to boot even though the first sector is empty

Post by moogloof »

I read from the wiki and other sources online that the BIOS will always load the first 512 byte sector on a detected drive, with the

Code: Select all

0x55aa
signature at the end. However, I found that from the iso produced when I use

Code: Select all

mkisofs
, the first 512 byte sector does end with

Code: Select all

0x55aa
, but it does not contain any code, it is all zeros. The actual bootloader is located at some other sector, which is confirmed by the boot sector location in the el-torito boot table. How does the BIOS successfully load the bootloader then?
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

Re: BIOS seems to boot even though the first sector is empty

Post by klange »

moogloof wrote:How does the BIOS successfully load the bootloader then?
moogloof wrote:The actual bootloader is located at some other sector, which is confirmed by the boot sector location in the el-torito boot table.
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: BIOS seems to boot even though the first sector is empty

Post by Octocontrabass »

moogloof wrote:I read from the wiki and other sources online that the BIOS will always load the first 512 byte sector on a detected drive
This applies to floppy disks, hard disks, and devices that behave like floppy or hard disks such as USB flash drives. This does not apply to optical discs.

You're booting an optical disc.
moogloof
Posts: 2
Joined: Mon Nov 21, 2022 3:02 pm
Libera.chat IRC: moogloof

Re: BIOS seems to boot even though the first sector is empty

Post by moogloof »

I see, thank you. That would also explain why it did not boot when I tried it on the media that you mentioned.
Post Reply