Skip to content
← All posts

Notes

Dual-Booting Fedora and CachyOS with GRUB and Limine: A Step-by-Step Guide

November 23, 2026 · 21 min read

The problem I wanted to solve

I had Fedora and CachyOS installed on separate drives. Both operating systems were working, but they used different bootloaders:

  • Fedora used GRUB.
  • CachyOS used Limine.

To choose between them, I had to open the motherboard’s one-time boot menu during startup and select the drive or bootloader I wanted. That worked, but it was inconvenient.

I wanted a single menu to appear whenever the computer started. From that menu, I wanted to:

  1. Boot Fedora normally.
  2. Choose CachyOS and open its existing Limine menu.
  3. Keep Limine in charge of CachyOS’s own boot options, such as its regular and LTS kernels.

I also wanted to avoid reinstalling either operating system, replacing either bootloader, formatting partitions, or merging the two EFI System Partitions.

The solution was to keep Fedora’s GRUB as the primary boot menu and add a custom GRUB entry that chainloads CachyOS’s existing Limine EFI application.

This guide explains what that means, how to inspect your own setup, how to back up the relevant files, how to configure the entry, and how to test and recover safely.

Scope: This guide is for a UEFI dual-boot arrangement where Fedora uses GRUB and CachyOS uses Limine. The example is based on a working setup, but every computer has its own partition layout, UUIDs, EFI paths, firmware settings, and software versions. Do not copy machine-specific identifiers from another person’s tutorial.

What we are building

The finished boot sequence looks like this:

UEFI firmware
     |
     v
Fedora GRUB menu
     |
     +---- Select Fedora
     |         |
     |         v
     |      Fedora boots
     |
     +---- Select "CachyOS (Limine)"
               |
               v
         GRUB launches Limine
               |
               v
         CachyOS Limine menu
               |
               +---- Select regular CachyOS
               |
               +---- Select LTS kernel
               |
               +---- Select another Limine entry

This is called a nested boot menu. GRUB does not need to manage CachyOS’s kernels itself. It simply hands control to Limine, and Limine continues with its normal configuration.

The important distinction is that we are chainloading the EFI executable on CachyOS’s EFI System Partition, not trying to boot the CachyOS root partition directly.

Why use this approach?

There are several ways to choose between multiple operating systems.

Option 1: Use the motherboard’s one-time boot menu

This is the method I used before making the change. A key such as F12, F8, F11, or Esc may open the firmware’s boot-device menu, depending on the motherboard or computer.

  • Advantages: No Linux bootloader configuration is required. It is also useful for recovery and booting USB drives.
  • Disadvantages: You have to open it whenever you want to choose a different bootloader.

I kept this option available even after configuring GRUB.

Option 2: Change the UEFI boot order

UEFI firmware can usually be configured to start one bootloader by default.

  • Advantages: Simple, and it does not require a custom GRUB entry.
  • Disadvantages: It does not give you one menu containing both systems. You may still need the one-time boot menu to switch.

I did not need to change the firmware boot order for the nested-menu solution.

Option 3: Let GRUB detect the other operating system

GRUB can sometimes detect another Linux installation through tools such as os-prober. Depending on the distributions and bootloader arrangement, it may create a menu entry for the other system.

However, detecting a Linux root partition is not necessarily the same as launching the other installation’s existing bootloader. Since CachyOS uses Limine, I specifically wanted Fedora GRUB to launch Limine.

A message from grub2-mkconfig saying that another Linux installation was found is not proof that the desired Limine chainloading entry exists. Always inspect the generated configuration.

Option 4: Chainload Limine from GRUB — the method used here

This is the approach in this guide:

  • Fedora GRUB remains the first menu.
  • A custom GRUB entry finds CachyOS’s EFI System Partition by filesystem UUID.
  • GRUB launches the Limine EFI application stored on that partition.
  • Limine displays its own menu and boots CachyOS.

This lets both distributions retain their existing bootloaders and responsibilities.

Option 5: Use another boot manager

Tools such as rEFInd or systemd-boot may be appropriate for other setups. They have different configuration models and trade-offs.

Installing another boot manager is not automatically safer or simpler. If Fedora GRUB and CachyOS Limine already work, a small chainloading entry may be a less disruptive solution.


Before changing anything: understand your own installation

Do not start by editing GRUB. First identify how your computer currently boots.

The commands below are inspection commands. They are intended to read information, not change the boot configuration.

Step 1: Identify disks and partitions

Run:

lsblk -o NAME,SIZE,TYPE,FSTYPE,FSVER,LABEL,UUID,PARTUUID,MOUNTPOINTS

Identify these items:

  • Fedora’s EFI System Partition (ESP).
  • Fedora’s /boot partition or directory.
  • Fedora’s root filesystem.
  • CachyOS’s EFI System Partition.
  • CachyOS’s root filesystem.

The EFI System Partition is normally FAT32. It contains EFI applications that the firmware or another bootloader can launch.

Do not assume that your ESP is /dev/sda1, /dev/nvme0n1p1, or any other particular device. Device names vary between machines and can change. Use the output from your own computer.

Record the filesystem UUID of the CachyOS ESP. You will need it for the GRUB entry. Keep it private; there is no reason to publish it in a blog post or support request.

Step 2: Inspect the firmware boot entries

Run:

sudo efibootmgr -v

This displays the UEFI boot entries and the EFI file paths associated with them.

Look for entries associated with Fedora and CachyOS/Limine. The labels can vary, so inspect the EFI paths as well.

Do not delete entries or change BootOrder just because an entry looks unfamiliar. First understand what it launches.

Step 3: Check Fedora’s mountpoints

Run:

findmnt /
findmnt /boot
findmnt /boot/efi

On Fedora, /boot may be a separate partition, and the EFI System Partition is commonly mounted at /boot/efi. Your exact arrangement may differ.

This matters because the main GRUB configuration and the EFI files are not necessarily stored on the same partition.

Step 4: Inspect Fedora’s EFI files

If Fedora’s ESP is mounted at /boot/efi, inspect it with:

sudo find /boot/efi/EFI -maxdepth 4 -type f -print

This helps identify Fedora’s EFI boot files and vendor directory.

Step 5: Mount CachyOS’s ESP read-only and find Limine

Use the CachyOS ESP partition you identified in Step 1. Replace the placeholder below with your actual device.

sudo mkdir -p /run/cachy-esp
sudo mount -o ro /dev/CACHYOS_ESP_PARTITION /run/cachy-esp

Now inspect its EFI files:

sudo find /run/cachy-esp/EFI -maxdepth 5 -type f -print

For the setup this guide describes, the Limine EFI application was located at:

/EFI/limine/limine_x64.efi

Your Limine version or installation may use a different path. Use the exact path you found on your own ESP. Do not assume that this path exists just because it appears in this example.

You can also inspect the Limine configuration file without changing it:

sudo ls -lah /run/cachy-esp/
sudo find /run/cachy-esp -maxdepth 3 -iname 'limine.conf' -print

When inspection is finished, unmount the ESP and remove the temporary mountpoint:

sudo umount /run/cachy-esp
sudo rmdir /run/cachy-esp

The directory under /run is only a temporary mountpoint. It is not a new partition. /run is normally a temporary runtime filesystem, and unmounting detaches the ESP from that directory.

Mounting with -o ro makes this inspection read-only. There is no need to edit CachyOS’s Limine files for this method.

Step 6: Inspect Fedora’s GRUB configuration

Check the current settings:

sudo grep -nE 'GRUB_DEFAULT|GRUB_TIMEOUT|GRUB_TIMEOUT_STYLE|GRUB_ENABLE_BLSCFG' /etc/default/grub

Check the custom-entry file:

sudo cat /etc/grub.d/40_custom

Check the GRUB environment:

sudo grub2-editenv - list

On Fedora, the main generated GRUB configuration is commonly:

/boot/grub2/grub.cfg

Inspect its menu and BLS-related configuration:

sudo grep -nE 'menuentry|submenu|blscfg|chainloader' /boot/grub2/grub.cfg

Fedora commonly uses Boot Loader Specification (BLS) entries. If BLS is enabled, inspect:

findmnt /boot
sudo ls -lah /boot/loader/entries/
sudo find /boot/loader/entries -maxdepth 1 -type f -name '*.conf' -print

Do not assume every Fedora release or installation has precisely the same layout. The point is to establish that the existing Fedora kernel entries are present before changing GRUB.

Step 7: Check Secure Boot

You can inspect Secure Boot status with:

mokutil --sb-state

Not every installation has mokutil installed. You can also inspect the boot environment with:

bootctl status

UEFI chainloading can be affected by Secure Boot policy, signed EFI applications, firmware behavior, and how GRUB was built. A setup that works with Secure Boot disabled may not work the same way with it enabled.

Do not casually disable Secure Boot to make a tutorial work. Understand the security and signing implications for your own installation first.


Back up before editing

This is not an optional step. Bootloader configuration changes are usually small, but a typo or incorrect path can make the normal boot menu unusable.

I created a backup directory in my home folder before editing Fedora’s GRUB configuration. The backup contained copies of the relevant configuration files, the generated GRUB configuration, the EFI-side GRUB stub, and the GRUB environment file when present.

For a reusable guide, the backup should be made using the paths that actually exist on the current installation.

Step 1: Create a timestamped backup

The following is an example for a Fedora installation using the common paths shown in this guide. Check that each source file exists on your system before running it.

BACKUP="$HOME/grub-backup-$(date +%Y%m%d-%H%M%S)"

mkdir -p "$BACKUP/etc/grub.d" \
         "$BACKUP/boot/grub2" \
         "$BACKUP/boot/efi"

sudo cp -a /etc/default/grub "$BACKUP/etc/default-grub"
sudo cp -a /etc/grub.d/40_custom "$BACKUP/etc/grub.d/40_custom"

if [ -f /etc/grub.d/12_menu_auto_hide ]; then
    sudo cp -a /etc/grub.d/12_menu_auto_hide \
        "$BACKUP/etc/grub.d/12_menu_auto_hide"
fi

sudo cp -a /boot/grub2/grub.cfg "$BACKUP/boot/grub2/grub.cfg"

if [ -f /boot/efi/EFI/fedora/grub.cfg ]; then
    mkdir -p "$BACKUP/boot/efi/EFI/fedora"
    sudo cp -a /boot/efi/EFI/fedora/grub.cfg \
        "$BACKUP/boot/efi/EFI/fedora/grub.cfg"
fi

if [ -f /boot/grub2/grubenv ]; then
    sudo cp -a /boot/grub2/grubenv "$BACKUP/boot/grub2/grubenv"
fi

sudo chown -R "$USER":"$(id -gn)" "$BACKUP"
printf 'Backup saved at: %s\n' "$BACKUP"

This command assumes the Fedora paths shown above. If your Fedora installation uses different paths, adjust the commands after inspecting your system. Do not create fake files or directories just to make the example match.

The backup is stored in your home directory on the Fedora filesystem. That is convenient for restoring configuration, but it does not protect against failure of the same physical drive. For better protection, copy the backup directory to an external drive or another storage device.

Step 2: Confirm the backup exists

The command prints the backup location. Check it:

ls -lah "$BACKUP"
find "$BACKUP" -maxdepth 5 -type f -print

Keep the printed directory path. You will need it if you restore the backup.


Configure GRUB to launch Limine

Once the partitions and EFI path are understood and the backup exists, the actual configuration is small.

Step 1: Add a custom entry to /etc/grub.d/40_custom

Open the file:

sudo nano /etc/grub.d/40_custom

Keep the existing header and content. Add this entry at the end:

# Launch the existing CachyOS Limine bootloader
menuentry 'CachyOS (Limine)' --class os {
    insmod part_gpt
    insmod fat
    insmod chain
    search --no-floppy --fs-uuid --set=root CACHYOS_ESP_UUID
    chainloader /EFI/limine/limine_x64.efi
}

Now replace the two machine-specific values:

  1. Replace CACHYOS_ESP_UUID with the filesystem UUID of the CachyOS EFI System Partition that you identified with lsblk.
  2. Confirm that /EFI/limine/limine_x64.efi is the actual Limine EFI path on that partition. If your inspection found a different path, use that path instead.

The UUID must belong to the EFI partition, not the CachyOS root partition.

What each line does:

  • menuentry 'CachyOS (Limine)' creates a named menu item.
  • insmod part_gpt loads GPT partition support.
  • insmod fat loads FAT filesystem support for the ESP.
  • insmod chain loads GRUB’s chainloading support.
  • search --fs-uuid --set=root ... finds the ESP by its filesystem UUID and sets it as GRUB’s root.
  • chainloader ... asks GRUB to launch Limine’s EFI application from that partition.

The example assumes UEFI boot, a GPT partition table, a FAT EFI System Partition, and a GRUB build that supports EFI chainloading. It is not a universal recipe for legacy BIOS systems or every GRUB build.

Save the file and exit the editor.

Step 2: Configure the GRUB menu timeout

Open:

sudo nano /etc/default/grub

For a menu that stays visible for ten seconds, the relevant settings are:

GRUB_TIMEOUT=10
GRUB_TIMEOUT_STYLE=menu

If you want Fedora to remain the saved default, keep the existing:

GRUB_DEFAULT=saved

Do not replace an existing default with a guessed menu number. GRUB can store a saved entry, and distributions may identify entries differently.

Your file may contain other settings. Do not replace the entire file with this short example. Change only the settings you intend to change.

Step 3: Understand menu auto-hide behavior

Some Fedora installations include a script such as:

/etc/grub.d/12_menu_auto_hide

That script can influence whether the menu is hidden. The GRUB environment can also contain a menu_auto_hide variable.

Inspect the script and environment first:

sudo grep -nE 'menu_auto_hide|menu_hide_ok' /etc/grub.d/12_menu_auto_hide
sudo grub2-editenv - list

If your installation uses this mechanism and the menu is being hidden, you may need to remove the relevant environment variable:

sudo grub2-editenv - unset menu_auto_hide

Only run that command if you have confirmed that the variable is present and that you want the menu to remain visible. Do not assume every Fedora installation uses the same auto-hide behavior.

Step 4: Regenerate Fedora’s GRUB configuration

On Fedora, the common command is:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Do not run a GRUB generation command with an output path copied from another distribution. Confirm the correct path for your installation first.

The command may print messages about detected operating systems or firmware settings. Treat those messages as clues, not proof that the desired menu entry is correct.

Step 5: Inspect the generated entry

Check that the custom entry appears:

sudo grep -n -A8 -B2 'CachyOS (Limine)' /boot/grub2/grub.cfg

You should see the menu entry with the UUID and Limine EFI path you configured.

Check the timeout:

sudo grep -nE 'timeout_style|set timeout=' /boot/grub2/grub.cfg

Check the saved GRUB environment:

sudo grub2-editenv - list

If Fedora uses BLS, confirm that its kernel entries are still present:

findmnt /boot
sudo ls -lah /boot/loader/entries/
sudo find /boot/loader/entries -maxdepth 1 -type f -name '*.conf' -print
sudo grep -n -A5 -B5 'blscfg' /boot/grub2/grub.cfg

Step 6: Check GRUB configuration syntax

Run:

sudo grub2-script-check /boot/grub2/grub.cfg

A successful check means the generated GRUB configuration passed this syntax check.

It does not prove that the EFI partition will be found at boot, that the Limine executable will launch, or that CachyOS will start. The real test is a reboot.


Test the boot menu carefully

Before rebooting:

  1. Save all open work.
  2. Close applications.
  3. Make sure you know how to open the motherboard’s one-time boot menu.
  4. Keep your backup location available.

Then restart.

Test 1: Does the Fedora GRUB menu appear?

The menu should remain visible for the timeout you configured.

Check that the Fedora entries and the new CachyOS (Limine) entry are visible.

Test 2: Does the CachyOS entry launch Limine?

Select:

CachyOS (Limine)

The expected result is that Fedora GRUB hands control to the Limine EFI application on the CachyOS ESP.

You should then see the normal CachyOS Limine menu. Choose the normal CachyOS boot option and confirm that the system starts.

Test 3: Does Fedora still boot?

Restart again. Let the timeout expire or select Fedora explicitly.

Confirm that Fedora boots normally and that its kernel entries remain available.

If the Limine entry fails

Do not immediately reinstall GRUB, reinstall Limine, format an EFI partition, or change random firmware settings.

Instead:

  1. Restart the computer.
  2. Open the firmware’s one-time boot menu.
  3. Select the existing Limine/CachyOS boot entry directly, if it is available.
  4. Check whether CachyOS starts independently.

If direct Limine boot works but the GRUB entry does not, the issue is likely in the handoff configuration: the ESP UUID, EFI path, GRUB support, or firmware/Secure Boot behavior.

If direct Limine boot also fails, investigate the CachyOS bootloader or firmware entry separately. Avoid making several changes at once.


How to restore the backup

If the new GRUB menu does not behave as expected but Fedora still boots, you can remove the custom entry by restoring the original configuration files.

First, identify the backup directory you created. For example:

ls -lah "$HOME"/grub-backup-*

Set BACKUP to the exact directory you want to restore:

BACKUP="$HOME/grub-backup-YYYYMMDD-HHMMSS"

Replace the placeholder with the real directory name.

Restore the original source files:

sudo cp -a "$BACKUP/etc/default-grub" /etc/default/grub
sudo cp -a "$BACKUP/etc/grub.d/40_custom" /etc/grub.d/40_custom

If the backup contains the menu-auto-hide script and you changed that script, restore it too:

if [ -f "$BACKUP/etc/grub.d/12_menu_auto_hide" ]; then
    sudo cp -a "$BACKUP/etc/grub.d/12_menu_auto_hide" \
        /etc/grub.d/12_menu_auto_hide
fi

Regenerate the configuration:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Then inspect the generated file and reboot when you are ready.

What about the backed-up grub.cfg, EFI stub, and grubenv?

The backup includes these files for reference and recovery, but do not blindly overwrite the current generated configuration with an old copy. In normal circumstances, restoring the source files and regenerating grub.cfg is preferable.

The GRUB environment file (grubenv) stores state such as the saved default entry. Restore it only if you specifically need to recover that state and have confirmed that the backup belongs to this same installation:

sudo cp -a "$BACKUP/boot/grub2/grubenv" /boot/grub2/grubenv

Do not run this if the backup does not contain the file.

The EFI-side Fedora GRUB stub should only be restored if it was actually changed and you have confirmed that the backup corresponds to the same installation and EFI layout.

What if Fedora GRUB cannot start at all?

Restoring files from Fedora’s home directory is not possible if you cannot access that installation. Use the firmware’s one-time boot menu to try the existing CachyOS Limine entry. If necessary, boot a Linux live USB and diagnose the Fedora boot setup from there.

A live USB recovery process depends on the distribution and partition layout. Do not run generic grub-install, formatting, or partition commands without first identifying the installation and understanding the effect of each command.


What I misunderstood and what I learned

This process taught me a few important things about Linux booting.

1. Finding another OS is not the same as launching its bootloader

A tool may detect another Linux root filesystem without creating the exact menu entry I want. My goal was not simply to make Fedora GRUB list CachyOS kernels. I wanted GRUB to launch CachyOS’s own Limine menu.

That distinction determined the solution.

2. A successful configuration-generation message is not enough

grub2-mkconfig can report that another operating system was found. That does not prove the custom chainloading entry is present or correct.

I had to inspect the generated grub.cfg and confirm the entry explicitly.

3. A syntax check is not a real boot test

grub2-script-check can confirm that the configuration syntax is valid. It cannot prove that the firmware and GRUB will successfully find and launch Limine.

Only an actual reboot test can verify the complete handoff.

4. A temporary mountpoint is not a new partition

I initially wondered whether creating a directory under /run would permanently consume disk space. A mountpoint is just a directory used to access a filesystem. The actual EFI partition remains the same partition. After unmounting it, the empty temporary directory can be removed.

5. Boot layouts are not universal

Fedora’s /boot, its EFI System Partition, and its root filesystem may be separate. Other distributions may use different layouts. The same is true of EFI paths and bootloader configuration files.

That is why identifying mountpoints, UUIDs, and actual EFI files before editing is essential.

6. The smallest change is often easier to reason about

I did not need to install another GRUB, replace Limine, merge EFI partitions, or change the UEFI boot order. The existing bootloaders were already working. Adding a single custom handoff entry was enough.


How independent are Fedora and CachyOS after this change?

Both operating systems keep their own root filesystems and their own bootloader files. CachyOS Limine continues to manage CachyOS’s kernel choices and its own configuration.

However, the convenient nested startup path depends on Fedora GRUB:

  • The normal startup path begins with Fedora GRUB.
  • The CachyOS menu item depends on the custom Fedora GRUB entry.
  • If Fedora’s drive or GRUB becomes unavailable, that nested menu will not be available through the normal path.
  • CachyOS may still be bootable directly through its own UEFI firmware entry or fallback EFI path, provided those files and firmware entries remain intact.

This is not the same as having two completely independent menus presented by the firmware. It is one primary menu that can hand control to a secondary bootloader.

For that reason, keep the motherboard’s one-time boot menu available as a recovery route. Do not remove CachyOS’s existing firmware boot entry just because the nested menu works.


Reusable checklist for a new computer or a future OS change

Before editing

  • Confirm that the computer is booting in UEFI mode.
  • Identify which bootloader each distribution uses.
  • Identify the EFI System Partition for each operating system.
  • Record the relevant filesystem UUIDs privately.
  • Find the actual Limine EFI executable on the CachyOS ESP.
  • Identify Fedora’s actual GRUB configuration path.
  • Determine whether /boot is separate from the ESP.
  • Check whether Fedora uses BLS entries.
  • Check Secure Boot status and compatibility.
  • Inspect existing UEFI firmware boot entries.
  • Back up the relevant configuration files.
  • Keep a recovery route available.

While configuring

  • Edit /etc/grub.d/40_custom, not the generated grub.cfg directly.
  • Use the UUID of the CachyOS EFI partition, not its root partition.
  • Use the Limine EFI path found on your own system.
  • Set GRUB menu visibility and timeout intentionally.
  • Preserve the intended Fedora default entry.
  • Regenerate GRUB configuration using the correct Fedora command and path.
  • Inspect the generated configuration for the custom entry.
  • Run the syntax checker.
  • Confirm Fedora’s kernel entries are still present.

After configuring

  • Confirm the Fedora GRUB menu appears.
  • Confirm the CachyOS (Limine) entry is visible.
  • Confirm that selecting it launches Limine.
  • Confirm that CachyOS boots.
  • Confirm that Fedora still boots normally.
  • Keep the backup and recovery route until the new arrangement has been tested successfully several times.

Common mistakes to avoid

  1. Do not copy UUIDs or disk names from someone else’s guide.
  2. Do not assume a particular /dev/... device is the CachyOS ESP.
  3. Do not point the chainloader at the CachyOS root partition.
  4. Do not edit generated grub.cfg directly when Fedora provides source configuration files.
  5. Do not run grub-install merely to add a menu entry. Reinstalling a bootloader is a different operation.
  6. Do not format, recreate, or merge EFI partitions just to make a nested menu.
  7. Do not delete existing UEFI boot entries without understanding their purpose and having a recovery plan.
  8. Do not assume that successful configuration generation means the computer will boot.
  9. Do not change Secure Boot settings casually.
  10. Do not rely only on a backup stored on the same physical drive.

Final thoughts

The main lesson for me was that I did not need to replace a working system to improve my dual-boot experience.

Fedora already had GRUB. CachyOS already had Limine. I only needed Fedora GRUB to hand control to CachyOS’s existing Limine EFI application.

The result is a nested boot menu: Fedora GRUB is the first menu, and selecting CachyOS opens Limine, which continues to manage CachyOS.

This approach can be useful when two UEFI Linux installations already have working bootloaders and you want one convenient startup menu without replacing either one. It is not right for every computer; the correct method depends on firmware mode, partition layout, bootloader type, Secure Boot policy, and distribution-specific configuration.

My recommendation is simple: inspect first, back up, make the smallest possible change, validate the generated configuration, and test the actual boot process.