* How to make a GRUB image file that can be chainloaded and will not read the MBR gap?
@ 2016-06-30 13:34 Basin Ilya
0 siblings, 0 replies; only message in thread
From: Basin Ilya @ 2016-06-30 13:34 UTC (permalink / raw)
To: grub-devel
Hi.
I want to make my grub image file independent from the data in the MBR
gap, i.e. I want to embed the generated core.img into my custom image file.
I have some questions:
- Does the grub2 command "chainloader /foo.img" load the whole file or
just the 1st 512 bytes?
- Does a BOOTSECTOR entry in Windows boot manager load the whole file or
just the 1st 512 bytes?
If the answer to both questions is "yes", then a custom image can be
made that will include core.img and a very simple boot sector, that will
assume that core.img is already loaded. To my knowledge, neither of the
images that ship with grub2 does that.
What preparations should the custom boot sector do? At what offset
should core.img be loaded and jumped to?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-30 13:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30 13:34 How to make a GRUB image file that can be chainloaded and will not read the MBR gap? Basin Ilya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).