Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente |
es:howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware [2019/02/09 11:59 (UTC)] – [ELILO] antares_alf | es:howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware [2019/02/19 03:09 (UTC)] – [Modifying Appearance of rEFInd] antares_alf |
---|
==== GRUB ==== | ==== GRUB ==== |
| |
If ELILO was not installed then we need to initialize GRUB in order to have a bootable system. So, just after the installation process, do not reboot. We will chroot into our newly installed system right away. | Si ELILO no fue instalado, necesitaremos inicializar GRUB para tener un systema de arranque. Así que, justo después del proceso de instalación, no reinicie. en nuestro sistema recien instalado. Vamos a chrootear en nuestro sistema recién instalado de inmediato. |
| |
Normally the newly installed system is mounted at /mnt. Use the **df** command to see what else is mounted and where. | Normalmente, el sistema recién instalado se monta en /mnt. Use el comando **df** para ver que más se monta y dónde. |
| |
| -> Montar algunos sistemas de archivos útiles (if they are not already present):(si no están ya presentes): |
| |
-> Mount some useful filesystems (if they are not already present): | |
<code> | <code> |
# mount -t vfat /dev/sda2 /mnt/boot/efi | # mount -t vfat /dev/sda2 /mnt/boot/efi |
</code> | </code> |
| |
-> chroot into newly installed system: | -> hacer chroot en el sistema recientemente instalado: |
<code> | <code> |
# chroot /mnt env -i HOME=/root TERM=$TERM PS1='\u@\h:\w# ' PATH=/usr/bin:/usr/sbin:/bin:/sbin bash --login +h | # chroot /mnt env -i HOME=/root TERM=$TERM PS1='\u@\h:\w# ' PATH=/usr/bin:/usr/sbin:/bin:/sbin bash --login +h |
</code> | </code> |
| |
-> Then we install the GRUB bootloader on the EFI partition. | -> Luego instalamos el gestor de arranque GRUB en la partición EFI. |
| |
<code> | <code> |
# grub-mkconfig -o /boot/grub/grub.cfg | # grub-mkconfig -o /boot/grub/grub.cfg |
</code> | </code> |
<note important>The modules efivars and efivarfs need to be loaded everytime before we use the **efibootmgr** command, here called by grub-install. Actually, it would have been loaded by grub-install automatically but we are mentioning this explicitly for completeness.</note> | |
<note tip>The grub-install command above generates lots of output. You can redirect it to a log file to check it out later. Among the last lines of the output we should observe the use of the **efibootmgr** command to register the EFI binary into the UEFI firmware settings. I strongly recommend reading the man pages for **efibootmgr** to understand the command.</note> | <note important>Los módulos efivars y efivarfs deben cargarse cada vez que usamos el comando **efibootmgr**, aquí llamado grub-install. En realidad, grub-install lo habría cargado automáticamente, pero lo mencionamos explícitamente para que esté completo.</note> |
<note>One interesting thing here is that, in case Windows is installed, grub-mkconfig says it detects the Windows bootloader (bootmgfw.efi) but does not support it. So it will not be able to generate an entry for it in the grub.cfg. Then we should either put an entry manually in grub.cfg. This is something we can work around with rEFInd.</note> | <note tip>El comando grub-install anterior genera muchos resultados. Puede redirigirlo a un archivo de registro para verlo más tarde. Entre las últimas líneas de la salida, debemos observar el uso del comando **efibootmgr** para registrar el binario EFI en la configuración del firmware UEFI. Recomiendo leer las páginas del manual para **efibootmgr** para entender el comando.</note> |
At this point we have the file EFI/GRUB/grubx64.efi and the /boot/grub tree. The grubx64.efi is registered in the firmware settings, so we can boot it. You can use the "-v" option with efibootmgr to see if everything is alright. If you need to change the order of some bootloaders, you can use the "-o" option. An example is shown below: | <note>Una cosa interesante aquí es que, en caso de que Windows esté instalado, grub-mkconfig dice que detecta el cargador de arranque de Windows (bootmgfw.efi) pero no lo admite. Por lo tanto, no podrá generar una entrada para él en grub.cfg.Entonces deberíamos poner una entrada manualmente en grub.cfg. Esto es algo que podemos trabajar con rEFInd.</note> |
| |
| En este punto tendremos el archivo EFI/GRUB/grubx64.efi y el arbol /boot/grub. El grubx64.efi está registrado en la configuración del firmware, por lo que podemos arrancarlo.Puedes usar la opción '-v' con efibootmgr para ver si todo está bien.Si necesita cambiar el orden de algunos cargadores de arranque, puede usar la opción '-o'. A continuación se muestra un ejemplo: |
| |
<code> | <code> |
</code> | </code> |
| |
== Two more tips, in case you mess up anything ;-) == | == Dos tips más, en caso de que arruines algo ;-) == |
| |
| Si necesita eliminar una entrada de la lista de binarios de EFI, puedes usar la opción '-B'. Digamos que desea eliminar EFI binario 0001: |
| |
If you need to remove an entry from the list of EFI binaries, you can use the "-B" option. Let's say you want to remove EFI binary 0001: | |
<code> | <code> |
efibootmgr -b 0001 -B | efibootmgr -b 0001 -B |
</code> | </code> |
And if you need to add an EFI binary (let's say EFI/Slackware/elilo.efi) into the firmware settings: | |
| Y si necesita agregar un binario en EFI (digamos EFI /Slackware/elilo.efi) en la configuración del firmware: |
<code> | <code> |
efibootmgr -c -g -d /dev/sda -p 2 -w -L "ELILO" -l '\EFI\Slackware\elilo.efi' | efibootmgr -c -g -d /dev/sda -p 2 -w -L "ELILO" -l '\EFI\Slackware\elilo.efi' |
</code> | </code> |
Just observe that our EFI partition is /dev/sda2; that is why there are "-d /dev/sda" and "-p 2". These two arguments tell efibootmgr that our EFI partition is the 2nd partition on the device /dev/sda. | |
| Sólo observe que nuestra partición EFI es /dev/sda2; es por eso que hay "-d /dev/sda" y "-p 2". Estos dos argumentos le dicen a efibootmgr que nuestra partición EFI es la segunda partición en el dispositivo /dev/sda. |
| |
| |
===== Ubuntu ===== | ===== Ubuntu ===== |
| La instalación de Ubuntu es bastante sencilla. Arrancamos el DVD / USB y procedemos con la instalación, ya que la partición ya se ha realizado. Solo ten cuidado con Ubuntu donde pregunta dónde instalarlo. Ubuntu detectará Windows y preguntará si queremos Ubuntu junto a Windows, borrando así el resto. Por lo tanto, asegúrese de permanecer en el modo manual tanto como sea posible. Elija "**Something else**" Cuando pregunte sobre las particiones. Además, asegúrese de que detectó la partición EFI. |
| |
Installation of Ubuntu is fairly straightforward. We boot into the DVD/USB and proceed with installation, since partitioning has already been done. Just be careful with Ubuntu where it asks where to install it. Ubuntu will detect Windows and will ask whether we want Ubuntu alongside, thus erasing the rest. So, be sure to stay in manual mode as much as possible. Choose "**Something else**" when prompted about the partitions. Also, make sure it detected the EFI partition. | Al final de la instalación, Ubuntu habrá instalado su GRUB en la partición EFI en el directorio EFI /ubuntu y habrá ejecutado **grub-mkconfig** y **efibootmgr**. |
| ====== Instalando rEFInd ====== |
| |
At the end of installation, Ubuntu will have installed its GRUB on the EFI partition in directory EFI/ubuntu and it would have run **grub-mkconfig** and **efibootmgr**. | Para los usuarios de Slackware, la forma más fácil de obtener rEFInd mire en [[https://slackbuilds.org/]]. El script SlackBuilds vuelve a empaquetar el binario precompilado para Slackware. Después de instalar el paquete, debemos pasar por un último paso para que se vuelva a encontrar en la partición EFI. Como root |
| |
====== Installing rEFInd ====== | |
| |
For Slackware users, the easiest way to get rEFInd is to look at [[https://slackbuilds.org/]]. The SlackBuilds script repackages the pre-compiled binary for Slackware. After installing the package, we must go through a last step to have refind placed on the EFI partition. As root, | |
<code> | <code> |
# /usr/share/refind-${VERSION}/install.sh | # /usr/share/refind-${VERSION}/install.sh |
</code> | </code> |
${VERSION} should be replaced with the version. This command will normally detect the EFI partition and system architecture, and copy the necessary files. It might prompt if it did not get some information automatically. | |
| |
As for Ubuntu or other Linux distros, refind is most probably part of the official package repositories. Anyway, we only need to install refind on any one distro. | ${VERSION} Debe ser reemplazado con la versión. Este comando normalmente detectará la partición EFI y la arquitectura del sistema, y copiará los archivos necesarios. Puede indicar si no obtuvo alguna información automáticamente. |
| |
| En cuanto a Ubuntu u otras distros linux, rEFInd es muy probablemente parte de los repositorios de paquetes oficial. De cualquier forma, solo necesitamos instalar rEFInd en cualquier distro. |
| ===== Instalación manual de rEFInd ===== |
| |
===== rEFInd Manual Install ===== | En realidad, lo bueno de rEFInd es que no tiene que estar alojado en ningún sistema operativo. También puede copiarse directamente a la partición EFI, siempre que sepa qué archivos copiar. Por lo tanto, puede descargar un archivo de restauración de [[https://sourceforge.net/projects/refind/]], y extraerlo. Normalmente, usaríamos un sistema de 64 bits, por lo tanto, cree el directorio /boot/efi/EFI/refind y copie los archivos apropiados allí: |
| |
Actually, the good thing with refind is that it does not have to be hosted on any OS. It can as well be copied directly to the EFI partition, provided you know which files to copy. So, you can download a refind archive from [[https://sourceforge.net/projects/refind/]], and extract it. Normally, we would be using a 64-bit system, so create the directory /boot/efi/EFI/refind and copy the appropriate files there: | |
<code> | <code> |
# mkdir /boot/efi/EFI/refind | # mkdir /boot/efi/EFI/refind |
# cp -R PATH_TO_REFIND_SOURCE/keys /boot/efi/EFI/refind/ | # cp -R PATH_TO_REFIND_SOURCE/keys /boot/efi/EFI/refind/ |
</code> | </code> |
But, then we have to manually register our refind EFI binary into the firmware with efibootmgr: | |
| Pero luego tenemos que registrar manualmente nuestro binario en EFI de refind en el firmware con efibootmgr: |
<code> | <code> |
# efibootmgr -c -g -d /dev/sda -p 2 -w -L "rEFInd" -l '\EFI\refind\refind_x64.efi' | # efibootmgr -c -g -d /dev/sda -p 2 -w -L "rEFInd" -l '\EFI\refind\refind_x64.efi' |
</code> | </code> |
Again, our EFI partition is found on /dev/sda2. | |
| |
<note>Note that both ways of installing rEFInd can be done just after installation of Slackware (before rebooting). We just have to mount the necessary filesystems and chroot into the newly installed system. Then either install the refind Slackware package or manual install. There are many possibilities.</note> | Una vez más, nuestra partición EFI se encuentra en /dev/sda2. |
| |
====== Configuring rEFInd ====== | <note> Note que ambos caminos de instalación de rEFInd puede realizarse inmediatamente después de la instalación de Slackware (antes de reiniciar). Solo tenemos que montar los sistemas de archivos necesarios y chroot en el sistema recién instalado. Luego instale el paquete refind Slackware o la instalación manual. Hay muchas posibilidades.</note> |
| ====== Configurando rEFInd ====== |
| |
This is the most important part. Refind normally searches most directories on the EFI partition at boot and automatically detects all your EFI binaries or kernels, refind also scans volumes and will detect kernels, and lists them as options to boot from. But this is considered hazardous as it enables booting into Single User Mode or other recovery boot loaders. So, we will go for a manual configuration of the EFI/refind/refind.conf script for better control over the boot process. | Esta es la parte más importante.rEFInd normalmente busca la mayoria de los directorios en la partición durante el arranque y detecta automáticamente todos los binarios o kernels de su EFI, rEFInd además analiza en volumenes y detectará kernels y los listará como opciones de de arranque.Pero esto se considera peligroso ya que permite el arranque en el modo de usuario único u otros cargadores de arranque de recuperación. Por lo tanto, buscaremos una configuración manual del script EFI/refind/refind.conf para un mejor control sobre el proceso de arranque. |
| |
<note>rEFInd does not scan its own directory on the EFI partition (EFI/refind/).</note> | <note>rEFInd no analiza su propio directorio en la partición EFI (EFI/refind/).</note> |
| |
If you boot into refind without modifying refind.conf, you'll see many boot entries on the start screen. We will modify refind.conf to remove much of these entries and place our custom entries there. The default refind.conf file placed by the install script at EFI/refind/ contains examples and some explanations. | Si arrancas dentro de rEFInd sin modificar refind.conf, veras muchas entradas de arranque en la pantalla de inicio. Modificaremos refind.conf para eliminar muchas de estas entradas y colocar nuestras entradas personalizadas allí. El archivo refind.conf predeterminado colocado por el script de instalación en EFI/refind/ contiene ejemplos y algunas explicaciones. |
| |
| |
| |
| |
| ===== Poner en orden ===== |
| |
===== Tidying up ===== | == Omitir volúmenes de escaneo == |
| |
| Podemor desactivar el escaneado de ciertos volúmenes utilizando el comando **dont_scan_volumes**. Usamos el comando con etiquetas de volumen. la entrada en en refind.conf es |
| |
== Omit scanning volumes == | |
We can disable the scanning of certain volumes by using the **dont_scan_volumes** command. We use the command with volume labels. The entry in refind.conf is | |
<code> | <code> |
dont_scan_volumes "WINRE","Windows" | dont_scan_volumes "WINRE","Windows" |
</code> | </code> |
| |
== Omit scanning specific directories == | == Omitir la exploración de directorios específicos == |
We do not want refind to detect all the EFI binaries automatically, because then, we will not be able to control the number of entries. So we do not want refind to scan the directories where the EFI binaries are found. refind.conf already has the entry | |
| No queremos que refind detecte todos los binarios de EFI automáticamente, porque entonces, no podremos controlar el número de entradas. Por lo tanto, no queremos volver a analizar los directorios donde se encuentran los archivos binarios de EFI, refind.conf ya tiene la entrada. |
<code> | <code> |
dont_scan_dirs ESP:/EFI/boot,EFI/Dell,EFI/memtest86 | dont_scan_dirs ESP:/EFI/boot,EFI/Dell,EFI/memtest86 |
</code> | </code> |
We will add the following: | |
| Añadiremos lo siguiente: |
<code> | <code> |
(we need to begin the list of directories with "+") | (we need to begin the list of directories with "+") |
</code> | </code> |
| |
== Omit scanning specific files == | == Omitir archivos específicos de escaneo == |
This will ultimately avoid listing certain specific EFI binaries, since we will add a single entry for each one later. | |
| En última instancia, esto evitará que se enumeren ciertos archivos binarios específicos de EFI, ya que agregaremos una sola entrada para cada uno más adelante. |
<code> | <code> |
dont_scan_files shim.efi,MokManager.efi,elilo-x86_64.efi,bootmgfw.efi,bootmgr.efi | dont_scan_files shim.efi,MokManager.efi,elilo-x86_64.efi,bootmgfw.efi,bootmgr.efi |
</code> | </code> |
This will prevent listing of the ELILO from the Slackware installation or from any other directory on the EFI partition. And, it will omit the Windows binaries. | |
| |
== Omit scanning Linux kernels == | Esto evitará que el ELILO aparezca en la lista de la instalación de Slackware o de cualquier otro directorio en la partición EFI. Y, se omitirá los binarios de Windows. |
| |
| == Omita el escaneo del kernel Linux == |
<code> | <code> |
scan_all_linux_kernels false | scan_all_linux_kernels false |
</code> | </code> |
| |
== Scan directory for drivers == | == Directorio de escaneo para los controladores == |
Normally, drivers should be placed in the tools/ directory on the EFI partition. Some drivers are found in refind's shared directory at /usr/share/refind-${VERSION}/refind/drivers_x64/. To enable scanning of EFI/tools: | |
| Normalmente, los controladores se deben colocar en el directorio tools/ en la partición EFI. Algunos controladores se encuentran en el directorio compartido de refind en /usr/share/refind-${VERSION}/refind/drivers_x64/. Para habilitar el escaneo de EFI/tools: |
<code> | <code> |
scan_driver_dirs EFI/tools | scan_driver_dirs EFI/tools |
</code> | </code> |
| ===== Arrancando los binarios de EFI ===== |
| |
| Digamos que tenemos el siguiente árbol de directorios en la partición EFI: |
===== Booting EFI binaries ===== | |
| |
Let us say we have the following directory tree on the EFI partition: | |
| |
<code> | <code> |
|_ refind_x64.efi | |_ refind_x64.efi |
</code> | </code> |
| Deberíamos agregar entradas personalizadas para cada uno de los binarios EFI que queremos que aparezcan en el menú de refind. |
| |
We should add custom entries for each of the EFI binaries we want to appear in the refind menu. | |
| |
-> Entry for Windows: | -> Entrada para Windows: |
<code> | <code> |
menuentry Windows { | menuentry Windows { |
} | } |
</code> | </code> |
| |
| Tenga en cuenta que podemos elegir cualquiera de los iconos del directorio EFI/refind/icons/. Más adelante describimos el uso de iconos personalizados. |
Note that we can choose any of the icons from the EFI/refind/icons/ directory. Later we describe the use of custom made icons. | Note that we can choose any of the icons from the EFI/refind/icons/ directory. Later we describe the use of custom made icons. |
| |
-> Entry for Slackware: | -> Entrada para Slackware: |
<code> | <code> |
menuentry Slackware { | menuentry Slackware { |
</code> | </code> |
| |
-> Entry for Ubuntu: | -> Entrada para Ubuntu: |
<code> | <code> |
menuentry Ubuntu { | menuentry Ubuntu { |
} | } |
</code> | </code> |
Had to put the volume there as GRUB will have to access that volume for its configuration file. | |
| Tuvo que colocar el volumen allí ya que GRUB tendrá que acceder a ese volumen para su archivo de configuración. |
| |
=== Apple Mac === | === Apple Mac === |
For a Mac, refind will automatically detect the EFI binary. It is most probably named "boot.efi", so just make sure boot.efi is not in the list of files not to scan for. You might also need to place an hfs driver in the EFI/tools directory: | |
| Para un Mac, refind detectara automáticamente el binario de EFI. Lo más probable es que se llame "boot.efi", así que asegúrese de que boot.efi no esté en la lista de archivos para no buscar. Es posible que también deba colocar un controlador hfs en el directorio EFI/tools: |
<code> | <code> |
# cp /usr/share/refind-${VERSION}/refind/drivers_x64/hfs_x64.efi /boot/efi/EFI/tools/ | # cp /usr/share/refind-${VERSION}/refind/drivers_x64/hfs_x64.efi /boot/efi/EFI/tools/ |
| |
| |
===== Booting Kernels ===== | ===== Booteando Kernels ===== |
| |
The nice part of refind is that we can also use it as a boot loader. So, we do not need GRUB or ELILO. We have to place the kernel we want to boot on the EFI partition. For this part we will use an example with the following directory tree under EFI/: | |
| |
| La parte buena de refind es que también podemos usarlo como un boot loader. De manera que, no necesitemos GRUB o ELILO. Tenemos que colocar el kernel que queremos arrancar en la partición EFI. Para esta parte usaremos un ejemplo con el siguiente árbol de directorios bajo EFI/: |
| |
<code> | <code> |
EFI/ | EFI/ |
</code> | </code> |
| |
<note>Note that neither Slackware nor Ubuntu place their generic kernels on the EFI partition by default. We made these directories manually and placed selected kernels there. A kernel (huge) is placed in directory EFI/Slackware only in the case where we install ELILO.</note> | <note>Tenga en cuenta que ni Slackware ni Ubuntu colocan sus kernels genéricos en la partición EFI de forma predeterminada. Hicimos estos directorios manualmente y colocamos kernels seleccionados allí. Un kernel (huge) se coloca en el directorio EFI/Slackware solo en el caso de que instalemos ELILO.</note> |
| |
| -> Entrada para Slackware 14.1: |
| |
-> Entry for Slackware 14.1: | |
<code> | <code> |
menuentry Slackware14.1_with_kernel_generic-3.10.104 { | menuentry Slackware14.1_with_kernel_generic-3.10.104 { |
} | } |
</code> | </code> |
The label of this menuentry is used as a short description and it is displayed at the bottom of the refind menu when hovering over the icons. The volume id for a particular filesystem can be obtained by using the **blkid** command: | |
| La etiqueta de esta entrada de menú se usa como una breve descripción y se muestra en la parte inferior del menú de reenvío cuando se coloca el cursor sobre los iconos. El identificador de volumen para un sistema de archivos particular se puede obtener usando el comando **blkid**: |
<code> | <code> |
# blkid /dev/sda12 | # blkid /dev/sda12 |
</code> | </code> |
| |
-> Entry for Slackware 14.2: | -> Entrada para Slackware 14.2: |
<code> | <code> |
menuentry "Slackware14.2 on sda12" { | menuentry "Slackware14.2 on sda12" { |
} | } |
</code> | </code> |
This time we made an entry with submenu entries so that we have the option to boot into single user mode. Also note how we quoted the label because we used spaces. In the refind menu at boot, we will need to place the selection on this icon and press F2 in order to access the options. If ENTER is pressed right away on the icon, it will boot the default, that is the first submenu entry. The refind.conf entry could be made more concise using the **add_options** command. Since the only difference between the two options is the parameter "**single**", we can just append it to the recovery mode's entry: | |
| Esta vez hicimos una entrada con entradas de submenú para que tengamos la opción de iniciar en modo de usuario único. También tenga en cuenta cómo citamos la etiqueta porque usamos espacios. En el menú de arranque refind, deberemos colocar la selección en este ícono y presionar F2 para acceder a las opciones. Si se presiona ENTER de inmediato en el ícono, se iniciará la configuración predeterminada, esa es la primera entrada del submenú. La entrada refind.conf podría hacerse más concisa con el comando **add_options**. Ya que la única diferencia entre las dos opciones es el parámetro **single**, podemos agregarlo a la entrada del modo de recuperación: |
<code> | <code> |
menuentry "Slackware14.2 on sda12" { | menuentry "Slackware14.2 on sda12" { |
</code> | </code> |
| |
<note important>For Slackware users: we noticed that an initrd was needed even to boot the huge kernels because certain drivers are needed. In order to boot a huge kernel without an initrd, the drivers must be loaded from an EFI shell. Many drivers were placed in EFI/tools but when refind scanned the directory, it did not load all the drivers automatically. So, it is easier to simply make an initrd to accompany every kernel.</note> | <note important>Para los usuarios de slackware: notamos que se necesitaba un initrd incluso para arrancar el kernel huge porque algunos drivers son necesarios. Los drivers necesarios, para arrancar un kernel huge sin un initrd, son cargados desde un shell EFI. Muchos drivers fueron ubicados en EFI/tools pero cuando refind explora el directorio, no todos los driver cagaron fueron cargados automaticamente. Así que resulta más fácil hacer un initrd que acompañe cada kernel.</note> |
| |
| -> Entrada para Ubuntu 16.04: |
| |
-> Entry for Ubuntu 16.04: | |
<code> | <code> |
menuentry "Ubuntu 16.04" { | menuentry "Ubuntu 16.04" { |
} | } |
</code> | </code> |
Here we used submenu entries to have options between two different kernel versions. Further submenu entries could have been added in order to have single user modes, like above, for each kernel versions. | Aquí usamos entradas de submenú para tener opciones entre dos versiones diferentes del kernel. Se podrían haber agregado más entradas de submenú para tener modos de usuario único, como arriba, para cada versión de kernel. |
| |
=== Using a refind_linux.conf file === | === Usando un archivo refind_linux.conf === |
| |
If we have placed a kernel on the EFI partition, like above, we can also place a file called refind_linux.conf, holding the booting options, in the same directory as the kernel. For example, | Si hemos colocado un kernel en la partición EFI, como arriba, también podemos colocar un archivo llamado refind_linux.conf, que contiene las opciones de arranque, en el mismo directorio que el kernel. Por ejemplo, |
| |
| -> EFI/Slackware14.2/refind_linux.conf: |
| |
-> EFI/Slackware14.2/refind_linux.conf : | |
<code> | <code> |
"Boot with standard options" "ro root=UUID=9f5b153d-d103-4314-bc98-455fa5d0c625" | "Boot with standard options" "ro root=UUID=9f5b153d-d103-4314-bc98-455fa5d0c625" |
</code> | </code> |
| |
-> Then the refind.conf entry for Slackware 14.2 becomes: | -> Entonces la entrada refind.conf para Slackware 14.2 se convierte en: |
<code> | <code> |
menuentry "Slackware14.2 on sda12" { | menuentry "Slackware14.2 on sda12" { |
} | } |
</code> | </code> |
The options will appear only after pressing F2 on the icon at the refind menu. ENTER on the icon will automatically boot the first set of options, i.e. "Boot with standard options". | |
<note>If we place two or more kernels in the same directory, then we need to have a separate entry like the above for each kernel. Then, the options from refind_linux.conf will be applied to each one.</note> | |
| |
=== Default selection and timeout === | Las opciones aparecerán solo después de presionar F2 en el ícono en el menú refind. ENTER en el icono iniciará automáticamente el primer conjunto de opciones, es decir, 'Arrancar con opciones estándar'. |
| |
| <note> Si ponemos dos o más kernels en el mismo directorio, necesitaremos tener una entrada separada como la anterior por cada kernel. Entonces, las opciones de refind_linux.conf serán aplicadas a cada uno.</note> |
| |
| === Selección predeterminada y tiempo de espera === |
| Cuando el menú refind aparece, si no son precionadas las teclas antes del tiempo de espera, refind arrancará la opción predeterminada. Si ésta no es definida explicitamente en refind.conf, refind arrancará la primera entrada en pantalla. El tiempo de espera se establece con **timeout** y la opción predeterminada se establece con **default_selection**. |
| |
When the refind menu appears, if no keys are pressed before the timeout time, refind will boot the default selection. If it is not defined explicitly in refind.conf, refind will boot the first entry on the screen. The timeout time is set with **timeout** and the default is set with **default_selection**. | |
<code> | <code> |
timeout 10 | timeout 10 |
default_selection "Slackware14.1" (will boot Slackware 14.1) | default_selection "Slackware14.1" (will boot Slackware 14.1) |
</code> | </code> |
Concerning the last option, any substring that corresponds to the loader's title or volume will work. But we have to be careful when having similar entry titles like our two Slackware's above. | |
| |
===== Non-bootloader tools ===== | Respecto a la última opción, cualquier subcadena que corresponda al título o volumen del cargador funcionará. Pero hay que tener cuidado cuando tenemos entradas con titulos similares como nuestros dos Slackware de arriba. |
| ===== Herramientas Non-bootloader ===== |
| |
| En el menú refind, bajo los íconos para la selección de cargadores de arranque y kernels, hay un conjunto de íconos para herramientas/opciones útiles, por ejemplo, EFI shell, memtest, programa de particionamiento, a cerca de, apagado, reinicio. Podemos elegir las opciones que serán visibles en el menú usando el comando ** showtools **: |
| |
In the refind menu, below the icons for bootloaders and kernels selection, there is a set of icons for useful tools/options, e.g. EFI shell, memtest, partitioning program, about, shutdown, reboot. We can choose which options to be visible in the menu using the **showtools** command: | |
<code> | <code> |
showtools reboot,shutdown,about | showtools reboot,shutdown,about |
</code> | </code> |
Options available are: | Las opciones disponibles son: |
| |
* shell : the EFI shell | * shell : El shell de EFI |
* memtest : memtest86 program | * memtest : programa memtest86 |
* gdisk : partitioning software | * gdisk : herramienta para particionamiento |
* apple_recovery | * apple_recovery |
* windows_recovery | * windows_recovery |
* mok_tool : Machine Owner Key (MOK) maintainance tool | * mok_tool : Herramienta de mantenimiento de la clave de propietario de la máquina (MOK) |
* shutdown | * shutdown : Apagado |
* reboot | * reboot : Reinicio |
* firmware : reboots the computer into the UEFI firmware settings | * firmware : reinicio la computadora en la configuración de firmware UEFI |
* about : information about rEFInd | * about : información a cerca de rEFInd |
| |
===== Modifying Appearance of rEFInd ===== | ===== Modificando la apariencia de rEFInd ===== |
| |
Now that we got our boot entries sorted out, we can play around and modify the appearance of the refind menu. | Ahora que hemos arreglado nuestras entradas de arranque, podemos jugar un poco y modificar la apariencia de nuestro menú. |
| |
=== Resolution === | === Resolución === |
| |
| Podemos establecer la resolución manualmente, para asegurar que los banners/background estén bien escalados. La resolución por defecto del sistema es 800x600. |
| |
We can set the resolution manually, to make sure that the banners/background will be well scaled. The system default resolution is usually 800x600. | |
<code> | <code> |
resolution 1920 1080 | resolution 1920 1080 |
</code> | </code> |
| |
=== Using custom icons === | === Usando íconos personalizados === |
| |
| Como vimos anteriormente con las entradas del menú personalizado, podemos elegir íconos para cada entrada con la opción **icon**. Entonces podemos hacer nuestros propios íconos y colocarlos en el directorio EFI/refind/icons/. El tipo predeterminado de iconos es bmp o png. Hay dos tipos de íconos, unos pequeños para las opciones non-bootloader (p.e. apagado, reinicio, ...), y unos grandes para las entradas bootloaders/kernel. Todos los iconos son cuadrados y los tamaños predeterminados son 48x48 para los iconos pequeños y 128x128 para los iconos grandes. Todos los iconos deben tener un tamaño superior a 32x32. El tamaño de los iconos se puede configurar utilizando: |
| |
As we saw above with the custom menu entries we can choose icons for each entry with the **icon** option. So we can make our own icons and place them in directory EFI/refind/icons/. The default type of icons is bmp or png. There are two types of icons, small ones for the non-bootloader options (e.g. shutdown, reboot, ...), and large ones for the bootloaders/kernel entries. All icons are square and default sizes are 48x48 for the small icons and 128x128 for the large icons. All icons must be more than 32x32 in size. The size of icons can be set using: | |
<code> | <code> |
large_icon 128 | large_icon 128 |
small_icon 48 | small_icon 48 |
</code> | </code> |
| |
If the icons are physically smaller, they will be stretched to match the set size. | If the icons are physically smaller, they will be stretched to match the set size. |
| |