grub-install
Install GRUB to a device. tldr-pages
On Linux
Linux
Install GRUB on a BIOS system
sudo grub-install path/to/deviceIdentifyInstall GRUB on a BIOS system while specifying architecture
sudo grub-install --target i386-pc path/to/deviceIdentifyInstall GRUB on a UEFI system
sudo grub-install --efi-directory path/to/efi_directoryIdentifyInstall GRUB on a UEFI system while specifying architecture and boot menu text
sudo grub-install --target x86_64-efi --efi-directory path/to/efi_directory --bootloader-id GRUBIdentifyInstall GRUB pre-loading specific modules
sudo grub-install --target x86_64-efi --efi-directory path/to/efi_directory --modules "part_gpt part_msdos"IdentifyDisplay help
grub-install --helpIdentify