public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Re: NVMe drive and grub
  2016-04-07 15:24 [gentoo-user] " peter
@ 2016-04-07 17:41 ` Remy Blank
  2016-06-16  5:43   ` J. Roeleveld
  0 siblings, 1 reply; 8+ messages in thread
From: Remy Blank @ 2016-04-07 17:41 UTC (permalink / raw
  To: gentoo-user

peter@prh.myzen.co.uk wrote on 2016-04-07 17:24:
> 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?

Make sure you have BLK_DEV_NVME compiled into your kernel (not as a
module), and that you pass the right device name as a root FS to the
kernel. It might also help to use a very recent kernel.

FWIW, I'm writing this from a laptop that boots from two NVMe devices in
RAID 1 configuration, with kernel 4.4.5.

-- Remy



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

* Re: [gentoo-user] Re: NVMe drive and grub
@ 2016-04-08  9:01 peter
  2016-04-08 19:23 ` Remy Blank
  0 siblings, 1 reply; 8+ messages in thread
From: peter @ 2016-04-08  9:01 UTC (permalink / raw
  To: gentoo-user

Remy Blank <remy.blank@pobox.com> wrote :

> peter@prh.myzen.co.uk
> wrote on 2016-04-07 17:24:
> > 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?
> 
> Make sure you have BLK_DEV_NVME compiled into your kernel (not as a
> module), and that you pass the right device name as a root FS to the
> kernel. It might also help to use a very recent kernel.

Yes, I have that compiled in, and the kernel is 4.1.15-r1.

> FWIW, I'm writing this from a laptop that boots from two NVMe devices in
> RAID 1 configuration, with kernel 4.4.5.

Now, that's just showing off  :-) 

-- 
Rgds
Peter








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

* [gentoo-user] Re: NVMe drive and grub
  2016-04-08  9:01 [gentoo-user] Re: NVMe drive and grub peter
@ 2016-04-08 19:23 ` Remy Blank
  0 siblings, 0 replies; 8+ messages in thread
From: Remy Blank @ 2016-04-08 19:23 UTC (permalink / raw
  To: gentoo-user

peter@prh.myzen.co.uk wrote on 2016-04-08 11:01:
> Remy Blank <remy.blank@pobox.com> wrote :
> 
>> peter@prh.myzen.co.uk
>> wrote on 2016-04-07 17:24:
>>> 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?
>>
>> Make sure you have BLK_DEV_NVME compiled into your kernel (not as a
>> module), and that you pass the right device name as a root FS to the
>> kernel. It might also help to use a very recent kernel.
> 
> Yes, I have that compiled in, and the kernel is 4.1.15-r1.
> 
>> FWIW, I'm writing this from a laptop that boots from two NVMe devices in
>> RAID 1 configuration, with kernel 4.4.5.
> 
> Now, that's just showing off  :-) 

Now now, I was merely providing evidence that what you are trying to do
actually works.

... But yeah, it's fast :)

-- Remy



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

* Re: [gentoo-user] Re: NVMe drive and grub
  2016-04-07 17:41 ` [gentoo-user] " Remy Blank
@ 2016-06-16  5:43   ` J. Roeleveld
  2016-06-16  6:11     ` J. Roeleveld
  0 siblings, 1 reply; 8+ messages in thread
From: J. Roeleveld @ 2016-06-16  5:43 UTC (permalink / raw
  To: gentoo-user

On Thursday, April 07, 2016 07:41:35 PM Remy Blank wrote:
> peter@prh.myzen.co.uk wrote on 2016-04-07 17:24:
> > 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?
> 
> Make sure you have BLK_DEV_NVME compiled into your kernel (not as a
> module), and that you pass the right device name as a root FS to the
> kernel. It might also help to use a very recent kernel.
> 
> FWIW, I'm writing this from a laptop that boots from two NVMe devices in
> RAID 1 configuration, with kernel 4.4.5.
> 
> -- Remy

Remy (and others),

I have been trying to get Gentoo to boot from an NVME device, but I am getting 
stuck.

The kernel-config I use will boot when the root-device is on a spinning sata-
disk and I can see the NVME device.
When using the same config with the root-partition on the NVME, it fails, 
complaining it can't find the root-partition.

The NVME driver is loaded into the kernel (not module).

Does anyone have a working config for a 4.4.6 kernel or any other version that 
is currently in portage?

Along with the boot-options being used?

Many thanks,

Joost


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

* Re: [gentoo-user] Re: NVMe drive and grub
  2016-06-16  5:43   ` J. Roeleveld
@ 2016-06-16  6:11     ` J. Roeleveld
  2016-06-16  8:28       ` Peter Humphrey
  0 siblings, 1 reply; 8+ messages in thread
From: J. Roeleveld @ 2016-06-16  6:11 UTC (permalink / raw
  To: gentoo-user

On June 16, 2016 7:43:10 AM GMT+02:00, "J. Roeleveld" <joost@antarean.org> wrote:
>On Thursday, April 07, 2016 07:41:35 PM Remy Blank wrote:
>> peter@prh.myzen.co.uk wrote on 2016-04-07 17:24:
>> > 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?
>> 
>> Make sure you have BLK_DEV_NVME compiled into your kernel (not as a
>> module), and that you pass the right device name as a root FS to the
>> kernel. It might also help to use a very recent kernel.
>> 
>> FWIW, I'm writing this from a laptop that boots from two NVMe devices
>in
>> RAID 1 configuration, with kernel 4.4.5.
>> 
>> -- Remy
>
>Remy (and others),
>
>I have been trying to get Gentoo to boot from an NVME device, but I am
>getting 
>stuck.
>
>The kernel-config I use will boot when the root-device is on a spinning
>sata-
>disk and I can see the NVME device.
>When using the same config with the root-partition on the NVME, it
>fails, 
>complaining it can't find the root-partition.
>
>The NVME driver is loaded into the kernel (not module).
>
>Does anyone have a working config for a 4.4.6 kernel or any other
>version that 
>is currently in portage?
>
>Along with the boot-options being used?
>
>Many thanks,
>
>Joost

Ignore this.
Got it working, had to enable UEFI first for the NVME device in bios....

Problem caused by silly BIOS devs at ASUS....

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


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

* Re: [gentoo-user] Re: NVMe drive and grub
  2016-06-16  6:11     ` J. Roeleveld
@ 2016-06-16  8:28       ` Peter Humphrey
  2016-06-16 10:31         ` J. Roeleveld
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Humphrey @ 2016-06-16  8:28 UTC (permalink / raw
  To: gentoo-user

On Thursday 16 Jun 2016 06:11:10 J. Roeleveld wrote:
> On June 16, 2016 7:43:10 AM GMT+02:00, "J. Roeleveld" <joost@antarean.org> 
wrote:
> >On Thursday, April 07, 2016 07:41:35 PM Remy Blank wrote:
> >> peter@prh.myzen.co.uk wrote on 2016-04-07 17:24:
> >> > 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?
> >> 
> >> Make sure you have BLK_DEV_NVME compiled into your kernel (not as a
> >> module), and that you pass the right device name as a root FS to the
> >> kernel. It might also help to use a very recent kernel.
> >> 
> >> FWIW, I'm writing this from a laptop that boots from two NVMe devices
> >
> >in
> >
> >> RAID 1 configuration, with kernel 4.4.5.
> >> 
> >> -- Remy
> >
> >Remy (and others),
> >
> >I have been trying to get Gentoo to boot from an NVME device, but I am
> >getting
> >stuck.
> >
> >The kernel-config I use will boot when the root-device is on a spinning
> >sata-
> >disk and I can see the NVME device.
> >When using the same config with the root-partition on the NVME, it
> >fails,
> >complaining it can't find the root-partition.
> >
> >The NVME driver is loaded into the kernel (not module).
> >
> >Does anyone have a working config for a 4.4.6 kernel or any other
> >version that
> >is currently in portage?
> >
> >Along with the boot-options being used?
> >
> >Many thanks,
> >
> >Joost
> 
> Ignore this.
> Got it working, had to enable UEFI first for the NVME device in bios....

Glad to hear it. You had me scratching my head there, trying to remember 
exactly what I did.

> Problem caused by silly BIOS devs at ASUS....

When confronted with new ways of doing things I naturally assume I don't 
understand, before I start name calling.  :)

-- 
Rgds
Peter



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

* Re: [gentoo-user] Re: NVMe drive and grub
  2016-06-16  8:28       ` Peter Humphrey
@ 2016-06-16 10:31         ` J. Roeleveld
  2016-06-16 12:03           ` Peter Humphrey
  0 siblings, 1 reply; 8+ messages in thread
From: J. Roeleveld @ 2016-06-16 10:31 UTC (permalink / raw
  To: gentoo-user

On Thursday, June 16, 2016 09:28:53 AM Peter Humphrey wrote:
> On Thursday 16 Jun 2016 06:11:10 J. Roeleveld wrote:

> > 
> > Ignore this.
> > Got it working, had to enable UEFI first for the NVME device in bios....
> 
> Glad to hear it. You had me scratching my head there, trying to remember
> exactly what I did.

I was scratching mine as well....

> > Problem caused by silly BIOS devs at ASUS....
> 
> When confronted with new ways of doing things I naturally assume I don't
> understand, before I start name calling.  :)

The bios is configured to boot in UEFI mode.
But apparently, some of the devices are not, by default....

I fail to see the logic in that.

--
Joost


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

* Re: [gentoo-user] Re: NVMe drive and grub
  2016-06-16 10:31         ` J. Roeleveld
@ 2016-06-16 12:03           ` Peter Humphrey
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Humphrey @ 2016-06-16 12:03 UTC (permalink / raw
  To: gentoo-user

On Thursday 16 Jun 2016 12:31:42 J. Roeleveld wrote:
> On Thursday, June 16, 2016 09:28:53 AM Peter Humphrey wrote:
> > On Thursday 16 Jun 2016 06:11:10 J. Roeleveld wrote:
> > > Ignore this.
> > > Got it working, had to enable UEFI first for the NVME device in
> > > bios....
> > 
> > Glad to hear it. You had me scratching my head there, trying to remember
> > exactly what I did.
> 
> I was scratching mine as well....
> 
> > > Problem caused by silly BIOS devs at ASUS....
> > 
> > When confronted with new ways of doing things I naturally assume I don't
> > understand, before I start name calling.  :)
> 
> The bios is configured to boot in UEFI mode.
> But apparently, some of the devices are not, by default....
> 
> I fail to see the logic in that.

Hmm. That is odd. Not everything in my BIOS seems entirely logical either, 
but at least I've learned how to use it.

-- 
Rgds
Peter



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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08  9:01 [gentoo-user] Re: NVMe drive and grub peter
2016-04-08 19:23 ` Remy Blank
  -- strict thread matches above, loose matches on Subject: below --
2016-04-07 15:24 [gentoo-user] " peter
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

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