[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 revision | ||
howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware [2016/11/17 08:49 (UTC)] – [Ubuntu] aragorn2101 | howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware [2017/01/25 08:49 (UTC)] (current) – [GRUB] aragorn2101 | ||
---|---|---|---|
Line 51: | Line 51: | ||
# mount -t vfat /dev/sda2 / | # mount -t vfat /dev/sda2 / | ||
- | # mount -t proc /proc proc | + | # mount -t proc /proc /mnt/proc |
- | # mount --rbind /sys sys | + | # mount --rbind /sys /mnt/sys |
- | # mount --rbind /dev dev | + | # mount --rbind /dev /mnt/dev |
- | # mount --rbind /run run | + | # mount --rbind /run /mnt/run |
</ | </ | ||
Line 130: | 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 165: | 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 171: | 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 178: | 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 189: | 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 225: | 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 247: | 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 255: | 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 275: | 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 310: | 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 355: | 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 392: | 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 422: | 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 | ||
Line 467: | Line 467: | ||
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must remove the tag-word " | <!-- You must remove the tag-word " | ||
- | {{tag> | + | {{tag> |