[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware [2016/11/17 08:49 (UTC)] – [Ubuntu] aragorn2101howtos: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 /mnt/boot/efi # mount -t vfat /dev/sda2 /mnt/boot/efi
  
-# 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
 </code> </code>
  
Line 130: Line 130:
 ${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. ${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, you only need to install refind on any one distro.+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.
  
 ===== rEFInd Manual Install ===== ===== rEFInd Manual Install =====
Line 165: Line 165:
 ===== Tidying up ===== ===== Tidying up =====
  
-== Omit scan volumes ==+== 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 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>
Line 171: Line 171:
 </code> </code>
  
-== Omit scan specific directories ==+== Omit scanning specific directories ==
 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 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
 <code> <code>
Line 178: Line 178:
 We will add the following: We will add the following:
 <code> <code>
-(we need to start begin the list of directories with "+")+(we need to begin the list of directories with "+")
 dont_scan_dirs + EFI/Boot,EFI/Microsoft,EFI/Slackware,EFI/ubuntu dont_scan_dirs + EFI/Boot,EFI/Microsoft,EFI/Slackware,EFI/ubuntu
 </code> </code>
  
-== Omit scan specific files ==+== Omit scanning specific files ==
 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.
 <code> <code>
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 Linux kernels ==
 <code> <code>
 scan_all_linux_kernels false scan_all_linux_kernels false
Line 225: Line 225:
 </code> </code>
  
-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 other binaries we want to appear in the refind menu.+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:
 <code> <code>
 menuentry Windows { menuentry Windows {
-icon EFI/refind/icons/os_win8.png +  icon EFI/refind/icons/os_win8.png 
-loader EFI/Microsoft/Boot/bootmgfw.efi+  loader EFI/Microsoft/Boot/bootmgfw.efi
 } }
 </code> </code>
-Note that we can choose any of the icons from the icons/ directory. The size of icons is 128x128 and are of png format. You can make your own 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: -> Entry for Slackware:
 <code> <code>
 menuentry Slackware { menuentry Slackware {
-icon EFI/refind/icons/os_win8.png +  icon EFI/refind/icons/os_win8.png 
-loader EFI/Slackware/elilo.efi+  loader EFI/Slackware/elilo.efi
 } }
 </code> </code>
Line 247: Line 247:
 <code> <code>
 menuentry Ubuntu { menuentry Ubuntu {
-icon EFI/refind/icons/os_ubuntu.png +  icon EFI/refind/icons/os_ubuntu.png 
-volume 9f5b153d-d103-4314-bc98-455fa5d0c625 +  volume 9f5b153d-d103-4314-bc98-455fa5d0c625 
-loader EFI/ubuntu/grubx64.efi+  loader EFI/ubuntu/grubx64.efi
 } }
 </code> </code>
Line 255: Line 255:
  
 === Apple Mac === === Apple Mac ===
-For a Mac, refind will automatically detect the EFI binary. It is mos 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:+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:
 <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/
Line 275: Line 275:
          |_ initrd-4.4.29.gz          |_ initrd-4.4.29.gz
                    
- |_ Ubuntu/+ |_ Ubuntu16.04/
        |_ 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, holding the booting options, in the same directory as the kernel. For example,+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,
  
 -> EFI/Slackware14.2/refind_linux.conf : -> EFI/Slackware14.2/refind_linux.conf :
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/options, e.g. EFI shell, memtest, partitioning program, about, shutdown, reboot. We can choose which options to be visible in the menu.+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
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 in each entry. 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:+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
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 "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
-{{tag>howtos uefi efi boot slackware_administration author_aragorn2101 template}}+{{tag>howtos uefi efi boot slackware_administration author_aragorn2101}}
 howtos:slackware_admin:uefi_triple_boot_with_refind_on_slackware ()