Results 1 to 3 of 3
I want to know if I can such a thing. Assume, there are an Ext filesystem on some partition and some file "/image.img". I want GRUB(2) to switch on protected ...
- 11-20-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 2
[SOLVED] Loading a custom boot code with GRUB
I want to know if I can such a thing. Assume, there are an Ext filesystem on some partition and some file "/image.img". I want GRUB(2) to switch on protected mode with flat model, load /image.img to some fixed address in memory and to jump to this address. Is it possible to configure GRUB so?
- 11-21-2009 #2
Yes, with the new Multiboot specification that is supported by GNU Grub2, this should work. The boot loader can switch to protected mode itself.
Here is a page with a small example.
Making NetBSD Multiboot-Compatible - O'Reilly MediaDebian GNU/Linux -- You know you want it.
- 11-21-2009 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 2
Yeah, it actually works. Thanks!



