-1

I have installed Centos Stream 9 on a new hard drive. After running sudo update-grub from my ubuntu 20.04 system, an entry got created in the grub. However when i try to select the entry from the startup menu it gives me error error file /boot/linuz-xx not found you need to load kernel first

From the grub menu when I run the command ls (hd0,gpt3) it gives me no known file system detected. However I am able to see all the other folders of other OS (manjaro) on other drives.

When I change the Boot order in BIOS and set the Centos HDD as the first one I am able to login without issues.

Is there a way I can fix this issue?

below is the output of command lsblk -f

sda
├─sda1      vfat                 
├─sda2      xfs                  
└─sda3      LVM2_member          
  ├─cs-swap swap                 
  ├─cs-home xfs                  
  └─cs-root xfs                  
sdb
├─sdb1      vfat        
└─sdb2      ext4        
nvme1n1
├─nvme1n1p1 ntfs        
├─nvme1n1p2 vfat        
├─nvme1n1p3
└─nvme1n1p4 ntfs        
nvme0n1
├─nvme0n1p1 vfat        
└─nvme0n1p2 ext4

1 Answers1

-1

I think you may be able to fix this issue using OS-Prober.

As This article explains, open a Terminal and do

sudo apt install os-prober

(it should be preinstalled but I suggest you do it anyways), followed by a

sudo os-prober

. You should get a message that a centos partition was found in /dev/xxx. Then simply mount that partition by using

sudo mkdir /mnt/centos
sudo mount /dev/xxx /mnt/centos

. Now just update your GRUB config by using

sudo grub-mkconfig -o /path/to/your/grub/config (for example /boot/grub/grub.cfg)

and reboot.

I hope I could help you with this one.

Greetings, Eric

Letsric
  • 82