RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1446418 - grub2 efidisk identifying cd/dvd drive as hd
Summary: grub2 efidisk identifying cd/dvd drive as hd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: grub2
Version: 7.6
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 7.7
Assignee: Bootloader engineering team
QA Contact: Release Test Team
URL:
Whiteboard:
: 1481668 1618351 (view as bug list)
Depends On:
Blocks: 1420851 1477664 1586275 1611917 1618351
TreeView+ depends on / blocked
 
Reported: 2017-04-27 23:58 UTC by brosser
Modified: 2022-03-13 14:16 UTC (History)
17 users (show)

Fixed In Version: grub2-2.02-0.78.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-06 12:02:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1299248 0 unspecified CLOSED grub2 reports "failure reading sector 0x0 from `hd4`" after choosing kernel 2022-03-13 14:00:01 UTC
Red Hat Knowledge Base (Solution) 3600941 0 None None None 2019-01-22 19:58:37 UTC
Red Hat Product Errata RHBA-2019:2014 0 None None None 2019-08-06 12:02:26 UTC

Description brosser 2017-04-27 23:58:14 UTC
Description of problem:

system occasionally fails to boot, displaying errors as follows:
"error: failure reading sector 0xfc1 from `hd0.
(error repeats over and over)
Press any key to continue...
"
pressing a key will not boot, and just repeats the above behavior.  Dropping to a grub command line fails at this point, as no actual commands are loaded/available.

This same behavior is referenced in the following bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1299248

It is believed that the efidisk.c file in grub2 is misidentifying the cdrom/dvdrom as a drive.  

By disabling the dvd drive in the efi bios, this error does not appear to present itself.

Fedora has applied the following patch in fc24:
commit b00e4c2bd9fd051678a8aadafa95ad14b3c866ba
Author: Andrei Borzenkov <address@hidden>
Date:   Fri Feb 26 21:44:37 2016 +0300

    efidisk: prevent errors from diskfilter scan of removable drives

 grub-core/disk/efi/efidisk.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/grub-core/disk/efi/efidisk.c b/grub-core/disk/efi/efidisk.c
index 1c00e3e..ea75344 100644
--- a/grub-core/disk/efi/efidisk.c
+++ b/grub-core/disk/efi/efidisk.c
@@ -547,7 +547,9 @@ grub_efidisk_read (struct grub_disk *disk, grub_disk_addr_t 
sector,
 
   status = grub_efidisk_readwrite (disk, sector, size, buf, 0);
 
-  if (status != GRUB_EFI_SUCCESS)
+  if (status == GRUB_EFI_NO_MEDIA)
+    return grub_error (GRUB_ERR_OUT_OF_RANGE, N_("no media in `%s'", 
disk->name));
+  else if (status != GRUB_EFI_SUCCESS)
     return grub_error (GRUB_ERR_READ_ERROR,
                       N_("failure reading sector 0x%llx from `%s'"),
                       (unsigned long long) sector,
@@ -568,7 +570,9 @@ grub_efidisk_write (struct grub_disk *disk, 
grub_disk_addr_t sector,
 
   status = grub_efidisk_readwrite (disk, sector, size, (char *) buf, 1);
 
-  if (status != GRUB_EFI_SUCCESS)
+  if (status == GRUB_EFI_NO_MEDIA)
+    return grub_error (GRUB_ERR_OUT_OF_RANGE, N_("no media in `%s'", 
disk->name));
+  else if (status != GRUB_EFI_SUCCESS)
     return grub_error (GRUB_ERR_WRITE_ERROR,
                       N_("failure writing sector 0x%llx to `%s'"),
                       (unsigned long long) sector, disk->name);
-- 
tg: (67dba97..) u/efi-no-media (depends on: master)

Fedora grub RPM with patch applied:  grub2-2.02-0.34.fc24



Version-Release number of selected component (if applicable):

RHEL 7.3 Workstation
3.10.0-514.10.2.el7.x86_64 #1 SMP
grub2-2.02-0.44.el7.x86_64
Drive Configuration:  Adaptec 885 RAID card.  RAID 1 - Micron 1100 512GB SSD
All drives have latest micron firmware.
Adaptec RAID card has latest firmware
Supermicro Bios has latest firmware.



How reproducible:

Customer applied patch similar to what's advised in bugzilla 1299248 and has not occurred since.  Prior to that, it would happen unexpectedly, but regularly.



Additional info:

Customer would like to know if this will be applied with all future grub2 rpms to prevent manual intervention after upgrades/updates.

Comment 3 Peter Jones 2018-06-04 14:42:52 UTC
*** Bug 1481668 has been marked as a duplicate of this bug. ***

Comment 15 Jan Stodola 2019-06-05 13:34:22 UTC
Purnendu Bhushan,
Fix for this problem is present in grub2-2.02-0.80.el7, which is present in RHEL-7.7 Beta. Since this bug is related to bug 1618351 reported by Dell, could you give it a try and report back if the problems reported in this bug and bug 1618351 are resolved for you?

Thank you,
Jan

Comment 16 Purnendu Bhushan 2019-06-14 03:11:53 UTC
Hi Jan,

I tried with RHEL 7.7and seem to be resolved.

Thanks 
Purnendu

Comment 17 Jan Stodola 2019-06-14 07:07:29 UTC
Thank you for your testing and feedback, Purnendu.

I'm moving this bug to VERIFIED.

Comment 18 Jan Stodola 2019-06-19 07:22:00 UTC
*** Bug 1618351 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2019-08-06 12:02:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2014


Note You need to log in before you can comment on or make changes to this bug.