Skip to content

Commit 72f4c8c

Browse files
grub-mkrescue: add page (#18341)
Co-authored-by: K.B.Dharun Krishna <[email protected]>
1 parent dc084eb commit 72f4c8c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/linux/grub-mkrescue.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# grub-mkrescue
2+
3+
> Make a GRUB CD/USB/floppy bootable image.
4+
> More information: <https://www.gnu.org/software/grub/manual/grub/grub.html#Invoking-grub_002dmkrescue>.
5+
6+
- Create a bootable ISO from the current directory and save it as `grub.iso`:
7+
8+
`grub-mkrescue --output {{grub.iso}} .`
9+
10+
- Create an ISO using GRUB files from a custom directory:
11+
12+
`grub-mkrescue --directory {{/usr/lib/grub/i386-pc}} --output {{grub.iso}} {{path/to/source}}`
13+
14+
- Use compression for GRUB files when building the image, setting `no` disables compression:
15+
16+
`grub-mkrescue --compress {{no|xz|gz|lzo}} --output {{grub.iso}} {{path/to/source}}`
17+
18+
- Disable the GRUB command-line interface in the generated image:
19+
20+
`grub-mkrescue --disable-cli --output {{grub.iso}} {{path/to/source}}`
21+
22+
- Preload specific GRUB modules into the image:
23+
24+
`grub-mkrescue --modules "{{part_gpt iso9660}}" --output {{grub.iso}} {{path/to/source}}`
25+
26+
- Pass additional options directly to `xorriso`:
27+
28+
`grub-mkrescue --output {{grub.iso}} -- {{-volid}} {{volume_name}} {{path/to/source}}`
29+
30+
- Display help:
31+
32+
`grub-mkrescue {{[-?|--help]}}`
33+
34+
- Display version:
35+
36+
`grub-mkrescue --version`

0 commit comments

Comments
 (0)