Grub2 identified the DVD as a HDD causing boot failures
Issue
During kickstart grub2-mkconfig recognized the DVD as another hard drive, configuring it as hdX.
- After removing the CD/DVD and booting the system it has the following error:
error: disk `hd0,gpt2' not found.
error: you need to load the kernel first.
- Running the ls command from the grub terminal shows that hd0 is actually the CD/DVD and hd1 is the HDD.
In grub terminal, the ls grub command returns these errors when no CD/DVD is present:
error: failure reading sector 0xe0 from hd0
error: failure reading sector 0x0 from hd0
Rerunning the grub2-install command does not provide relief even if there is no DVD in the dvdrom drive.
Environment
- Red Hat Enterprise Linux 7.4
- Red Hat Enterprise Linux 7.5
- Red Hat Enterprise Linux 7.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.