Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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?

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    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 Media
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined!
    Join Date
    Nov 2009
    Posts
    2
    Yeah, it actually works. Thanks!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •