Grub v2 manual
The pages contributed here (FranklinPiat/*) were an attempt to write some documentation for Grub2. This documentation isn't updated anymore (since grub2-1.96+20080203 approximately) |
TODO
- rewrite DESCRIPTION about direct hardware access.
BUG in 20080128
- The grub-emu screen is black ! press "c" then Escape-twice..
(8)GRUB-EMU - Grub emulator.
SYNOPSIS
grub-emu [OPTIONS]
DESCRIPTION
The program grub-emu is a grub bootloader emulator, for testing and debugging purposes.
this paragraph is partially wrong : Since grub-emu runs inside the operating system, it can't make direct access to the hardware, it can't make direct access to the disk (unless you run it as root), it can't call any function implemented in the computer firmware... and it can't load or boot another operating system.
grub-emu uses the host operating system to access the disk, the terminal, etc :
The module [hostfs] emulates a hard-disk, and provides access the files on the host OS, through the disk (host).
- The terminal is a simple console-like emulation (no unicode support).
The command halt, or reboot exists the emulator.
For a real life emulation, you might want to use an image made by (8)grub-mkrescue with a virtual machine like qemu.
-r, --root-device=DEV
- Use DEV as the root device [default=guessed]
-m, --device-map=FILE
- Use FILE as device map [default=/boot/grub/device.map, or /grub/device.map on *BSD* systems)]
-d, --directory=DIR
- Use GRUB files in the directory DIR [default=/boot/grub/device.map, or /grub/device.map on *BSD* systems)]
-H, --hold[=SECONDS]
- Wait for a debugger to attach. if you don't specify SECONDS, it will wait forever.
-v, --verbose
- Print verbose messages.
-h, --help
- Print help page and exit.
-V, --version
- Print the version information and exit.
AUTHOR
Program written by Yoshinori K. Okuji, Robert Millan, Marco Gerards and others (see AUTHORS file)
Manpage written by Franklin Piat
BUGS
Report bugs to <bug-grub@gnu.org>.
COPYRIGHT
Copyright © 2008 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
grub2-1.96+20080203 |
January 2008 |
(8)GRUB-EMU |
LICENCE |
This page is dual licensed under GPL + GFDL |