CentOS7 removable hard disk issue

General support questions
Post Reply
donw35
Posts: 2
Joined: 2018/03/21 04:44:02
Location: Los Angeles
Contact:

CentOS7 removable hard disk issue

Post by donw35 » 2018/03/21 05:44:24

my test system has removable SSD that I used to switch to different OS's, Windows and CentOS7, if I install CentOS7 it boots and all is fine, if I put the Windows 10 SSD in the system it boots fine, when I put the CentOS7 SSD back in the system it does not boot and I get an error..

Failed to open \EFI\BOOT\grubx64.efi = Not Found
Failed to load image \EFI\BOOT\grubx64.efi: Not Found
start_image() returned Not Found

I tried grub2 repairs by booting in rescue mode but that doesn't work, I am sure this is a known issue but I am a Lunix CentOS7 noob.

Thanks for the help
HP 800 G1, CentOS7 and SPLUNK

donw35
Posts: 2
Joined: 2018/03/21 04:44:02
Location: Los Angeles
Contact:

Re: CentOS7 removable hard disk issue

Post by donw35 » 2018/03/31 20:53:26

So its a GRUB2 problem as I see it happening on Ubuntu as well. I guess I am the only with this problem
HP 800 G1, CentOS7 and SPLUNK

marthyr
Posts: 5
Joined: 2015/07/06 20:59:49
Location: México City
Contact:

Re: CentOS7 removable hard disk issue

Post by marthyr » 2018/04/06 07:54:30

Hello,

1. Need to boot a Centos Installation USB/disc
2. Do repair system option
3. Identify your boot partition with gdisk /dev/sdX (the one with EF00 id code)
4. chroot /mnt/sysimage
5. #efibootmgr -c -L Centos 7 -d /dev/sdX -p# (# from step 3) -l \\EFI\\"centos"\\shim.efi ("centos" could be different)

Hope helps... works for me.

Post Reply