rEFInd

On this page 7

rEFInd is a graphical boot manager for UEFI firmware that automatically scans attached disks for Linux kernels, other EFI boot loaders and operating systems, then presents them as icons in a menu. In Linux system initialization, it runs before the kernel, initramfs and init system, and its job ends when it hands control to the chosen loader or kernel.

rEFInd is a fork of the abandoned rEFIt project and is maintained by Roderick W. Smith under free software licenses. It is a boot manager rather than a full boot loader: it relies on the kernel’s own EFI stub or on another loader such as GRUB to do the actual loading, which keeps it small and flexible.

How rEFInd starts an operating system

rEFInd works by running as an EFI application stored on the EFI System Partition (ESP), typically as EFI/refind/refind_x64.efi. The firmware boot entry points to this file, and when the firmware launches it, rEFInd reads its configuration file refind.conf and starts scanning for bootable items.

During scanning, rEFInd looks for EFI boot loaders on every ESP, for Linux kernels with names such as vmlinuz-* on partitions it can read, and for legacy BIOS boot sectors when the firmware supports them. To read Linux file systems, it loads read-only EFI file system drivers for ext4, Btrfs and others from its drivers_x64 directory.

When the user selects a kernel, rEFInd launches it directly through the EFI stub loader built into modern Linux kernels, passing the kernel command line and the matching initramfs. The table below summarizes the stages of this process.

StageComponentResult
Firmware startUEFI firmware and NVRAM boot entryrefind_x64.efi is launched from the ESP
Configurationrefind.conf and theme filesTimeout, scan targets and appearance set
Driver loadingEFI file system driversext4, Btrfs or other partitions become readable
ScanningAuto-detection routinesKernels and loaders listed as menu icons
HandoffEFI stub or chained loaderKernel and initramfs take over
Stages of a rEFInd boot

Key configuration files and settings

rEFInd is configured through two levels of files: a global refind.conf on the ESP and optional per-kernel files named refind_linux.conf stored next to the kernels. Most systems need very little configuration, because automatic detection handles new kernels without regenerating any menu.

Setting or filePurposeExample value
timeoutSeconds before the default entry boots20
default_selectionEntry chosen when the timeout expiresvmlinuz or Microsoft
scanforTypes of items to detectinternal,external,optical,manual
menuentry stanzaManually defined boot entryCustom loader, initrd and options
refind_linux.confKernel command line options per kernel directoryroot=UUID=… rw quiet
includeLoads an extra file, often a themethemes/mytheme/theme.conf
Important rEFInd settings

The refind_linux.conf file holds one menu line per option set, such as a normal boot and a single-user rescue boot. rEFInd matches the initramfs to the kernel by version string in the file name, which works well with standard naming but fails when distributions use unusual names, a common source of boot errors.

rEFInd compared with other boot managers

rEFInd occupies a middle ground between minimal boot managers and full-featured boot loaders. GRUB can load kernels on BIOS and UEFI systems and has a scripting language, while systemd-boot is a minimal menu that requires kernels on the ESP or an extended boot partition.

ProgramFirmware supportKernel detectionKernel location
rEFIndUEFI onlyAutomatic scan at every bootAny partition it has a driver for
GRUBBIOS and UEFIGenerated by grub-mkconfigMost file systems
systemd-bootUEFI onlyBoot Loader Specification entriesESP or XBOOTLDR partition
SyslinuxBIOS and limited UEFIStatic configurationFAT, ext and ISO media
LILOBIOS onlyStatic map reinstalled after changesBlock lists on disk
Comparison of common Linux boot programs

The main advantage of rEFInd is zero-maintenance multi-boot: a new Linux kernel, a Windows installation or a USB installer appears automatically. The trade-off is that scanning adds a short delay on systems with many disks, and its graphical menu offers less pre-boot scripting than GRUB.

Installing rEFInd and using it with Secure Boot

rEFInd is usually installed with the refind-install script or a distribution package, which copies the files to the ESP and creates an NVRAM boot entry with efibootmgr. Manual installation remains possible, and on firmware that ignores NVRAM entries the file can be placed at the fallback path EFI/BOOT/bootx64.efi.

Secure Boot requires extra work, because rEFInd is not signed with the Microsoft key. Administrators either chain it through shim with a Machine Owner Key (MOK) or enroll their own keys and sign rEFInd, its drivers and every kernel. The decision table lists common setups.

SituationRecommended approachReason
Dual boot with Windows, Secure Boot offrefind-install with default optionsSimplest working configuration
Secure Boot must stay enabledUse shim and enroll a MOKFirmware trusts the shim signature
Kernels on encrypted rootKeep kernels on an unencrypted /bootEFI drivers cannot decrypt LUKS volumes
Firmware forgets boot entriesInstall to the fallback pathFirmware always tries EFI/BOOT
Older Mac hardwareInstall rEFInd with firmware quirks notedHandles Apple EFI behavior well
Choosing a rEFInd setup

Limitations and common rEFInd problems

rEFInd has clear limits: it cannot run on BIOS-only machines, its file system drivers are read-only and limited in coverage, and it does not read encrypted or most LVM volumes, so kernels must live where a driver can reach them. Typical failures and their fixes are listed below.

  • Kernel panic about the root file system: refind_linux.conf is missing or has a wrong root=UUID value.
  • Duplicate menu entries: rEFInd finds both the kernel and a GRUB loader; use dont_scan_dirs or dont_scan_files.
  • rEFInd disappears after an update: another installer reordered NVRAM entries; restore the order with efibootmgr.
  • Wrong initramfs loaded: kernel and initramfs names do not share a version string; add an explicit initrd option.

Understanding it simply

When a computer switches on, something has to decide which operating system to start. rEFInd is a friendly start menu that appears before any operating system. It looks through the computer’s disks, finds everything that can be started, and shows each option as a picture.

Its special skill is that it finds new systems by itself. Install another version of Linux or plug in a USB stick, and the new choice simply appears in the menu next time, with no setup. Once a choice is made, rEFInd steps aside and lets that system take over.

Applied in practice

A software developer uses a laptop with a single 1 TB NVMe drive shared by Windows 11 and Fedora. After every Fedora kernel update, the GRUB menu needed regenerating and occasionally lost the Windows entry, so the developer installs rEFInd with refind-install and sets timeout to 5 seconds.

On the next boot, rEFInd detects the Windows Boot Manager, two Fedora kernels and the Fedora GRUB loader. To remove clutter, the developer adds the GRUB directory to dont_scan_dirs and writes a refind_linux.conf with a normal and a rescue option, so each kernel shows two clear launch choices.

Over the following months, new Fedora kernels appear in the menu automatically and old ones vanish after removal. Because Secure Boot must stay enabled for company policy, the developer boots rEFInd through shim with an enrolled MOK, and the dual-boot setup requires no further maintenance.