next up previous contents
Next: 2.2.3.1.7 General commands Up: 2.2.3.1 Introduction Previous: 2.2.3.1.5 Creating a GRUB   Contents

2.2.3.1.6 The grub shell

You can use the command `grub' for installing GRUB under your operating systems and for a testbed when you add a new feature into GRUB or when fix a bug. `grub' is almost the same as the Stage 2, and, in fact, it shares the source code with the Stage 2 and you can use the same commands in `grub'. It is emulated by replacing BIOS calls with UNIX system calls and libc functions.

The command `grub' accepts the following options:

-help
Print a summary of the command-line options and exit.
-version
Print the version number of GRUB and exit.
-verbose
Print some verbose messages for debugging purpose.
-device-map=FILE
Use the device map file FILE. The format is described in.
-no-floppy
Do not probe any floppy drive. This option has no effect if the option `-device-map' is specified
-probe-second-floppy
Probe the second floppy drive. If this option is not specified, the grub shell does not probe it, as that sometimes takes a long time. If you specify the device map file, the grub shell just ignores this option.
-config-file=FILE
Read the configuration file FILE instead of `/boot/grub/grub.conf'. The format is the same as the normal GRUB syntax. See *Note Filesystem::, for more information.
-boot-drive=DRIVE
Set the stage2 BOOT_DRIVE to DRIVE. This argument should be an integer (decimal, octal or hexadecimal).
-install-partition=PAR
Set the stage2 INSTALL_PARTITION to PAR. This argument should be an integer (decimal, octal or hexadecimal).
-no-config-file
Do not use the configuration file even if it can be read.
-no-curses
Do not use the curses interface even if it is available.
-batch
This option has the same meaning as `-no-config-file -no-curses'.
-read-only
Disable writing to any disk.
-hold
Wait until a debugger will attach. This option is useful when you want to debug the startup code.


next up previous contents
Next: 2.2.3.1.7 General commands Up: 2.2.3.1 Introduction Previous: 2.2.3.1.5 Creating a GRUB   Contents