System Grab Bag

View all TLDR pages from Linux (or from all pages)

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:
    grub-install --target={{i386-pc}} {{path/to/device}}
  • Install GRUB on an UEFI system:
    grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --bootloader-id={{GRUB}}
  • Install GRUB pre-loading specific modules:
    grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --modules="{{part_gpt part_msdos}}"

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.