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.
| Stage | Component | Result |
|---|---|---|
| Firmware start | UEFI firmware and NVRAM boot entry | refind_x64.efi is launched from the ESP |
| Configuration | refind.conf and theme files | Timeout, scan targets and appearance set |
| Driver loading | EFI file system drivers | ext4, Btrfs or other partitions become readable |
| Scanning | Auto-detection routines | Kernels and loaders listed as menu icons |
| Handoff | EFI stub or chained loader | Kernel and initramfs take over |
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 file | Purpose | Example value |
|---|---|---|
| timeout | Seconds before the default entry boots | 20 |
| default_selection | Entry chosen when the timeout expires | vmlinuz or Microsoft |
| scanfor | Types of items to detect | internal,external,optical,manual |
| menuentry stanza | Manually defined boot entry | Custom loader, initrd and options |
| refind_linux.conf | Kernel command line options per kernel directory | root=UUID=… rw quiet |
| include | Loads an extra file, often a theme | themes/mytheme/theme.conf |
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.
| Program | Firmware support | Kernel detection | Kernel location |
|---|---|---|---|
| rEFInd | UEFI only | Automatic scan at every boot | Any partition it has a driver for |
| GRUB | BIOS and UEFI | Generated by grub-mkconfig | Most file systems |
| systemd-boot | UEFI only | Boot Loader Specification entries | ESP or XBOOTLDR partition |
| Syslinux | BIOS and limited UEFI | Static configuration | FAT, ext and ISO media |
| LILO | BIOS only | Static map reinstalled after changes | Block lists on disk |
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.
| Situation | Recommended approach | Reason |
|---|---|---|
| Dual boot with Windows, Secure Boot off | refind-install with default options | Simplest working configuration |
| Secure Boot must stay enabled | Use shim and enroll a MOK | Firmware trusts the shim signature |
| Kernels on encrypted root | Keep kernels on an unencrypted /boot | EFI drivers cannot decrypt LUKS volumes |
| Firmware forgets boot entries | Install to the fallback path | Firmware always tries EFI/BOOT |
| Older Mac hardware | Install rEFInd with firmware quirks noted | Handles Apple EFI behavior well |
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.