Install/Bootloader/es

From Funtoo
Jump to navigation Jump to search
This page is a translated version of the page Install/Bootloader and the translation is 43% complete.
Outdated translations are marked like this.
Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Guía de Instalación: Gestor de Arranque

Install Guide, Chapter 14 < Prev Next >

How Booting Works

In order for Funtoo Linux to boot, it must detect the boot filesystem, root filesystem and swap. The most reliable way to do this is to use the UUID, or unique identifier, of the partitions holding these filesystems. We will use these UUID values in the /etc/fstab, which we will set up next.

The UUID allows Linux to find the right filesystem, even if it detects the disks differently or you move them around in your computer. Funtoo Linux uses a Linux kernel and initial RAM disk to boot, and to get everything set up, we need to set up /etc/fstab correctly, and then install the GRUB boot loader -- and there are two different commands for this, depending on whether you are using MBR or UEFI. Then, finally, we run ego boot update which is a Funtoo command that configures everything for us.

Label partitions

To see the UUIDs for your existing filesystems, type the following command:

root # ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Jan 27 13:42 6883428138129353569 -> ../../sdb1
lrwxrwxrwx 1 root root 15 Jan 27 13:42 CE4B-855D -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jan 27 13:42 ac280eb5-1ea7-4742-9e71-9c7addd35c54 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jan 27 13:42 e5a76428-8b3f-4349-81af-cbe29c7f7d09 -> ../../nvme0n1p3

The UUIDs are listed to the left-hand side of the ->. Use these values for setting up the /etc/fstab file, below.

/etc/fstab

/etc/fstab is used by the mount command which is run when your system boots. Lines in this file inform mount about filesystems to be mounted and how they should be mounted. In order for the system to boot properly, you must edit /etc/fstab and ensure that it reflects the partition configuration you used earlier in the install process. If you can't remember the partition configuration that you used earlier:

chroot # nano -w /etc/fstab
   /etc/fstab - An example fstab file
UUID=CE4B-855D                                  /boot         vfat    noauto,noatime  1 2
UUID=ac280eb5-1ea7-4742-9e71-9c7addd35c54       none          swap    sw              0 0
UUID=e5a76428-8b3f-4349-81af-cbe29c7f7d09       /             ext4    noatime         0 1
   Important

Be sure to use the actual UUIDs from your system, not the example values above!

   Note

If you mounted a /var or /home partition, add them to your fstab, or your system may not boot correctly.

boot.conf

/etc/boot.conf controla la configuración del cargador de arranque en Funtoo. Esto es lo que está en el archivo por defecto:

Here is what is in the file by default:

   /etc/boot.conf
boot {
	generate grub
	default "Funtoo Linux"
	timeout 3
}

"Funtoo Linux" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto rootfstype=auto
}

"Funtoo Linux (nomodeset)" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto rootfstype=auto nomodeset
}

Si está iniciando un núcleo personalizado o no predeterminado, lea man boot.conf para obtener información sobre las diversas opciones disponibles para usted.

nomodeset

Notará después de arrancar que habrá una opción de arranque en el menú de GRUB para un modo "nomodeset". No recomendamos que utilice este modo de forma predeterminada, pero está disponible para usted por un par de buenas razones:

  • Para usuarios con pantallas HiDPI (4K+), especialmente computadoras portátiles: si no ha configurado un entorno gráfico, cuando el núcleo cambia automáticamente los modos de gráficos, la fuente de la consola puede ser pequeña e ilegible.
  • Para usuarios con tarjetas gráficas incompatibles: Algunas tarjetas gráficas no manejan la configuración de modo correctamente y esto puede resultar en una pantalla en blanco después de reiniciar. Utilice esta opción de arranque como una solución temporal.

Para usar la opción nomodeset, simplemente seleccione esa opción en el menú de GRUB cuando arranque su sistema.

rootwait

Si está utilizando una partición raíz en un dispositivo nvme, agregue el parámetro de núcleo rootwait para obligar al núcleo a esperar a que se inicialice de forma asíncrona o el núcleo entrará en pánico en algún hardware.

Intel Microcode

ego boot se asegurará de que tenga el microcódigo de CPU Intel más reciente instalado en su sistema si emerges los siguientes paquetes:

chroot # emerge intel-microcode iucode_tool

Esto no es necesario para los sistemas AMD.

Vieja Escuela (BIOS) MBR

Cuando use el arranque de BIOS "old school" (vieja escuela), ejecute el siguiente comando para instalar GRUB en su MBR y genere el archivo de configuración /boot/grub/grub.cfg que GRUB usará para arrancar:

chroot # grub-install --target=i386-pc --no-floppy /dev/sda
chroot # ego boot update

Nueva Escuela (UEFI) Boot Entry

Si está utilizando el arranque UEFI de "nueva escuela", ejecute los siguientes conjuntos de comandos, dependiendo de si está instalando un sistema de 64 bits o de 32 bits. Esto agregará GRUB como una entrada de arranque UEFI.

Para sistemas x86-64bit:

chroot # mount -o remount,rw /sys/firmware/efi/efivars
chroot # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
chroot # ego boot update

Para sistemas x86-32bit:

chroot # mount -o remount,rw /sys/firmware/efi/efivars
chroot # grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
chroot # ego boot update

Ego!

Now, let's run Funtoo's ego boot update command to get everything configured. This will detect the current kernel(s) on your system and create the necessary GRUB boot entries to get your system booted:

chroot # ego boot update

Solo necesita ejecutar grub-install cuando instala Funtoo Linux por primera vez, pero debe volver a ejecutar ego boot update cada vez que modifique su /etc/boot.conf o agregue nuevos núcleos a su sistema. Esto regenerará /boot/grub/grub.cfg para que tenga nuevos núcleos disponibles en su menú de inicio de GRUB en su próximo reinicio.

Solución de problemas de UEFI posteriores al reinicio

En caso de que falte la entrada de arranque UEFI NVRAM en BIOS y grub no se inicie, puede intentar mover un ejecutable GRUB EFI ya instalado a la ruta predeterminada/de reserva (default/fallback path)

chroot # mv -v '/boot/EFI/Funtoo Linux [GRUB]' /boot/EFI/BOOT
chroot # mv -v /boot/EFI/BOOT/grubx64.efi /boot/EFI/BOOT/BOOTX64.EFI

Primer Arranque y nota para el futuro...

Bien, ¡ya estás casi está listo para arrancar!

Install Guide, Chapter 14 < Prev Next >