GRUB2 Quick Start/es

Este artículo proporciona información sobre cómo poner en marcha (el sistema) con GRUB2, sobre la base de configuraciones simples. Para una información más completa, vea GRUB2. Para una migración de GRUB Legacy a GRUB2, vea GRUB2 Migration.

Instalar el software de GRUB2
The package is slotted which means both grub-0.97 and grub-2.xx may be installed at the same time. However, while both versions of GRUB can be installed simultaneously, only one version of GRUB may be active as the system's bootloader at a time.

To install GRUB2, first set the GRUB_PLATFORMS variable with one or more appropriate values in the system's. If unset, GRUB2 will guess which platform to use on the system. It guesses  (which is the MBR style of installation) for / architectures.

Después de que se haya establecido la variable, instale el software:

Activar el gestor de arranque GRUB2
Monte, si procede:

When using an EFI platform, make sure that the EFI System Partition is available (mounted) at. This can either be through a specific mount point (at ) or by having an entire partition formatted with the FAT filesystem. This will effectually render into a large EFI System Partition.

Presuming only is FAT:

Run the utility to copy the relevant files to. On the PC platform, this also installs a boot image to the Master Boot Record (MBR) or a partition's boot sector.

Para instalar GRUB2 en el MBR:

Para instalar GRUB2 en un sistema EFI:

The command accepts a   option to specify which CPU/Platform to install. If unspecified, will make a guess: on / it will use the   value by default.

Configuración automática
GRUB2 is traditionally configured by using the program to generate a configuration file.

generates the configuration file based on template sections located in. The default templates should cover most common boot setups.

El comportamiento de estas plantillas puede ser controlado definiendo las variables presentes en. Vea el manual de GRUB para obtener más información.

Esquema de nombres del núcleo
In order for to detect the available Linux kernel(s), their names must start with  or.

Por ejemplo:

When using an initramfs, its name should start with or  and end with. The version must match one of a kernel image. File names generated by will also work.

Por ejemplo:

To generate the file, execute the  command like so:

Silenciar descompresión del núcleo
To silence kernel decompression at boot time, edit and add   to the GRUB_CMDLINE_LINUX_DEFAULT variable.

Systemd
To boot systemd while using GRUB2 make the GRUB_CMDLINE_LINUX variable look like this:

Cargar otro sistema operativo
can also generate configurations to load other operating systems. This requires the package.

To boot Windows, the also needs to be installed. It allows for the utility to probe NTFS filesystems.

Configuración manual
Users do not need to use. The file can be edited manually as well.

Como la mayoría de los usuarios tienen experiencia con el formato de GRUB Legacy, el siguiente ejemplo muestra cómo escribir un archivo de configuración de GRUB2 basado en la información que proporciona la configuración de GRUB Legacy.

Véase también

 * GRUB2 - The 'full' GRUB2 article contains more information and an extensive list of resources.