Red Hat Bugzilla – Bug 1227194
use "p" as delimiter for NVMe devices
Last modified: 2018-04-27 06:41:13 EDT
Created attachment 1033604 [details] use "p" as delimiter for NVMe devices Description of problem: Install grub on a partitioned nvme device failed with "No such partition" reported. It's because grub install determines the NVMe device partition as /dev/nvme0n11 instead of /dev/nvme0n1p1, since it doesn't use "p" as the delimiter. Version-Release number of selected component (if applicable): grub-0.97-94 How reproducible: Always Steps to Reproduce: Install grub on a partitioned nvme device failed. # grub --device-map=/opt/oracle.cellos/tmpl/usbMap_nvme --verbose Attempt to open drive 0x80 (/dev/nvme0n1) Attempt to open drive 0x81 (/dev/nvme1n1) grub> root (hd0,0) root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0) setup (hd0) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... yes Checking if "/grub/stage2" exists... yes Checking if "/grub/e2fs_stage1_5" exists... yes Running "embed /grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal) Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal) Running "install /grub/stage1 (hd0) /grub/stage2 p /grub/grub.conf "... failed Error 22t: No such partition Actual results: grub install failed Expected results: succeed Additional info: I made a patch to fix it attached.
Hello, can you please try if grub-install works instead of running grub shell? If not, then we can try to fix grub-install script. If it works, please use grub-install, instead of the grub shell.
Still no reply from the reporter, moving this to RHEL-6.10.
I ran into the same problem, and 'grub-install' did not work for me either. I had to make a private version of the package using the patch the reporter provided, which then worked.
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available. The official life cycle policy can be reviewed here: http://redhat.com/rhel/lifecycle This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com/