Linux Commands Examples

A great documentation place for Linux commands

grub-mkimage

make a bootable image of GRUB


see also : grub-install - grub-mkrescue - grub-mknetdir

Synopsis

grub-mkimage [OPTION...] [OPTION]... [MODULES]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

17
source
            
grub-mkimage -p /boot -o tmp_core.img -O i386-pc biosdisk iso9660 multiboot normal ls cat help
cat /usr/lib/grub/i386-pc/cdboot.img tmp_core.img > boot/eltorito.img
15
source
            
MODULES="configfile ext2 fat part_gpt normal linux ls boot echo reboot search search_fs_file search_fs_uuid search_label help font efi_gop efi_uga gfxterm"
grub-mkimage -O x86_64-efi -p "" -o /boot/efi/boot/bootx64.efi -c /boot/load.cfg $MODULES

description

Make a bootable image of GRUB.
-c
, --config=FILE

embed FILE as an early config

-C, --compression=(xz|none|auto)

choose the compression to use

-d, --directory=DIR

use images and modules under DIR [default=/usr/lib/grub/<platform>]

-m, --memdisk=FILE

embed FILE as a memdisk image

-n, --note

add NOTE segment for CHRP IEEE1275

-o, --output=FILE

output a generated image to FILE [default=stdout]

-O, --format=FORMAT

generate an image in FORMAT available formats: i386-coreboot, i386-multiboot, i386-pc, i386-pc-pxe, i386-efi, i386-ieee1275, i386-qemu, x86_64-efi, mipsel-yeeloong-flash, mipsel-fuloong2f-flash, mipsel-loongson-elf, powerpc-ieee1275, sparc64-ieee1275-raw, sparc64-ieee1275-aout, ia64-efi, mips-arc, mipsel-qemu_mips-elf, mips-qemu_mips-flash, mipsel-qemu_mips-flash, mips-qemu_mips-elf

-p, --prefix=DIR

set prefix directory [default=/boot/grub]

-v, --verbose

print verbose messages.

-?, --help

give this help list

--usage

give a short usage message

-V, --version

print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

reporting bugs

Report bugs to <bug-grub[:at:]gnu[:dot:]org>.


see also

grub-install , grub-setup, grub-mkrescue , grub-mknetdir

The full documentation for grub-mkimage is maintained as a Texinfo manual. If the info and grub-mkimage programs are properly installed at your site, the command

info grub-mkimage

should give you access to the complete manual.

How can this site be more helpful to YOU ?


give  feedback