Difference between revisions of "Install/Bootloader/es"

From Funtoo
Jump to navigation Jump to search
(Updating to match new version of source page)
 
(54 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
== Gestor de arranque ==
== Gestor de Arranque ==
</includeonly><noinclude><languages/>
</includeonly><noinclude><languages/>
= Guía de instalación: Gestor de arranque =
= Guía de Instalación: Gestor de Arranque =


{{InstallNavigation|num=14|prev=Kernel|next=Network}}</noinclude>
{{InstallNavigation|num=14|prev=Kernel/es|next=Network/es}}</noinclude>


=== Configuración: boot.conf===
<div lang="en" dir="ltr" class="mw-content-ltr">
==== How Booting Works ====
</div>


Estas instrucciones de instalación muestran cómo usar GRUB para arrancar utilizando BIOS (legacy) o UEFI.
<div lang="en" dir="ltr" class="mw-content-ltr">
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 {{c|/etc/fstab}}, which we will set up next.
</div>


Ego boot-update  ({{c|ego boot}}) se instaló de forma predeterminada, pero GRUB no, ya que no es necesario para todos los sistemas Funtoo Linux (como los contenedores, por ejemplo). Pero para el arranque desde cero es el cargador de arranque recomendado y con el mejor soporte, por lo que deberá usar "emerge" en este caso:
<div lang="en" dir="ltr" class="mw-content-ltr">
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 {{c|/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 {{c|ego boot update}}
which is a Funtoo command that configures everything for us.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
==== Label partitions ====
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
To see the UUIDs for your existing filesystems, type the following command:
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{console|body=
{{console|body=
(chroot) ###i## emerge -av grub
# ##i##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
}}
}}
</div>


A continuación, edite {{c|/etc/boot.conf}} utilizando {{c|nano}} y especifique "{{c|Funtoo Linux genkernel}}" como la configuración {{c|default}} en la parte superior del archivo, reemplazando {{c|"Funtoo Linux"}}.  
<div lang="en" dir="ltr" class="mw-content-ltr">
The UUIDs are listed to the left-hand side of the {{c|->}}. Use these values for setting up the {{f|/etc/fstab}} file, below.
</div>


==== Usuarios con tarjeta gráfica NVIDIA====
<div lang="en" dir="ltr" class="mw-content-ltr">
==== /etc/fstab ====
</div>


Si usted tiene una tarjeta gráfica NVIDIA y planea configurar un entorno gráfico, tiene dos alternativas para seleccionar su controlador gráfico (driver): el controlador gráfico propietario que provee la misma coorporación NVIDIA o el controlador gráfico de código abierto Nouveau. Si usted no sabe cuál de los dos debe seleccionar, le sugerimos que comience con el controlador propietario de NVIDIA porque ofrece un mejor rendimiento en un rango amplio de hardware.
<div lang="en" dir="ltr" class="mw-content-ltr">
{{f|/etc/fstab}} is used by the {{c|mount}} command which is run when your system boots. Lines in this file inform {{c|mount}} about filesystems to be mounted and how they should be mounted. In order for the system to boot properly, you must edit {{f|/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:
</div>


Si decide usar el controlador gráfico propietario de NVIDIA, es una buena práctica dejar el parámetro {{c|nomodeset}} en {{c|/etc/boot/conf}} porque el controlador propietario es capaz de configurar el modo gráfico por sí mismo. Sin embargo, usted tendrá que incluir los módulos "Nouveau" en la lista negra  para que no sean cargados durante el arranque (boot) del sistema. Lea [[Package:NVIDIA_Linux_Display_Drivers|the NVIDIA Linux Display Drivers page]] para encontrar más información sobre este tema.
<div lang="en" dir="ltr" class="mw-content-ltr">
{{console|body=
%chroot% ##i##nano -w /etc/fstab
}}
</div>


Si usted usa el controlador Nouveau ...: {{c|nomodeset}} debe ser eliminado como se explica más adelante en la sección '''Otras tarjetas gráficas'''.
<div lang="en" dir="ltr" class="mw-content-ltr">
{{file|name=/etc/fstab|desc=An example fstab file|body=
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
}}
</div>


====Otras tarjetas gráficas====
<div lang="en" dir="ltr" class="mw-content-ltr">
{{Important|Be sure to use the actual UUIDs from your system, not the example values above!}}
</div>


La mayoría de usuarios, especialmente aquellos que planean configurar un ambiente gráfico deberán eliminar el parámetro {{c|nomodeset}} de {{c|params}} en {{f|/etc/make.conf}}. {{c|nomodeset}} previene que el kernel cambie los modos gráficos durante el arranque. Esta opción está predeterminada en {{c|/etc/boot.conf}} por dos razones importantes:
<div lang="en" dir="ltr" class="mw-content-ltr">
{{Note|If you mounted a /var or /home partition, add them to your fstab, or your system may not boot correctly.}}
</div>


* '''Para usuarios con pantallas HiDPI (4K+)''': cuando el kernel cambia el modo automático del modo gráfico, la fuente de la consola puede ser muy pequeña e ilegible.
==== boot.conf ====
* '''Para usuarios con controladores gráficos incompatibles''': algunas tarjetas gráficas pueden resultar en una pantalla en blanco después del arranque.  


Deshabilitar "mode setting" es una buena práctica al instalar Funtoo Linux, pero la mayoría de usuarios querrán ''eliminar esta opción''.
<div class="mw-translate-fuzzy">
{{c|/etc/boot.conf}} controla la configuración del cargador de arranque en Funtoo. Esto es lo que está en el archivo por defecto:
</div>


¿Cuál es la razón?, todos los contrladores gráficos con la gran excepción del controlador propietario de NVIDIA dependen en ''mode setting'' para configurar el ambiente gráfico. Por lo tanto, la mayoría de los usuarios ''deberán eliminarlo'', ejecutar {{c | ego boot update}} y reiniciar antes de configurar X o Wayland. De lo contrario, X no podrá inicializar la pantalla. Por supuesto, también puede optar por eliminarlo más tarde o cuando quiera, no tendrá que acordarse de eliminarlo más tarde :)
<div lang="en" dir="ltr" class="mw-content-ltr">
 
Here is what is in the file by default:
<code>/etc/boot.conf</code> Ahora debería verse así:
</div>


{{file|name=/etc/boot.conf|body=
{{file|name=/etc/boot.conf|body=
boot {
boot {
generate grub
generate grub
default "Funtoo Linux genkernel"  
default "Funtoo Linux"
timeout 3  
timeout 3
}
}


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


"Funtoo Linux genkernel" {
"Funtoo Linux (nomodeset)" {
kernel kernel[-v]
kernel kernel[-v]
initrd initramfs[-v]
initrd initramfs[-v]
        # IMPORTANT: Most users -- remember to REMOVE nomodeset below!
params += real_root=auto rootfstype=auto nomodeset
params += real_root=auto rootfstype=auto nomodeset
}
}
}}
}}
Si está iniciando un núcleo personalizado o no predeterminado, lea {{c|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 {{c|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 {{c|nvme}}, agregue el parámetro de núcleo {{c|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.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
"Funtoo Linux better-initramfs" {
=== Intel Microcode ===
kernel vmlinuz[-v]
initrd /initramfs.cpio.gz
}
}}
</div>
</div>


=== Intel Microcode ===
<div class="mw-translate-fuzzy">
 
{{c|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:
El comando {{c | ego boot}} asegurará que tenga instalado el microcódigo de CPU Intel más reciente en su sistema, si usted realiza un 'emerge' de los siguientes paquetes:
</div>


<div class="mw-translate-fuzzy">
{{console|body=
{{console|body=
%chroot% ##i##emerge intel-microcode iucode_tool
%chroot% ##i##emerge intel-microcode iucode_tool
}}
}}
</div>


Esto no es necesario en sistemas AMD.
Esto no es necesario para los sistemas AMD.


==== Vieja escuela (BIOS) MBR ====
<div class="mw-translate-fuzzy">
==== Vieja Escuela (BIOS) MBR ====
</div>


==== 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 {{c|/boot/grub/grub.cfg}} que GRUB usará para arrancar:
Cuando use el arranque de la vieja escuela o BIOS, ejecute el siguiente comando para instalar GRUB en su MBR y generar el archivo de configuración {{c|/boot/grub/grub.cfg}} que GRUB utilizará para arrancar:


<div class="mw-translate-fuzzy">
{{console|body=
{{console|body=
%chroot% ##i##grub-install --target=i386-pc --no-floppy /dev/sda
%chroot% ##i##grub-install --target=i386-pc --no-floppy /dev/sda
%chroot% ##i##ego boot update
%chroot% ##i##ego boot update
}}
}}
</div>
<div class="mw-translate-fuzzy">
==== Nueva Escuela (UEFI) Boot Entry ====
</div>
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:


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{console|body=
{{console|body=
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
%chroot% ##i##mount -o remount,rw /sys/firmware/efi/efivars
(chroot) # ##i##boot-update
%chroot% ##i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
%chroot% ##i##ego boot update
}}
}}
</div>  
</div>
 
Para sistemas x86-32bit:


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==== Nueva escuela (UEFI) Boot Entry ====
{{console|body=
%chroot% ##i##mount -o remount,rw /sys/firmware/efi/efivars
%chroot% ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
%chroot% ##i##ego boot update
}}
</div>
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
Si está utilizando arranque UEFI de "nueva escuela", ejecute los siguientes conjuntos de comandos, dependiendo de si está instalando un sistema de 64-bits o 32-bits. Esto agregará GRUB como una entrada de arranque UEFI.
==== Ego! ====
</div>
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
Para sistemas x86-64bit:
Now, let's run Funtoo's {{c|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:
</div>
</div>


Para sistemas x86-32bit:
<div lang="en" dir="ltr" class="mw-content-ltr">
{{console|body=
%chroot% ##i##ego boot update
}}
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
<console>
Solo necesita ejecutar {{c|grub-install}} cuando instala Funtoo Linux por primera vez, pero debe volver a ejecutar {{c|ego boot update}} cada vez que modifique su {{c|/etc/boot.conf}} o agregue nuevos núcleos a su sistema. Esto regenerará {{c|/boot/grub/grub.cfg}} para que tenga nuevos núcleos disponibles en su menú de inicio de GRUB en su próximo reinicio.
(chroot) # ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##boot-update
</console>
</div>
</div>


==== Primer arranque, y en el futuro... ====  
==== 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 ''[https://wiki.archlinux.org/index.php/GRUB#Default/fallback_boot_path ruta predeterminada/de reserva]'' (default/fallback path)
{{console|body=
%chroot% ##i##mv -v '/boot/EFI/Funtoo Linux [GRUB]' /boot/EFI/BOOT
%chroot% ##i##mv -v /boot/EFI/BOOT/grubx64.efi /boot/EFI/BOOT/BOOTX64.EFI
}}
 
==== Primer Arranque y nota para el futuro... ====  


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


<div class="mw-translate-fuzzy">
Solo necesita ejecutar <code>grub-install</code> cuando instala Funtoo Linux por primera vez, pero necesita volver a ejecutar <code>boot-update</code> cada vez que modifique el archivo <code>/etc/boot.conf</code> o agregue nuevos kernels a su sistema. Esto regenerará {{c|/boot/grub/grub.cfg}} para que tengas nuevos kernels disponibles en su menú de arranque de GRUB, la próxima vez que reinicie.
</div>
<noinclude>{{InstallNavigation|num=14|prev=Kernel|next=Network|align=right}}</noinclude>
<noinclude>{{InstallNavigation|num=14|prev=Kernel|next=Network|align=right}}</noinclude>

Latest revision as of 16:53, March 21, 2024

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 >