Opentopia Directory Encyclopedia Tools

GNU GRUB

Encyclopedia : G : GN : GNU : GNU GRUB



 

GRUB redirects here. For other uses, see Grub.
right

GNU GRUB ("GRUB" for short) is a multiboot boot-loader software package from the GNU project. GRUB can also be used to select among the kernel images available on a particular operating system's partitions, as well as to pass boot-time parameters to such kernels. In technical terms, a multiboot boot loader is one which can load any executable file with a multiboot header present in the first 8 KB of the file. Such a header consists of 32 bits of "magic" number, 32 bits of flags, a further 32 bits of magic number, followed by data about the executable image.

GNU GRUB developed from a previous package called the GRand Unified Bootloader (a play on Grand Unified Theory). The GNU operating system uses GNU GRUB as its official bootloader, and most distributions of GNU/Linux foster its deployment.

The most used version of GRUB is referred to as "GRUB Legacy". This version is still receiving bug fixes but no new features are being added. The GRUB developers have switched their focus to GRUB 2, a complete rewrite that merges in source code from PUPA. As of May 2006 GRUB 2 is still classified as unstable (in development, not ready for production usage).

Features

Installation

Supported File Systems

As of 2005

Supported Operating Systems

An example configuration file for GNU GRUB. This file will allow the user to load Windows XP or Ubuntu Linux.
Enlarge
An example configuration file for GNU GRUB. This file will allow the user to load Windows XP or Ubuntu Linux.

GRUB boot process

  1. The BIOS finds a bootable device (hard disk) and transfers control to the master boot record (MBR, the first 512 bytes of the hard disk).
  2. The MBR contains GRUB stage 1. Given the small size of the MBR, Stage 1 does little more than load the next stage of GRUB (which may reside physically elsewhere on the disk). Stage 1 can either load stage 1.5, or it can load Stage 2 directly.
  3. GRUB Stage 1.5 is located in the first 30 kilobytes of hard disk immediately following the MBR. Stage 1.5 loads Stage 2.
  4. GRUB Stage 2 (loaded by Stage 1 or 1.5) receives control, and displays to the user the GRUB boot menu (or if the menu is inaccessible, drops the user to the GRUB prompt, where the user can manually specify the boot parameters).
  5. GRUB loads the user-selected (or default) kernel into memory and passes control on to the kernel. Alternatively chainloading is possible: GRUB hands off control to another bootloader which then continues the process of loading that kernel. The chainloading makes it possible to boot operating systems that don't follow the conventions and have boot processes of their own, for example, Microsoft Windows.

External links

  1. redirect[[Template:Portal]]

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: