GNU Info

Info Node: (grub.info)Installation under UNIX

(grub.info)Installation under UNIX


Next: Device map Prev: Basic usage Up: Invoking the grub shell
Enter node , (file) or (file)node

How to install GRUB via `grub'
==============================

   The installation procedure is the same as under the "native" Stage
2. Note: Installation, for more information. The command
`grub'-specific information is described here.

   What you should be careful about is "buffer cache". `grub' makes use
of raw devices instead of filesystems that your operating systems
serve, so there exists a potential problem that some cache
inconsistency may corrupt your filesystems. What we recommend is:

   * If you can unmount drives to which GRUB may write any amount of
     data, unmount them before running `grub'.

   * If a drive cannot be unmounted but can be mounted with the
     read-only flag, mount it in read-only mode. That should be secure.

   * If a drive must be mounted with the read-write flag, make sure
     that any activity is not being done on it during running the
     command `grub'.

   * Reboot your operating system as soon as possible. Probably that is
     not required if you follow these rules above, but reboot is the
     most secure way.

   In addition, enter the command `quit' when you finish the
installation. That is _very important_ because `quit' makes the buffer
cache consistent. Do not push <C-c>.

   If you want to install GRUB non-interactively, specify `--batch'
option in the command-line. This is a simple example:

     #!/bin/sh
     
     # Use /usr/sbin/grub if you are on an older system.
     /sbin/grub --batch <<EOT 1>/dev/null 2>/dev/null
     root (hd0,0)
     setup (hd0)
     quit
     EOT


automatically generated by info2www version 1.2.2.9