Uefi CentOS 8 installation becomes unbootable

Issues related to applications and software problems and general support
Post Reply
User avatar
javajox
Posts: 25
Joined: 2019/10/11 10:08:05
Location: Internet
Contact:

Uefi CentOS 8 installation becomes unbootable

Post by javajox » 2019/10/27 13:35:01

I have a CentOS 8 system installed in "efi" mode, it has /boot/efi partition.
I modified "/etc/default/grub", for the key GRUB_CMDLINE_LINUX I removed "rhgb quiet"

So the content of /etc/default/grub is
------------------------------------------------------------------
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto resume=UUID=b20a03fa-67ef-4aa0-85c2-f5d3cd1921f5"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
------------------------------------------------------------------
Next (since I'm using efi) I did : # grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
The output was :
Generating grub configuration file ...
done

Next, I rebooted the system, and the system became unbootable, no grub prompt, just the bios message saying to insert a bootable disk

Any idea ?

nouvo09
Posts: 184
Joined: 2009/09/19 19:21:36
Location: Paris, France

Re: Uefi CentOS 8 installation becomes unbootable

Post by nouvo09 » 2019/10/27 16:19:36

After modifying this file did you rebuild grub.cfg ??
Member of centos-FR forum

User avatar
javajox
Posts: 25
Joined: 2019/10/11 10:08:05
Location: Internet
Contact:

Re: Uefi CentOS 8 installation becomes unbootable

Post by javajox » 2019/10/27 20:06:41

nouvo09 wrote:
2019/10/27 16:19:36
After modifying this file did you rebuild grub.cfg ??
As I said in the first post, I did : grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

nouvo09
Posts: 184
Joined: 2009/09/19 19:21:36
Location: Paris, France

Re: Uefi CentOS 8 installation becomes unbootable

Post by nouvo09 » 2019/10/27 22:36:04

the bootloader has probably been removed.

So you have to boot with the install media, select troubleshooting

choose to repair Centos8, At the prompt, type chroot /mnt/sysimage

then

grub2-install /dev/sda

you're done. Type exit twice, the system will reboot.
Member of centos-FR forum

User avatar
javajox
Posts: 25
Joined: 2019/10/11 10:08:05
Location: Internet
Contact:

Re: Uefi CentOS 8 installation becomes unbootable

Post by javajox » 2019/10/28 08:39:35

yes, I fixed it, but the problem remains why this happened and won't it happen again ?

nouvo09
Posts: 184
Joined: 2009/09/19 19:21:36
Location: Paris, France

Re: Uefi CentOS 8 installation becomes unbootable

Post by nouvo09 » 2019/10/28 10:49:56

Everything can happen someday. This essential is to be prepared and know how to fix it.

There is no reply to your question or there are pleinty, up to you.
Member of centos-FR forum

Post Reply