Install GRUB in a specific directory

grub-bios-setup

  • Set up a device to use GRUB with a BIOS configuration.
    You should use `grub-install` instead of `grub-bios-setup` in most cases.
    More information: <https://manned.org/grub-bios-setup.8>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

grub-bios-setup --directory={{/boot/grub}} {{/dev/sdX}}

click the source code to copy install grub-bios-setup on any operating system with command-not-found.com