You are not logged in.

#1 2021-07-03 01:52:08

afader
Member
Registered: 2013-09-12
Posts: 207

[SOLVED]Can't load - kernel modules after upgrade to 5.12.13

How can I see what went wrong on the kernel modules? Worked on 5.12.12

EDIT: I solved it after doing this by grub-installing again and regenning all the grub stuff so whatever the problem is was fixed by doing that.
Thanks!

Last edited by afader (2021-07-05 18:23:31)

Offline

#2 2021-07-03 02:38:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

Your /boot wasn't mounted for the upgrade.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-07-03 19:43:23

afader
Member
Registered: 2013-09-12
Posts: 207

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

My boot isn't a separate partition. If I upgrade the kernel and run mkinitcpio everything goes fine. Or do you mean my EFI partition? Currently I have REFINd and Grub installed.

Offline

#4 2021-07-03 20:04:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

Paste the output of `pacman -Q linux && uname -r`


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2021-07-03 23:11:40

afader
Member
Registered: 2013-09-12
Posts: 207

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

This is what I have now

❯ pacman -Q linux && uname -r
linux 5.12.14.arch1-1
5.12.12-hardened1-1-hardened

However if I upgrade I get a failure on boot to load kernel modules. I also have nvidia-dkms

Offline

#6 2021-07-03 23:26:29

loqs
Member
Registered: 2014-03-06
Posts: 18,913

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

afader wrote:

This is what I have now

❯ pacman -Q linux && uname -r
linux 5.12.14.arch1-1
5.12.12-hardened1-1-hardened

However if I upgrade I get a failure on boot to load kernel modules. I also have nvidia-dkms

If you upgrade what?  linux 5.12.14.arch1-1  is the current version of the linux package.  Do you have the issue booting that kernel?
The boot failure is using which version of linux-harened? From the shell what is the output of name -r when the modules fail to load?
Edit:
Please also post the output of:

cat /etc/fstab
# parted -l 

Last edited by loqs (2021-07-03 23:27:55)

Offline

#7 2021-07-04 03:38:55

afader
Member
Registered: 2013-09-12
Posts: 207

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

Thanks for responding I appreciate the assistance.

Can I somehow list what failed from the modules loading on boot? Name -r I assume meaning uname for that kernel?

I'm running 5.12.12-hardened, working, because I run -hardened, but I have 5.12.14-arch and that doesn't boot, nor does 5.12.13-hardened or .14-hardened. So I'm assuming change that breaks my setup is in -13.

Here's parted fstab. The fat16 is an image of REFInd and / is an arch partition that I've had since 2013 and there's no swap or boot partition. I just copied it from a SATA drive to an NVMe not that long ago. It's been cloned with dd and rsync.

Model: Samsung SSD 970 EVO Plus 250GB (nvme)
Disk /dev/nvme0n1: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  5008MB  5007MB  primary  fat16
 2      5008MB  250GB   245GB   primary  ext4
/dev/disk/by-uuid/xxx / ext4  rw,noatime,data=ordered,discard  0 1
/dev/disk/by-uuid/xxx /mnt/external ext4 rw,user,exec 0 0

Offline

#8 2021-07-04 06:46:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,991

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

Yes, boot the failing kerne and check "uname -r". Post that and the output of "pacman -Qs linux" (to find all installed kernels)
Don't obfuscate UUIDs, they're not private data that needs to be protected.
Also post your grub.cfg, mount the fat16 partition somewhere and check its contents (first node "ls" will do for a start)

See the first link below on how to paste files w/o a gui.

Whether or not you can archive or even upload stuff from the failing boot depends on how badly it fails - in doubt *link* some photos of the screen.

Online

#9 2021-07-05 18:05:47

afader
Member
Registered: 2013-09-12
Posts: 207

Re: [SOLVED]Can't load - kernel modules after upgrade to 5.12.13

EDIT: I solved it after doing this by grub-installing again and regenning all the grub stuff so whatever the problem is was fixed by doing that.
Thanks!

Here's an image of what I see if I boot to 5.13.14-arch: https://i.imgur.com/b1hNUIy.jpg
Currently running on 5.12.12-hardened like I said.
Like I said the fat16 partition is REFInd. If I mount it I see

❯ sudo mount /dev/nvme0n1p1 /boot/efi
❯ cd /boot/efi
❯ sudo su   
 ls                                                           
EFI

Here's grub.cfg

### BEGIN /etc/grub.d/09_make_OS_entries_unrestricted ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry_id_option="--unrestricted"
### END /etc/grub.d/09_make_OS_entries_unrestricted ###

### BEGIN /etc/grub.d/10_linux_proxy ###

### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/31_uefi-firmware_proxy ###


### END /etc/grub.d/31_uefi-firmware_proxy ###

### BEGIN /etc/grub.d/32_linux_proxy ###
menuentry "Arch Linux, with Linux linux-hardened" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-hardened-advanced-3f5ec185-e7ae-4466-8b0c-0311b2a6a300' {
	savedefault
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		search --no-floppy --fs-uuid --set=root 3f5ec185-e7ae-4466-8b0c-0311b2a6a300
		echo	'Loading Linux linux-hardened ...'
		linux	/boot/vmlinuz-linux-hardened root=UUID=3f5ec185-e7ae-4466-8b0c-0311b2a6a300 rw  nvidia-drm.modeset=1 loglevel=3 quiet apparmor=1 audit=1 lsm=lockdown,yama,apparmor
		echo	'Loading initial ramdisk ...'
		initrd	/boot/intel-ucode.img /boot/initramfs-linux-hardened.img
}
menuentry "Arch Linux, with Linux linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-3f5ec185-e7ae-4466-8b0c-0311b2a6a300' {
	savedefault
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		search --no-floppy --fs-uuid --set=root 3f5ec185-e7ae-4466-8b0c-0311b2a6a300
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=3f5ec185-e7ae-4466-8b0c-0311b2a6a300 rw  nvidia-drm.modeset=1 loglevel=3 quiet apparmor=1 audit=1 lsm=lockdown,yama,apparmor
		echo	'Loading initial ramdisk ...'
		initrd	/boot/intel-ucode.img /boot/initramfs-linux.img
}
menuentry "Arch Linux, with Linux linux-zen" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-advanced-3f5ec185-e7ae-4466-8b0c-0311b2a6a300' {
	savedefault
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		search --no-floppy --fs-uuid --set=root 3f5ec185-e7ae-4466-8b0c-0311b2a6a300
		echo	'Loading Linux linux-zen ...'
		linux	/boot/vmlinuz-linux-zen root=UUID=3f5ec185-e7ae-4466-8b0c-0311b2a6a300 rw  nvidia-drm.modeset=1 loglevel=3 quiet apparmor=1 audit=1 lsm=lockdown,yama,apparmor
		echo	'Loading initial ramdisk ...'
		initrd	/boot/intel-ucode.img /boot/initramfs-linux-zen.img
}
### END /etc/grub.d/32_linux_proxy ###

### BEGIN /etc/grub.d/33_uefi-firmware_proxy ###
menuentry "UEFI Firmware Settings" $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/33_uefi-firmware_proxy ###

### BEGIN /etc/grub.d/42_custom_proxy ###

# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.










### END /etc/grub.d/42_custom_proxy ###

### BEGIN /etc/grub.d/43_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/43_custom ###

### BEGIN /etc/grub.d/44_grub-customizer_menu_color_helper ###
### END /etc/grub.d/44_grub-customizer_menu_color_helper ###

Last edited by afader (2021-07-05 18:23:21)

Offline

Board footer

Powered by FluxBB