Creating GRUB ISO image
Posted: Thu Jul 05, 2012 1:05 am
I've been trying to create a bootable GRUB image for my OS, but I can't figure out how to get it to work. I've based my setup on the GRUB2 wiki page.
File tree:
My grub.cfg is:
menuentry "OS" {
multiboot /boot/boot32.bin
boot
}
The command I'm using to make the image:
grub-mkrescue --modules="multiboot biosdisk iso9660 sh" -o boot.iso iso
When I try this, GRUB brings up its menu with the proper entry, but it gives the error "unsupported flag: 0xb."
Running the code with qemu's -kernel flag works just fine, so I'm not sure what could be wrong. I'm thinking that my Multiboot header might be misaligned, but that seems doubtful because it's right at the beginning of the .text section.
File tree:
Code: Select all
-iso:
-boot:
-boot32.bin
-grub:
grub.cfg
menuentry "OS" {
multiboot /boot/boot32.bin
boot
}
The command I'm using to make the image:
grub-mkrescue --modules="multiboot biosdisk iso9660 sh" -o boot.iso iso
When I try this, GRUB brings up its menu with the proper entry, but it gives the error "unsupported flag: 0xb."
Running the code with qemu's -kernel flag works just fine, so I'm not sure what could be wrong. I'm thinking that my Multiboot header might be misaligned, but that seems doubtful because it's right at the beginning of the .text section.