You are not logged in.

#1 2015-03-31 18:36:56

BitterHitter
Member
Registered: 2015-03-31
Posts: 7

Keyboard not regonized, ... is not a valid kernel module directory

I'm having problem with mkinitcpio and autodetect.

I just installed Arch with full system encryption but upon starting im stuck at the password propt to encrypt the root partition because my keyboard is not recognized. It is recognized when I use fallback in GRUB (i.e. without the autodetect hook). But then the internet (and I guess other stuff) doesn't work.

When I chroot into the system and

mkinitcpio -M

gives me

'/lib/modules/3.18.6-1-ARCH' is not a valid kernel module directory

.

The directory only containts 3.19.2-1-ARCH and extramodules-3.19-ARCH.

Any idea what I am doing wrong?

Offline

#2 2015-03-31 18:56:38

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,572
Website

Re: Keyboard not regonized, ... is not a valid kernel module directory

You "just" installed Arch? That kernel (3.18.6) was updated to 3.19.2 a couple of weeks ago. Would it be safe to say that you installed a couple of weeks ago, and updated today? If so, have you rebooted since the kernel was updated?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-03-31 19:03:51

BitterHitter
Member
Registered: 2015-03-31
Posts: 7

Re: Keyboard not regonized, ... is not a valid kernel module directory

I installed like three hours ago. The installation medium was called ARCH_201503, so I assume it is the latest one (I installed it a couple of weeks ago but then my SSD died). pacstrap installs everything from the internet anyway so I guess it shouldn't be a problem even if the installation medium is old (maximum six weeks).

There is obviously something wrong with the kernel versions, I just have no idea why and how to fix it.

Edit: I also reinstalled the kernel and also ran

mkinitcpio -p linux

by hand.

Last edited by BitterHitter (2015-03-31 19:06:43)

Offline

#4 2015-03-31 19:36:40

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,572
Website

Re: Keyboard not regonized, ... is not a valid kernel module directory

Ahh, I know what's happening. The 3.18.6 kernel is what you're booted into, because that's what's on the LiveCD. Sorry, I was trying to explain away something that didn't need explanation.

You need to use mkinitcpio's --kernel flag to specify you want to use the installed kernel, not the live one

       -k, --kernel kernelversion
           Use kernelversion, instead of the current running kernel. This may be a path to a
           kernel image, a specific kernel version or the special keyword none. In the latter
           case, no kernel modules are added to the image.

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-03-31 20:11:35

BitterHitter
Member
Registered: 2015-03-31
Posts: 7

Re: Keyboard not regonized, ... is not a valid kernel module directory

Thanks so far!
I did the following (while chrooted into the installed system):

cp initramfs-linux.img initramfs-linux.img.backup
cp initramfs-linux-fallback.img initramfs-linux-fallback.img.backup
mkinitcpio -g /boot/initramfs-linux.img -k 3.19.2-1-ARCH
grub-mkconfig -o /boot/grub/grub.cfg

Did I do it right? Because it is still not working, unfortunatly...

Edit: I just noted that

mkinitcpio -p linux

already does the right thing. It says in the first line

Starting build: 3.19.2-1-ARCH

I only think my initial guess with

mkinitcpio -M

was wrong because that is refering to the currently running kernel.

Last edited by BitterHitter (2015-03-31 20:38:20)

Offline

#6 2015-03-31 21:06:31

BitterHitter
Member
Registered: 2015-03-31
Posts: 7

Re: Keyboard not regonized, ... is not a valid kernel module directory

It is working after putting keyboard before encrypt in mkinitcpio.conf. Although, I don't think that this actually fixed anything, because I put it back after filesystem and it is still working. Maybe we will never know... Anyway, thanks for the help!

Offline

#7 2015-03-31 21:07:07

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,572
Website

Re: Keyboard not regonized, ... is not a valid kernel module directory

Could you upload your /etc/mkinitcpio.conf (make sure it's your installed one, not the LiveCDs), the output of

lsmod

from the live environment, and the output of

mkinitcpio -M /boot/vmlinuz-linux

Use a CLI pastebin client to upload stuff easily.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2015-03-31 22:44:55

BitterHitter
Member
Registered: 2015-03-31
Posts: 7

Re: Keyboard not regonized, ... is not a valid kernel module directory

mkinitcpio.conf from the actual system: http://sprunge.us/jieA
lsmod of live system: http://sprunge.us/IAJW
mkinitcpio -M /boot/vmlinuz-linux of live system: http://sprunge.us/FHhN

Last edited by BitterHitter (2015-03-31 23:04:15)

Offline

Board footer

Powered by FluxBB