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)

This work, and (any further contribution), has copyright attribution to FSF. It's dual licensed under GPLv1 or later and GFDL.

TODO


grub_modules(7) - list of grub v2 modules.

NAME

DESCRIPTION

Grub v2 has a modular design. When you install grub on a system with (8)grub-install, it actually creates a core.img file and put it where your computer expects to find the bootloader (on a PC, it's the MBR).

The core.img is a kind of concatenation of required modules (that were pre-compiled by the distributor) : An actual minimalist boot handler, the module to access the current boot disk, the module understand it's partitioning scheme, the module to understand the abstraction scheme [lvm|raid|none] and finally the module to understand the filesystem (sometime, more files are added, like a [memdisk]).

Once the grub bootloader is "started" it searches for the (5)grub.cfg file, which is a kind of scripts, which in turn can load extra modules and present a menu to the user.

To boot the select operating system, grub will either :

disk module

biosdisk PC style biosdisk. [@i386:pc]

ofdisk Open Firmware disk access (ieee1275).

efidisk - EFI based system. TODO is this correct ?

and :

ata ATA disk access.

memdisk - Access embedded memory disk.

host - Dummy disk driver to provide access to the hosts filesystem.

loopback

abstraction module

lvm Module to read Logical Volumes.

raid - Module to read RAID arrays.

partmap modules

pc - Read PC style partition tables.

acorn - Read Linux/ADFS partition tables.

amiga - Read amiga partition tables (RDB).

apple - Read macintosh partition tables.

gpt - Read GUID Partition Tables (GPT).

sun - Read SUN style partition tables.

FileSystem modules

fshelp - Filesystem helper functions. required by all FileSystem modules.

affs - Amiga Fast FileSystem.

ext2 - Second Extended filesystem (symlinks allowed).

fat - FAT filesystem (FAT12, FAT16 and FAT32).

hfs - HFS.

hfsplus - HFS+ Filesystem.

iso9660 - iso9660 implementation with extensions:

jfs - JFS (symlinks allowed).

minix - The minix filesystem, version 1 and 2 (symlinks allowed).

ntfs - NTFS filesystem.

reiserfs - ReiserFS versions up to 3.6

sfs - Amiga Smart FileSystem (symlinks allowed??).

ufs - Unix File System (symlinks allowed).

xfs - XFS, btree and extents are supported. (symlinks allowed??).


TODO describe more :

cpiofs - cpio and tar filesystem.

hostfs - Dummy filesystem to provide access to the hosts filesystem. ????? TODO

gzio - Decompression support for gzip

Loaders modules

_chain - Boot another boot loader (known as chainloader).

_bsd - Boot BSDs kernels.

_linux - Boot a Linux kernel.

_multiboot - Boot a Multiboot compatible kernel.

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

(7)GRUB_MODULES


LICENSE

This page is dual licensed under GPL + GFDL.

GrubWiki: FranklinPiat/grub modules.manpage (last edited 2009-04-10 22:17:03 by FranklinPiat)