grub-bios-setup
write GRUB boot code to MBR for BIOS systems
TLDR
Set up a device to boot with GRUB
SYNOPSIS
grub-bios-setup [options] device
DESCRIPTION
grub-bios-setup is a low-level tool that writes the GRUB boot code to a disk's Master Boot Record (MBR) or BIOS Boot Partition for BIOS/legacy boot systems.
In most cases, you should use grub-install instead, which handles both copying GRUB files and running grub-bios-setup automatically. This tool is typically used for advanced scenarios like installing GRUB to a different device than where the GRUB files are located.
PARAMETERS
-d, --directory DIR
Use GRUB files from DIR instead of default-f, --force
Install even if problems are detected-m, --device-map FILE
Use device map from FILE-s, --skip-fs-probe
Skip filesystem probing-v, --verbose
Enable verbose output
CAVEATS
For BIOS systems only; UEFI systems use different methods. Incorrect use can make a system unbootable. Requires GRUB files to already be in place (use grub-install for normal installations).
HISTORY
grub-bios-setup is part of GRUB 2, providing the low-level MBR installation that was previously handled by a single grub-install command. The separation allows more flexibility in complex installation scenarios.
SEE ALSO
grub-install(8), grub-mkconfig(8)
