(grub.info)Invoking grub-install


Next: Invoking grub-terminfo Prev: Invoking the grub shell Up: Top
Enter node , (file) or (file)node

9 Invoking grub-install
***********************

The program `grub-install' installs GRUB on your drive using the grub
shell (Note: Invoking the grub shell). You must specify the device
name on which you want to install GRUB, like this:

     grub-install INSTALL_DEVICE

   The device name INSTALL_DEVICE is an OS device name or a GRUB device
name.

   `grub-install' accepts the following options:

`--help'
     Print a summary of the command-line options and exit.

`--version'
     Print the version number of GRUB and exit.

`--root-directory=DIR'
     Install GRUB images under the directory DIR instead of the root
     directory. This option is useful when you want to install GRUB
     into a separate partition or a removable disk. Here is an example
     in which you have a separate "boot" partition which is mounted on
     `/boot':

          grub-install --root-directory=/boot hd0

`--recheck'
     Recheck the device map, even if `/boot/grub/device.map' already
     exists. You should use this option whenever you add/remove a disk
     into/from your computer.


automatically generated by info2www version 1.2.2.9