# Dual boot Rocky help

**URL:** <https://forums.rockylinux.org/t/dual-boot-rocky-help/16983>\
**Category:** Rocky Linux Help & Support\
**Created:** [December 24, 2024, 2:22am UTC](https://forums.rockylinux.org/t/dual-boot-rocky-help/16983 "2024-12-24T02:22:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![End](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@End](https://forums.rockylinux.org/u/End)\
**Post date:** [December 24, 2024, 2:22am UTC](https://forums.rockylinux.org/t/dual-boot-rocky-help/16983/1 "2024-12-24T02:22:51Z")

</div>

Hello  
I am wondering if it’s possible to dual boot two separate rocky installations?  
I am happily running windows and R9 menu entries in grub2 with UEFI

But I cant run two linux distributions. If I install rocky 9, say on sda, and then on a separate HD sdb I install another rocky, I can get both the menu entries by runnig grub2-mkconfig - but the second linux only boots into emergency mode - not the full x/gui system

The workaround is to hit F11 on boot and select either hard drive in the bios menu to boot into the rocky install I want.

Is there a way to have two rocky installs on two separate drives, working within the same grub menu?

---

<div class="post-metadata">

**Author:** ![jbkt23](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jbkt23](https://forums.rockylinux.org/u/jbkt23)\
**Post date:** [December 24, 2024, 1:02pm UTC](https://forums.rockylinux.org/t/dual-boot-rocky-help/16983/2 "2024-12-24T13:02:02Z")

</div>

Yes it is possible to dual boot the same version of Rocky9. But each install has to have its own esp partition otherwise the last one installed overwrites the previous same name rocky9 folder. Assuming you have separate esp’s then the next thing is that the menu listing in the grup menu for the second system in its list may list the rescue kernel as the first option. You can check each entry by entering “e” to see what kernel it is booting.  
I only dual boot for testing purposes as kernel updates and maintaining the grub menu entries for each becomes very tedious.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [December 24, 2024, 10:19pm UTC](https://forums.rockylinux.org/t/dual-boot-rocky-help/16983/3 "2024-12-24T22:19:32Z")

</div>

> [@End](#):
>
> The workaround is to hit F11 on boot and select either hard drive in the bios menu to boot into the rocky install I want.
> 
> Is there a way to have two rocky installs on two separate drives, working within the same grub menu?

> [@jbkt23](#):
>
> each install has to have its own esp partition otherwise the last one installed overwrites the previous same name rocky9 folder.

Yes, the first point is the ESP. Each vendor has its own subdir in ESP, but two Rocky are not two different vendors. Having two drives allows two ESP, since each drive can have at most one.

The “F11 on boot” gives you list of entries recorded in UEFI, pointing to bootloaders on ESP(s).  
That does not solve the OP issue, but is a necessity.

* * *

The next step is a `/boot` for each system. One holds kernel, initramfs, and GRUB config for one system.

What I would do is _disable_ os-probing. We do not want `grub2-mkconfig` to sniff other installed systems if/when you use it to recreate grub.cfg. what I would do, is create `custom.cfg` in the same directory as the `grub.cfg` (the `/boot/grub2/`in el9) for the distro that is UEFI default. Then add GRUB menu entry that _chainloads_ the bootloader of the other OS.

* * *

Summary: UEFI loads GRUB #1. GRUB #1’s menu has entry “Other” (in addition to other stuff for OS #1). If chosen, it chainloads GRUB #2. GRUB #2’s menu has the normal options of the OS #2.

---

<div class="post-metadata">

**Author:** ![jbkt23](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jbkt23](https://forums.rockylinux.org/u/jbkt23)\
**Post date:** [December 24, 2024, 11:24pm UTC](https://forums.rockylinux.org/t/dual-boot-rocky-help/16983/4 "2024-12-24T23:24:49Z")

</div>

> [@jlehtone](#):
>
> Yes, the first point is the ESP. Each vendor has its own subdir in ESP, but two Rocky are not two different vendors. Having two drives allows two ESP, since each drive can have at most one.

I have 3 on the same drive that I use, 1) for windows, 2) for one fedora install, 3) for another fedora install. There is no limit to the number of esp’s you can have. The UEFI scans them all and aggregates them. Depending on your mother board having esp’s on separate partitions can be simple or painful. Creating a chain load setup is another option but I have never done it nor had the need.

```auto
lsblk -o name,fstype,mountpoint
NAME FSTYPE MOUNTPOINT
nvme0n1             
├─nvme0n1p1 vfat   
├─nvme0n1p2         
├─nvme0n1p3 ntfs   
├─nvme0n1p4 vfat /boot/efi
├─nvme0n1p5 swap [SWAP]
├─nvme0n1p6 ext4 /home
├─nvme0n1p7 ext4 /data
├─nvme0n1p8 ext4 /
├─nvme0n1p9 ext4   
└─nvme0n1p10 vfat   

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [February 22, 2025, 11:25pm UTC](https://forums.rockylinux.org/t/dual-boot-rocky-help/16983/5 "2025-02-22T23:25:15Z")

</div>

Closed on February 22, 2025, 11:25pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
