public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] NVMe drive and grub
@ 2016-04-07 15:24 peter
  2016-04-07 15:56 ` Jeremi Piotrowski
  2016-04-07 17:41 ` [gentoo-user] " Remy Blank
  0 siblings, 2 replies; 21+ messages in thread
From: peter @ 2016-04-07 15:24 UTC (permalink / raw
  To: gentoo-user

Hello list,

I have a new box with an NVMe SSD drive attached to the PCI bus via an M.2 interface. The drive shows up as /dev/nvme0n1, with partitions /dev/nvme0n1p1, /dev/nvme0n1p2, ... 

After following the instructions in the handbook for a UEFI system, I get as far as a kernel panic. Grub finds the kernel and starts it, but it seems to be passing a null root device name.

Can anyone offer some advice to help me get past this?

A few pints of Wainwright go to the winner. Conditions apply  :-)

Rgds
Peter







^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [gentoo-user] NVMe drive and grub
@ 2016-04-08 15:32 peter
  2016-04-08 17:26 ` Poison BL.
  0 siblings, 1 reply; 21+ messages in thread
From: peter @ 2016-04-08 15:32 UTC (permalink / raw
  To: gentoo-user

Poison BL. <poisonbl@gmail.com> wrote :

> On Fri, Apr 8, 2016 at 8:21 AM, Peter Humphrey peter@prh.myzen.co.uk>
> wrote:
> > On Thursday 07 April 2016 17:56:55 Jeremi Piotrowski wrote:
> >>   What is in your grub.conf? Have you thought about adding an
> >> initramfs and letting it drop you to its rescue shell so that you can
> >> investigate?
> >
> > Grub.cfg looks all right to me: at least, it does include a sensible root=
> > value.
> >
> > I never see a grub screen - it just starts the current kernel. I did
> wonder
> > about an initramfs and I'm trying it now. I've also followed Remy's advice
> > and used gentoo-sources-4.4.6.
> >
> > So far I've spent about 30 hours scratching my head, clutching at straws
> and
> > going round in circles. I'm getting dizzy.  :-)
> >
> > --
> > Rgds
> > Peter
> 
> So, you have Grub setup to give a menu, pause, or at least do
> something visible, and it's skipping right past that? That makes me
> suspect that Grub's not running at all, and that the kernel's being
> loaded by UEFI directly.

Ah! Now why didn't I think of that?

> What files are in /boot/ on your efi partition (preferably identified
> with the file command)?

# file /boot/*
 /boot/config-4.4.6-gentoo:                     Linux make config build file, ASCII text
/boot/efi:                                     directory
/boot/grub:                                    directory
/boot/initramfs-genkernel-x86_64-4.4.6-gentoo: XZ compressed data
/boot/System.map-4.4.6-gentoo:                 ASCII text
/boot/vmlinuz-4.4.6-gentoo:                    Linux kernel x86 boot executable bzImage, version 4.4.6-gentoo (root@sysresccd) #7 SMP Fri Apr 8 15:51:24 BST 201, RO-rootFS, swap_dev 0x5, Normal VGA

# file /boot/efi/boot/*
/boot/efi/boot/bootx64.efi: Linux kernel x86 boot executable bzImage, version 4.4.6-gentoo (root@sysresccd) #7 SMP Fri Apr 8 15:51:24 BST 201, RO-rootFS, swap_dev 0x5, Normal VGA

> If you have a kernel in there named bootx64.efi, that's likely the culprit.

That's what it's supposed to look like, isn't it?

(I'm using web-mail after booting sysresccd.)







^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [gentoo-user] NVMe drive and grub
@ 2016-04-09  5:43 peter
  2016-04-09  7:22 ` Neil Bothwick
  0 siblings, 1 reply; 21+ messages in thread
From: peter @ 2016-04-09  5:43 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick <neil@digimed.co.uk> wrote :

> On Fri, 8 Apr 2016 13:26:31 -0400, Poison BL. wrote:
> 
> > --> /boot/efi/boot/bootx64.efi  
> > This one is what your UEFI's loading at boot. The lack of any other
> > files in /boot/efi/boot/ makes me suspect Grub's not actually
> > installed in quite the right spot for the UEFI layer to load it. If
> > you pointed grub2-install at the right place (the second command line
> > at [1]), I believe you should have grubx64.efi there as well.
> 
> Did you build GRUB with GRUB_PLATFORMS="efi-64"?

Yes, as instructed in the wiki.

> As you're using EFI, you may find life easier if you dispense with GRUB
> and use Gummiboot. I find it (or the systemd version) far more friendly.

Maybe I should give it a go - thanks for the idea. I did consider it but then I was deterred by its description as "minimalistic".







^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [gentoo-user] NVMe drive and grub
@ 2016-04-09  7:05 peter
  0 siblings, 0 replies; 21+ messages in thread
From: peter @ 2016-04-09  7:05 UTC (permalink / raw
  To: gentoo-user

Peter@prh.myzen.co.uk wrote :

> Neil Bothwick neil@digimed.co.uk>
> wrote :
> 
> > On Fri, 8 Apr 2016 13:26:31 -0400, Poison BL. wrote:
> > 
> > > --> /boot/efi/boot/bootx64.efi  
> > > This one is what your UEFI's loading at boot. The lack of any other
> > > files in /boot/efi/boot/ makes me suspect Grub's not actually
> > > installed in quite the right spot for the UEFI layer to load it. If
> > > you pointed grub2-install at the right place (the second command line
> > > at [1]), I believe you should have grubx64.efi there as well.
> > 
> > Did you build GRUB with GRUB_PLATFORMS="efi-64"?
> 
> Yes, as instructed in the wiki.
> 
> > As you're using EFI, you may find life easier if you dispense with GRUB
> > and use Gummiboot. I find it (or the systemd version) far more friendly.
> 
> Maybe I should give it a go - thanks for the idea. I did consider it but then I
> was deterred by its description as "minimalistic".

I did try it, and it worked like a charm! After five days of fruitless attempts to get grub to work, five minutes with gummiboot was all I needed.

Thank you Neil.

I'll write a Solved reply when I have my system built and can access the whole thread.







^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2016-06-16 12:03 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 15:24 [gentoo-user] NVMe drive and grub peter
2016-04-07 15:56 ` Jeremi Piotrowski
2016-04-08 12:21   ` Peter Humphrey
2016-04-08 13:25     ` Poison BL.
2016-04-07 17:41 ` [gentoo-user] " Remy Blank
2016-06-16  5:43   ` J. Roeleveld
2016-06-16  6:11     ` J. Roeleveld
2016-06-16  8:28       ` Peter Humphrey
2016-06-16 10:31         ` J. Roeleveld
2016-06-16 12:03           ` Peter Humphrey
  -- strict thread matches above, loose matches on Subject: below --
2016-04-08 15:32 [gentoo-user] " peter
2016-04-08 17:26 ` Poison BL.
2016-04-08 22:28   ` Neil Bothwick
2016-04-09  5:43 peter
2016-04-09  7:22 ` Neil Bothwick
2016-04-09  7:40   ` Mick
2016-04-09  7:53     ` Neil Bothwick
2016-04-09 11:14       ` R0b0t1
2016-04-09 11:31         ` Neil Bothwick
2016-04-09 11:59         ` Neil Bothwick
2016-04-09  7:05 peter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox