Hi all, I’m new to Rocky Linux and this is my first time installing linux as a second OS on a host, so probably a newbie question but I’d appreciate any help!
I am trying to install Rocky Linux to dual-boot alongside my current Windows 10 installation. Here’s what I’ve done so far:
- I made 200GB of space available on my SSD before the installation
- I turned off fast-startup in the power options in Windows 10, secure boot is disabled on motherboard.
- I used etcher to flash the x86-64 dvd ISO of Rocky Linux 9.3 to a USB stick, then booted the installation from that USB.
- I installed Rocky Linux using automatic storage config, installing from local media (USB), and connecting to network through ethernet.
The installation was successful, and Rocky Linux appears fully functional, but the GRUB menu does not show my Windows 10 OS as an option. In fact, when I run os-prober in Rocky Linux, nothing is returned. From other forum posts I see that this points to a mismatch between BIOS/UEFI firmware options between the two operating systems, and from further investigation, I think that is what is going on:
from my linux terminal:
fdisk -l
Disk /dev/sdb: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: SPCC Solid State
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: <GUID>
Device Start End Sectors Size Type
/dev/sdb1 2048 1085439 1083392 529M Windows recovery environment
/dev/sdb2 1085440 1288191 202752 99M EFI System
/dev/sdb3 1288192 1320959 32768 16M Microsoft reserved
/dev/sdb4 1320960 1580978175 1579657216 753.2G Microsoft basic data
/dev/sdb5 1580978176 1580980223 2048 1M BIOS boot
/dev/sdb6 1580980224 1583077375 2097152 1G Linux filesystem
/dev/sdb7 1583077376 1599496191 16418816 7.8G Linux swap
/dev/sdb8 1599496192 1746296831 146800640 70G Linux filesystem
/dev/sdb9 1746296832 2000408575 254111744 121.2G Linux filesystem
ls /sys/firmware/efi
ls: cannot access '/sys/firmware/efi': No such file or directory
So to me it looks like linux is using BIOS and Windows is using UEFI.
I know I have to fix this mismatch, and I think the appropriate action is to reinstall Rocky Linux using UEFI rather than reinstall windows to BIOS somehow.
I read that UEFI/BIOS boot configuration is done in the motherboard config. I am using an ASRock Phantom Gaming 4 X570 motherboard, and the advice I found for changing this is set CSM (Compatibility Support Mode)
to disabled (it was set to enabled during the installation). After I did this, the system couldn’t even find any OS’s to boot, so it definitely did something.
Right now I am thinking that I will erase the volumes on my SSD that have linux or BIOS info on them, and try to reinstall the Rocky Linux OS with the CSM setting set to “Disabled” on my motherboard. I’m hoping this will at least give me the option to opt for installation using UEFI, but I can’t find any info on how to ensure that.
Please let me know if you have any other recommendations to help me resolve the issue.
Thank you!