Talk:GRUB

From OSDev.wiki
Revision as of 14:33, 10 April 2011 by osdev>Comradeslice (→‎FreeBSD: new section)

Latest comment: 14 years ago by Kotuxguy in topic Install GRUB2 to a disk image
Jump to navigation Jump to search

Feel free to add grammar corrections and correct any errors.

--Kotuxguy 17:17, 13 February 2010 (UTC)Reply[reply]

  • Could you probably be more specific with an example how you created such an image? I tried your example to create a floppy image, but it won't boot with qemu for me. It's most likely totaly simple... --Arbaal
    • Okay, I found another nice method: "grub-mkrescue --image-type=floppy --modules=multiboot --overlay=floppy/ floppy.img" This will create you a floppy image, which will contain the overlay from the folder "floppy/". When you put a normal grub folder structure in there (like: floppy/boot/grub) and store your kernel.bin and grub.conf in there, it will be loaded fine. You can even create a CD-image. --Arbaal 20:21, 9 March 2010 (UTC)Reply[reply]


  • Yes, that will work too. Although, I'm not sure if you can have grub.cfg. Which would defeat the purpose of using GRUB 2, as you could not enable/configure VESA, load a Lua script for parsing, etc..

--Kotuxguy 22:44, 13 March 2010 (UTC)Reply[reply]

Install GRUB2 to a disk image

It's difficult if not impossible to install GRUB2 to a disk image. If you want to install GRUB2 to a disk image, you can first install GRUB Legacy on the disk image(google this if you don't know how), then generate a core.img, put the core.img and other .mod files into the disk image and use GRUB Legacy's "kernel" command to load core.img, then you got a fully functional GRUB2. -- torshie

FreeBSD

I can't get grub-mkimage to successfully execute on FreeBSD using any of the examples provided on this page. Is anyone else experiencing this?