Forrest logo
tool overview
On this page you find all important commands for the CLI tool grub-install. If the command you are looking for is missing please ask our AI.

grub-install

grub-install is a command line tool that is used in Linux systems to install the GRand Unified Bootloader (GRUB) onto the computer's hard drive. It is typically run as root or with superuser privileges to access the necessary system files and partitions for installation. The tool allows users to install GRUB on the Master Boot Record (MBR) or on a specific partition. In MBR installation, GRUB is placed in the first sector of the hard drive, making it the primary bootloader, while in partition installation, GRUB is installed within a specific partition. grub-install supports various operating system platforms including Linux, Windows, and macOS, making it a versatile bootloader tool. It is often used during system installation or reinstallation, especially when setting up a dual-boot system with multiple operating systems. The tool also allows advanced configuration options, such as selecting the boot device or setting timeout options for the GRUB menu. grub-install can be used alongside other GRUB-related commands and utilities to manage and modify the bootloader's behavior. Additionally, it can be used to repair the bootloader if it becomes corrupted or overwritten by another bootloader. Overall, grub-install is an essential command line tool for properly configuring and installing GRUB, ensuring the smooth and efficient booting of Linux or multi-boot systems.

List of commands for grub-install:

  • grub-install:tldr:35d18 grub-install: Install GRUB pre-loading specific modules.
    $ grub-install --target=${x86_64-efi} --efi-directory=${path-to-efi_directory} --modules="${part_gpt part_msdos}"
    try on your machine
    explain this command
  • grub-install:tldr:7287e grub-install: Install GRUB on an UEFI system.
    $ grub-install --target=${x86_64-efi} --efi-directory=${path-to-efi_directory} --bootloader-id=${GRUB}
    try on your machine
    explain this command
  • grub-install:tldr:b8b7a grub-install: Install GRUB on a BIOS system.
    $ grub-install --target=${i386-pc} ${path-to-device}
    try on your machine
    explain this command
tool overview