Skip to contentSkip to conversation

boot.S vs diskboot.S

DISCUSSION Phillip Susi 2 participants 2 messages Feb 21, 2011

lore
Share & tools
lore
#0 lore raw

What is the difference between these two files? It looks like boot.S contains a BPB and is meant to be used when installing grub to the partition boot sector of a FAT or NTFS partition, and diskboot.S does not, and is meant to be used as the MBR. It looks like boot.S is used in the MBR anyway though.

#1 lore raw
Quoted 5 lines · Phillip Susi

What is the difference between these two files? It looks like boot.S contains a BPB and is meant to be used when installing grub to the partition boot sector of a FAT or NTFS partition, and diskboot.S does not, and is meant to be used as the MBR. It looks like boot.S is used in the MBR anyway though.

boot.S is the thing you put in your boot sector, whether that's the master boot sector or a partition boot sector. diskboot.S is prepended to core.img when it's being booted from a hard disk, so when GRUB is installed to the MBR it would reside in the second sector. boot.S jumps to diskboot.S which in turn jumps to the GRUB kernel proper.

Whether FAT or NTFS is in use is not relevant here.

Signature · 1 line
Colin Watson                                       [[email protected]]