bugGNU GRUB - Bugs: bug #41883, Booting from NVMe Device Enters...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41883: Booting from NVMe Device Enters GRUB rescue

Submitted by:  Vinayak Holikatti <vinholi>
Submitted on:  Mon 17 Mar 2014 10:22:35 AM UTC  
Votes:  100  
 
Category: InstallationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Vinayak Holikatti
Open/Closed: ClosedRelease: 
Release: 2.02~beta1Reproducibility: Every Time
Planned Release: None

Thu 03 Apr 2014 07:31:44 PM UTC, comment #4:

Patch committed.
The last problem is PEBKAC: you compiled upstream with path=/boot/grub and didn't have config file there.

Vladimir Serbinenko <phcoder>
Project Administrator
Tue 01 Apr 2014 01:09:38 PM UTC, comment #3:

Hi phcoder(Vladimir),

I have found also one thing i observed after booting. there were two grub directories grub and grub2. But grub.cfg was present inside grub2 folder. Hope this might help you further.

Thanks & Regards
Vinayak Holikatti

Vinayak Holikatti <vinholi>
Tue 01 Apr 2014 01:03:45 PM UTC, comment #2:

Hi phcoder(Vladimir),

The patch which you gave on 26th March, works partially. We applied the patch NVMe.diff and compiled the grub2-02-beta2. With the latest grub binaries we installed grub on NVMe device

#grub-install --boot-directory=/mnt/sysimage/boot /dev/nvme0n1

After rebooting and booting from NVMe device. It entered into grub prompt

grub>
grub>ls
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,mdos1)
grub>

After Manually Setting root, linux and initrd
we were able to boot Linux Fedora from NVMe device.

Thanks & Regards
Vinayak Holikatti

Vinayak Holikatti <vinholi>
Wed 26 Mar 2014 07:26:37 AM UTC, comment #1:

Please try attached patch

(file #31045)

Vladimir Serbinenko <phcoder>
Project Administrator
Mon 17 Mar 2014 10:22:35 AM UTC, original submission:

Hi All,

We have developed Legacy OptionROM for NVMe controller device. We are able to boot to all Windows 7 and later OS. But we are facing issue in booting Fedora 20 x86_64 OS. Fedora 20 gets installed successfully on NVMe device. While booting from NVMe device we are observing error as follows and enters grub rescue. boot to Fedora 20 OS from our controller.

"error : no such device: 44d1bf09-4e8a-4f46-aea6-09e364abf5cb.
Entering rescue mode...
grub_rescue>"

The ls command at grub_rescue shows as below
grub_rescue>ls
(hd0)

And set command output as below

grub_rescue>set
prefix = (hd0)/grub2
root = hd0

Earlier we have been seeking help from help-grub mailing list.

We got help from Jordan Uggla <jordan.uggla@gmail.com>. He has some insight on the problem as below

"It looks like the problem is as I expected, grub-install is treating /dev/nvme0n1p1 as a drive (not a partition), and is treating /dev/nvme01 as another drive, with no relation to /dev/nvme01p1.

From there, it realizes that you're doing a cross-disk install (though you're actually not) and so configures things for that case (searching for $prefix by UUID), and it also realizes that there is no partition table on /dev/nvme0n1p1 (because said device is a partition) and so expects that it will not need any partition modules at boot to read from it.

You can likely work around this problem therefore by running
"grub-install --modules=part_msdos /dev/nvme0n1", but please try grub 2.02 beta2 anyway (without --modules) and file a bug report if it fails, even if this works, because A: It's an ugly hack that could stop working at any time and B: It would be nice to have this working properly by 2.02 final."

We tried the solution which Jordan Uggla <jordan.uggla@gmail.com> suggested.

We tried to install grub after Linux FC20 Installation by using the below command line

"grub2-install --modules=part_msdos --boot-directory=/mnt/sysimage/boot /dev/nvme0n1"

With above workaround we are able to boot Linux Fedora 20. But Jordan expects this to work withour the workaround for grub 2.02 beta.

With Grub 2.02 beta we are still facing the issue to booting to NVMe device. Booting from NVMe device enters GRUB rescue prompt.

Vinayak Holikatti <vinholi>

 

Attached Files
file #31045:  nvme.diff added by phcoder (714B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by vinholi (Voted in favor of this item)
  • -unavailable- added by vinholi (Submitted the item)
  • -unavailable- added by vinholi
  • -unavailable- added by vinholi
  • -unavailable- added by vinholi
  • -unavailable- added by vinholi
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Apr 2014 07:31:44 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 26 Mar 2014 07:26:37 AM UTCphcoderAttached File-=>Added nvme.diff, #31045
    Thu 20 Mar 2014 09:27:31 AM UTCvinholiCarbon-Copy-=>Added vinholi
    Mon 17 Mar 2014 10:22:35 AM UTCvinholiCarbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1