You are not logged in.

#1 2016-11-11 05:39:20

AaronBP
Member
Registered: 2012-08-06
Posts: 149
Website

[SOLVED] Mainline kernel can't find my root partition

I've been testing out the mainline kernel, and 4.9 can't find my root device at all, Syslinux is able to find the os image just fine, but Linux then can't find the root partition. When it drops to the recovery shell, my keyboard is unusable whether I use ps/2 or usb.. Syslinux can find the os image just fine.

Someone suggested checking to see if root=/dev/ram works, I guess to see if the issue is in the scsi layer or somewhere else, but that doesn't seem to work even on the stable kernel. /dev/ram doesn't seem to be created automatically, so I'm guessing Arch just isn't set up for it?

Does anyone have any suggestions for debugging this problem? I'm using syslinux, and my computer is an older core 2 with a BIOS rather than UEFI.

Last edited by AaronBP (2016-11-15 02:01:39)

Offline

#2 2016-11-12 14:28:51

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Mainline kernel can't find my root partition

There are some comments on linux-mainline aur page that may be relevant .
Does your setup use lvm + luks ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-11-12 15:20:00

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Mainline kernel can't find my root partition

I've also experienced problems related to the CONFIG_MODVERSIONS option with linux-git from the aur.

I would get lots of this:

module_name: no symbol version for __put_user_4
module_name: Unknown symbol __get_user_4 (err -22)

To see this I would have to boot without the quiet parameter on the kernel command line. Ever since the maintainer of the package disabled CONFIG_MODVERSIONS everything works fine.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2016-11-12 18:13:24

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [SOLVED] Mainline kernel can't find my root partition

Are you sure you are loading the right initramfs for this kernel? Also, try adding keyboard hook to get keyboard support in recovery shell and see what modules are loaded, whether they match your filesystem and disk controller (ahci probably), what /dev/sdX files are present, etc.

Offline

#5 2016-11-13 19:27:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mainline kernel can't find my root partition

+1 for me trying to boot into 4.9-rc4.  Linus tagged rc5 today so perhaps I'll give that a try.

EDIT: linux-mainline not linux-git

Last edited by graysky (2016-11-13 19:27:46)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2016-11-13 21:18:35

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mainline kernel can't find my root partition

Nope... rc5 gives the same:

starting version 231
ERROR: device '/dev/nvme0n1p2' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/nvme0n1p2'.
You are being dropped to a recovery shell
    Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
[rootfs #]

I generated my initramfs with the correct modules (my standard kernel boots with these options anyway):

MODULES="i915 nvme"
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

Last edited by graysky (2016-11-13 21:19:47)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2016-11-13 21:31:57

AaronBP
Member
Registered: 2012-08-06
Posts: 149
Website

Re: [SOLVED] Mainline kernel can't find my root partition

Yep, can confirm rc5 doesn't boot for me. Do you have the same issue with being unable to use the keyboard? It's strange that we would both run into the same problem, I figured that it would be something specific to my motherboard or the issue would have been caught by now.

Could it be a problem with the package or mkinitcpio?

EDIT:
Lone Wolf: I do use luks for my swap partition, but not for the root partition. I don't use lvm.

EDIT2: I don't think the CONFIG_MODVERSIONS issue is related. A recent commit says that was fixed.

Last edited by AaronBP (2016-11-13 21:36:59)

Offline

#8 2016-11-13 21:48:35

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mainline kernel can't find my root partition

AaronBP wrote:

Do you have the same issue with being unable to use the keyboard?

Yes, keyboard is unresponsive.  I am not using luks or lvm.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2016-11-13 23:09:33

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Mainline kernel can't find my root partition

AaronBP wrote:

EDIT2: I don't think the CONFIG_MODVERSIONS issue is related. A recent commit says that was fixed.

Which commit was that?
From https://patchwork.kernel.org/patch/9377783/
Looking at https://git.kernel.org/cgit/linux/kerne … file.build only two changes to root/scripts/Makefile.build from the 4.9 merge window until 4.9-rc5 inclusive.
File in question as of 4.9-rc5 https://git.kernel.org/cgit/linux/kerne … s/v4.9-rc5
Those appear to be different patches and from inspection it also appears the proposed patch has not been applied as of 4.9-rc5.
It should not be CONFIG_MODVERSIONS related if you are using the linux-git package because of https://aur.archlinux.org/cgit/aur.git/ … 2182d6edc0
linux-mainline though does have CONFIG_MODVERSIONS=y

Offline

#10 2016-11-14 00:06:19

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Mainline kernel can't find my root partition

Try booting _without_ quiet in your kernel cmdline so you can see all the messages, maybe a clue is hidden there somewhere.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#11 2016-11-14 11:52:00

AaronBP
Member
Registered: 2012-08-06
Posts: 149
Website

Re: [SOLVED] Mainline kernel can't find my root partition

loqs wrote:
AaronBP wrote:

EDIT2: I don't think the CONFIG_MODVERSIONS issue is related. A recent commit says that was fixed.

Which commit was that?
From https://patchwork.kernel.org/patch/9377783/
Looking at https://git.kernel.org/cgit/linux/kerne … file.build only two changes to root/scripts/Makefile.build from the 4.9 merge window until 4.9-rc5 inclusive.
File in question as of 4.9-rc5 https://git.kernel.org/cgit/linux/kerne … s/v4.9-rc5
Those appear to be different patches and from inspection it also appears the proposed patch has not been applied as of 4.9-rc5.
It should not be CONFIG_MODVERSIONS related if you are using the linux-git package because of https://aur.archlinux.org/cgit/aur.git/ … 2182d6edc0
linux-mainline though does have CONFIG_MODVERSIONS=y

You're right, I was looking at something for arm64, guess I thought it said amd64 or something. Rebuilding with CONFIG_MODVERSIONS=n fixes the problem for me.

Offline

#12 2016-11-14 22:14:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mainline kernel can't find my root partition

AaronBP wrote:

Rebuilding with CONFIG_MODVERSIONS=n fixes the problem for me.

+1 for me!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#13 2016-11-15 20:21:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mainline kernel can't find my root partition

AaronBP wrote:

Rebuilding with CONFIG_MODVERSIONS=n fixes the problem for me.

I haven't checked but has anyone opened a flyspray against our kernel package to keep the maintainers informed of this issue?

EDIT FS#51856.

Last edited by graysky (2016-11-16 22:36:03)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#14 2016-11-27 12:16:16

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Mainline kernel can't find my root partition

Offline

Board footer

Powered by FluxBB