[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware [2016/11/16 09:26 (UTC)] – [Installation of Linux distros] aragorn2101 | howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware [2016/11/18 08:39 (UTC)] – [Non-bootloader tools] aragorn2101 | ||
---|---|---|---|
Line 45: | Line 45: | ||
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. | 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. | ||
- | Normally | + | Normally |
-> Mount some useful filesystems (if they are not already present): | -> Mount some useful filesystems (if they are not already present): | ||
< | < | ||
- | (mount the following if not already present) | ||
- | |||
# mount -t vfat /dev/sda2 / | # mount -t vfat /dev/sda2 / | ||
Line 79: | Line 77: | ||
<note important> | <note important> | ||
<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 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.</ | ||
- | < | + | < |
At this point we have the file EFI/ | At this point we have the file EFI/ | ||
Line 115: | Line 113: | ||
efibootmgr -c -g -d /dev/sda -p 2 -w -L " | efibootmgr -c -g -d /dev/sda -p 2 -w -L " | ||
</ | </ | ||
- | Just observe that my EFI partition is /dev/sda2; that is why there are "-d / | + | Just observe that our EFI partition is /dev/sda2; that is why there are "-d / |
===== Ubuntu ===== | ===== Ubuntu ===== | ||
- | Installation of Ubuntu is fairly straightforward. We boot into the DVD/USB and proceed with installation, | + | Installation of Ubuntu is fairly straightforward. We boot into the DVD/USB and proceed with installation, |
- | At the end of installation, | + | At the end of installation, |
====== Installing rEFInd ====== | ====== Installing rEFInd ====== | ||
Line 132: | Line 130: | ||
${VERSION} should be replaced with the version. This command will normally detect the EFI partition and system architecture, | ${VERSION} should be replaced with the version. This command will normally detect the EFI partition and system architecture, | ||
- | As for Ubuntu or other Linux distros, refind is most probably part of the official package repositories. Anyway, | + | As for Ubuntu or other Linux distros, refind is most probably part of the official package repositories. Anyway, |
===== rEFInd Manual Install ===== | ===== rEFInd Manual Install ===== | ||
Line 167: | Line 165: | ||
===== Tidying up ===== | ===== Tidying up ===== | ||
- | == Omit scan volumes == | + | == Omit scanning |
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 | 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 | ||
< | < | ||
Line 173: | Line 171: | ||
</ | </ | ||
- | == Omit scan specific directories == | + | == Omit scanning |
We do not want refind to detect all the EFI binaries automatically, | We do not want refind to detect all the EFI binaries automatically, | ||
< | < | ||
Line 180: | Line 178: | ||
We will add the following: | We will add the following: | ||
< | < | ||
- | (we need to start begin the list of directories with " | + | (we need to begin the list of directories with " |
dont_scan_dirs + EFI/ | dont_scan_dirs + EFI/ | ||
</ | </ | ||
- | == Omit scan specific files == | + | == Omit scanning |
This will ultimately avoid listing certain specific EFI binaries, since we will add a single entry for each one later. | This will ultimately avoid listing certain specific EFI binaries, since we will add a single entry for each one later. | ||
< | < | ||
Line 191: | Line 189: | ||
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. | 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 scan Linux kernels == | + | == Omit scanning |
< | < | ||
scan_all_linux_kernels false | scan_all_linux_kernels false | ||
Line 227: | Line 225: | ||
</ | </ | ||
- | The refind.efi binary will be booted automatically as it was added in the EFI firmwares using efibootmgr. | + | We should add custom entries for each of the EFI binaries we want to appear in the refind menu. |
-> Entry for Windows: | -> Entry for Windows: | ||
< | < | ||
menuentry Windows { | menuentry Windows { | ||
- | icon EFI/ | + | |
- | loader EFI/ | + | loader EFI/ |
} | } | ||
</ | </ | ||
- | Note that we can choose any of the icons from the icons/ directory. | + | Note that we can choose any of the icons from the EFI/refind/icons/ directory. |
-> Entry for Slackware: | -> Entry for Slackware: | ||
< | < | ||
menuentry Slackware { | menuentry Slackware { | ||
- | icon EFI/ | + | |
- | loader EFI/ | + | loader EFI/ |
} | } | ||
</ | </ | ||
Line 249: | Line 247: | ||
< | < | ||
menuentry Ubuntu { | menuentry Ubuntu { | ||
- | icon EFI/ | + | |
- | volume 9f5b153d-d103-4314-bc98-455fa5d0c625 | + | volume 9f5b153d-d103-4314-bc98-455fa5d0c625 |
- | loader EFI/ | + | loader EFI/ |
} | } | ||
</ | </ | ||
Line 257: | Line 255: | ||
=== Apple Mac === | === Apple Mac === | ||
- | For a Mac, refind will automatically detect the EFI binary. It is mos probably named " | + | For a Mac, refind will automatically detect the EFI binary. It is most probably named " |
< | < | ||
# cp / | # cp / | ||
Line 277: | Line 275: | ||
| | ||
| | ||
- | | + | |
|_ vmlinuz-4.4.16-21.generic | |_ vmlinuz-4.4.16-21.generic | ||
|_ initrd.img-4.4.16-21.generic | |_ initrd.img-4.4.16-21.generic | ||
Line 312: | Line 310: | ||
options "ro root=UUID=9f5b153d-d103-4314-bc98-455fa5d0c625" | options "ro root=UUID=9f5b153d-d103-4314-bc98-455fa5d0c625" | ||
} | } | ||
- | submenuentry "Linux 4.4.14 generic (recovery mode)" { | + | submenuentry "Linux 4.4.29 generic (recovery mode)" { |
options "ro root=UUID=9f5b153d-d103-4314-bc98-455fa5d0c625 single" | options "ro root=UUID=9f5b153d-d103-4314-bc98-455fa5d0c625 single" | ||
} | } | ||
Line 357: | Line 355: | ||
=== Using a refind_linux.conf file === | === Using a refind_linux.conf file === | ||
- | If we have placed a kernel on the EFI partition, like above with Slackware14.1 and Slackware14.2, we can also place a file called 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, |
-> EFI/ | -> EFI/ | ||
Line 394: | Line 392: | ||
===== Non-bootloader tools ===== | ===== Non-bootloader tools ===== | ||
- | Below the icons for bootloaders and kernels selection, there is a set of icons for a set of useful tools/ | + | In the refind menu, below the icons for bootloaders and kernels selection, there is a set of icons for useful tools/ |
< | < | ||
showtools reboot, | showtools reboot, | ||
Line 424: | Line 422: | ||
=== Using custom icons === | === Using custom icons === | ||
- | As we saw above with the custom menu entries we can choose icons for each entry with the **icon** option | + | 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/ |
< | < | ||
large_icon 128 | large_icon 128 |