# phpman > man > grub-mkrescue(1)

> **TLDR:** Make a GRUB CD/USB/floppy bootable image.
>
- Create a bootable ISO from the current directory and save it as `grub.iso`:
  `grub-mkrescue --output {{grub.iso}} .`
- Create an ISO using GRUB files from a custom directory:
  `grub-mkrescue --directory {{/usr/lib/grub/i386-pc}} --output {{grub.iso}} {{path/to/source}}`
- Use compression for GRUB files when building the image, setting `no` disables compression:
  `grub-mkrescue --compress {{no|xz|gz|lzo}} --output {{grub.iso}} {{path/to/source}}`
- Disable the GRUB command-line interface in the generated image:
  `grub-mkrescue --disable-cli --output {{grub.iso}} {{path/to/source}}`
- Preload specific GRUB modules into the image:
  `grub-mkrescue --modules "{{part_gpt iso9660}}" --output {{grub.iso}} {{path/to/source}}`
- Pass additional options directly to `xorriso`:
  `grub-mkrescue --output {{grub.iso}} -- {{volid}} {{volume_name}} {{path/to/source}}`
- Display help:
  `grub-mkrescue {{-?|--help}}`
- Display version:
  `grub-mkrescue --version`

*Source: tldr-pages*

---

[GRUB-MKRESCUE(1)](https://www.chedong.com/phpMan.php/man/GRUB-MKRESCUE/1/markdown)                            User Commands                           [GRUB-MKRESCUE(1)](https://www.chedong.com/phpMan.php/man/GRUB-MKRESCUE/1/markdown)



## NAME
       grub-mkrescue - make a GRUB rescue image

## SYNOPSIS
       **grub-mkrescue** [_OPTION_...] [_OPTION_] _SOURCE_...

## DESCRIPTION
       Make GRUB CD-ROM, disk, pendrive and floppy bootable image.

       **--compress**=_no_|xz|gz|lzo
              compress GRUB files [optional]

       **--dtb**=_FILE_
              embed a specific DTB

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

### --disable-shim-lock
              disable shim_lock verifier

       **--fonts**=_FONTS_
              install FONTS [default=unicode]

       **--install-modules**=_MODULES_
              install only MODULES and their dependencies [default=all]

### -k --pubkey
              embed FILE as public key for signature checking

       **--locale-directory**=_DIR_ use translations under DIR
              [default=/usr/share/locale]

       **--locales**=_LOCALES_
              install only LOCALES [default=all]

       **--modules**=_MODULES_
              pre-load specified modules MODULES

       **--sbat**=_FILE_
              SBAT metadata

       **--themes**=_THEMES_
              install THEMES [default=starfield]

### -v --verbose
              print verbose messages.

### --arcs-boot
              enable  ARCS  (big-endian mips machines, mostly SGI) boot. Disables HFS+, APM, sparc64
              and boot as disk image for i386-pc

       **--core-compress**=_xz_|none|auto
              choose the compression to use for core image

       **--label-bgcolor**=_COLOR_
              use COLOR for label background

       **--label-color**=_COLOR_
              use COLOR for label

       **--label-font**=_FILE_
              use FILE as font for label

### -o --output
              save output in FILE [required]

       **--product-name**=_STRING_
              use STRING as product name

       **--product-version**=_STRING_
              use STRING as product version

       **--rom-directory**=_DIR_
              save ROM images in DIR [optional]

### --sparc-boot
              enable sparc boot. Disables HFS+, APM, ARCS and boot as disk image for i386-pc

       **--xorriso**=_FILE_
              use FILE as xorriso [optional]

       -?, **--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 corre‐
       sponding short options.

       Generates  a  bootable CD/USB/floppy image.  Arguments other than options to this program are
       passed to xorriso, and indicate source files, source directories, or any of the  mkisofs  op‐
       tions listed by the output of `xorriso **-as** mkisofs **-help**'.

       Option **--** switches to native xorriso command mode.

       Mail xorriso support requests to <<bug-xorriso@gnu.org>>.

## REPORTING BUGS
       Report bugs to <<bug-grub@gnu.org>>.

## SEE ALSO
       [**grub-mkimage**(1)](https://www.chedong.com/phpMan.php/man/grub-mkimage/1/markdown)

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

              **info** **grub-mkrescue**

       should give you access to the complete manual.



GRUB 2.06-2ubuntu7.2                        December 2022                           [GRUB-MKRESCUE(1)](https://www.chedong.com/phpMan.php/man/GRUB-MKRESCUE/1/markdown)
