grub-install - install GRUB on your drive


grub-install [OPTION] install_device


Install GRUB on your drive.
-h, --help print this message and exit
-v, --version
 print the version information and exit
 install GRUB images under the directory DIR instead of the root directory
 use FILE as the grub shell
 do not probe any floppy drive
 force GRUB to use LBA mode even for a buggy BIOS
 probe a device map even if it already exists
INSTALL_DEVICE can be a GRUB device name or a system device filename.

grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector.

The grub source distribution carries this script to ease the installation of grub as a boot loader. In Suse Linux however, grub installation is much better handled by Yast; use of this script is generally discouraged and therefore unsupported. Consequently, the script has been renamed to grub-install.unsupported.

In order to (re-)install grub for the currently running system, simply use Yast. For an installation aiming at a differing system, the crafting of an appropriate and grub shell script is strongly advised, e.g. "grub --batch < target-grub.conf"


The full documentation for grub-install is maintained as a Texinfo manual. If the info and grub-install programs are properly installed at your site, the command
info grub-install
should give you access to the complete manual.

openSUSE Logo