2021-02-28 16:12:20 +02:00
|
|
|
# grub-install
|
|
|
|
|
|
|
|
> Install GRUB to a device.
|
|
|
|
> More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Installing-GRUB-using-grub_002dinstall.html>.
|
|
|
|
|
|
|
|
- Install GRUB on a BIOS system:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`grub-install --target {{i386-pc}} {{path/to/device}}`
|
2021-02-28 16:12:20 +02:00
|
|
|
|
|
|
|
- Install GRUB on an UEFI system:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`grub-install --target {{x86_64-efi}} --efi-directory {{path/to/efi_directory}} --bootloader-id {{GRUB}}`
|
2021-02-28 16:12:20 +02:00
|
|
|
|
|
|
|
- Install GRUB pre-loading specific modules:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`grub-install --target {{x86_64-efi}} --efi-directory {{path/to/efi_directory}} --modules "{{part_gpt part_msdos}}"`
|