Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: NVMe drive and grub
Date: Thu, 16 Jun 2016 08:29:06
Message-Id: 9776348.IUh1Ba6hyR@peak
In Reply to: Re: [gentoo-user] Re: NVMe drive and grub by "J. Roeleveld"
1 On Thursday 16 Jun 2016 06:11:10 J. Roeleveld wrote:
2 > On June 16, 2016 7:43:10 AM GMT+02:00, "J. Roeleveld" <joost@××××××××.org>
3 wrote:
4 > >On Thursday, April 07, 2016 07:41:35 PM Remy Blank wrote:
5 > >> peter@××××××××××××.uk wrote on 2016-04-07 17:24:
6 > >> > I have a new box with an NVMe SSD drive attached to the PCI bus via
7 > >
8 > >an M.2
9 > >
10 > >> > interface. The drive shows up as /dev/nvme0n1, with partitions
11 > >> > /dev/nvme0n1p1, /dev/nvme0n1p2, ...
12 > >> >
13 > >> > After following the instructions in the handbook for a UEFI system,
14 > >
15 > >I get
16 > >
17 > >> > as far as a kernel panic. Grub finds the kernel and starts it, but
18 > >
19 > >it
20 > >
21 > >> > seems to be passing a null root device name.
22 > >> >
23 > >> > Can anyone offer some advice to help me get past this?
24 > >>
25 > >> Make sure you have BLK_DEV_NVME compiled into your kernel (not as a
26 > >> module), and that you pass the right device name as a root FS to the
27 > >> kernel. It might also help to use a very recent kernel.
28 > >>
29 > >> FWIW, I'm writing this from a laptop that boots from two NVMe devices
30 > >
31 > >in
32 > >
33 > >> RAID 1 configuration, with kernel 4.4.5.
34 > >>
35 > >> -- Remy
36 > >
37 > >Remy (and others),
38 > >
39 > >I have been trying to get Gentoo to boot from an NVME device, but I am
40 > >getting
41 > >stuck.
42 > >
43 > >The kernel-config I use will boot when the root-device is on a spinning
44 > >sata-
45 > >disk and I can see the NVME device.
46 > >When using the same config with the root-partition on the NVME, it
47 > >fails,
48 > >complaining it can't find the root-partition.
49 > >
50 > >The NVME driver is loaded into the kernel (not module).
51 > >
52 > >Does anyone have a working config for a 4.4.6 kernel or any other
53 > >version that
54 > >is currently in portage?
55 > >
56 > >Along with the boot-options being used?
57 > >
58 > >Many thanks,
59 > >
60 > >Joost
61 >
62 > Ignore this.
63 > Got it working, had to enable UEFI first for the NVME device in bios....
64
65 Glad to hear it. You had me scratching my head there, trying to remember
66 exactly what I did.
67
68 > Problem caused by silly BIOS devs at ASUS....
69
70 When confronted with new ways of doing things I naturally assume I don't
71 understand, before I start name calling. :)
72
73 --
74 Rgds
75 Peter

Replies

Subject Author
Re: [gentoo-user] Re: NVMe drive and grub "J. Roeleveld" <joost@××××××××.org>