# rEFInd

rEFInd will automatically find your EFI System Partition (ESP) while installation.

TIP

So if you need more options like --alldrivers, feel free to check them with man.

Execute refind-install script with --root flag to install it from a "live CD" or other emergency system,

NB

Your /boot partition should be mounted.

Run the script:

refind-install

# rEFInd kernel options

You should place your refind_linux.conf file in the same directory as your kernel. And the basic config to run the system could look like this:

## This file should be present in the same directory as the EFISTUB kernel and initramfs files
## More info at http://www.rodsbooks.com/refind/linux.html , http://www.rodsbooks.com/efi-bootloaders/efistub.html

"Boot with defaults"    	"root=PARTUUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX rootfstype=ext4 rw add_efi_memmap initrd=/intel-ucode.img initrd=/initramfs-linux.img"

WARNING

Notice that you can put custom kernel options here, e.g.: I'm using acpi_osi=! acpi_osi="Windows 2009" acpi_backlight=native for my Zenbook Pro UX501VM because of known Nvidia issue. And nmi_watchdog=0 to disable watchdog for the energy savings.

There are several ways to find out your PARTUUID, one of them is:

blkid -s PARTUUID -o value /dev/sdxY #Where 'x' is the disk letter and 'Y' is the partition number.

Also, to set the default boot OS based on the loader's title, which appears in the main menu beneath the icons when you select the loader by uncommenting or adding:

default_selection "+,vmlinuz"

WARNING

For novice linux users it's better to learn more about kernel and re-check how to pass parameters in rEFInd.

# rEFInd customization

If you still want to install rEFInd with minimal theme. Here is how you can do that.

pacman -S refind-efi

img

As you saw on the picture, you have ability to use themes in rEFInd. I can recommend refind-minimal as a minimalistic and beautiful theme. You will setup git in the next steps.

  • Create a folder called themes in the same directory with refind.conf:
mkdir themes
cd themes
  • Clone theme repository:
git clone https://github.com/EVanPurkhiser/rEFInd-minimal.git
  • To enable the theme add this in the end of refind.conf:
include themes/rEFInd-minimal/theme.conf