← 返回命令列表

Linux command

grub-mkrescue 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

grub-mkrescue --output [grub.iso] .

Example

grub-mkrescue --directory [/usr/lib/grub/i386-pc] --output [grub.iso] [path/to/source]

Example

grub-mkrescue --compress [xz|gz|lzo|no] --output [grub.iso] [path/to/source]

Preload

grub-mkrescue --modules "[part_gpt iso9660]" --output [grub.iso] [path/to/source]

Example

grub-mkrescue --help

说明

grub-mkrescue creates bootable CD, USB, or floppy images using GRUB as the bootloader. It generates hybrid images that can boot from both BIOS and UEFI systems. The command packages the source directory contents with the necessary GRUB files to create a bootable rescue or installation medium. Additional options can be passed to the underlying xorriso tool using the -- separator.

参数

--output _FILE_
Write the generated image to the specified file
--directory _DIR_
Use GRUB files from the specified directory
--compress _TYPE_
Compress GRUB files using xz, gz, lzo, or disable with no
--modules _MODULES_
Preload specified GRUB modules into the image
--disable-cli
Disable GRUB command-line interface in the generated image
--version
Display version information

FAQ

What is the grub-mkrescue command used for?

grub-mkrescue creates bootable CD, USB, or floppy images using GRUB as the bootloader. It generates hybrid images that can boot from both BIOS and UEFI systems. The command packages the source directory contents with the necessary GRUB files to create a bootable rescue or installation medium. Additional options can be passed to the underlying xorriso tool using the -- separator.

How do I run a basic grub-mkrescue example?

Run `grub-mkrescue --output [grub.iso] .` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --output _FILE_ do in grub-mkrescue?

Write the generated image to the specified file