Node:Invoking grub-install, Next:Invoking grub-md5-crypt, Previous:Invoking the grub shell, Up:Top
The program grub-install
installs GRUB on your drive by the
grub shell (see 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
--version
--force-lba
--root-directory=dir
/boot
:
grub-install --root-directory=/boot '(hd0)'
--grub-shell=file
grub-install --grub-shell="grub --read-only" /dev/fd0
--recheck
/boot/grub/device.map
already
exists. You should use this option whenever you add/remove a disk
into/from your computer.