You are not logged in.

#1 2025-04-22 16:37:31

kleenestar
Member
Registered: 2024-12-03
Posts: 4

Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

After a system update, udisksctl was failing to detect my flash drive.
So I accidentally tried to mount my /boot partition to /mnt/usb instead of the flash drive.

$ udisksctl mount -b /dev/sda1 /mnt/usb/
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 476.9G  0 disk
├─sda1   8:1    0   512M  0 part /boot
├─sda2   8:2    0    20G  0 part [SWAP]
├─sda3   8:3    0    50G  0 part /
└─sda4   8:4    0 406.4G  0 part /home

Even though I'm able to boot into X, I'm met with this warning on every startup:

Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found - ignoring

I'm not sure whether the cause was a bad update or a bad mounting.
IIRC the mount failed with an error saying /dev/sda1 is already mounted.
I tried reinstalling linux but the warning does not go away.

Offline

#2 2025-04-22 17:13:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,141

Re: Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

That's an initramfs warning but things do "look" correctly. But let's check

uname -a
cat /proc/cmdline
pacman -Q linux
file /boot/vmlinuz-linux
sudo lsinitcpio /boot/initramfs-linux.img | grep devname

Offline

#3 2025-04-22 17:26:41

kleenestar
Member
Registered: 2024-12-03
Posts: 4

Re: Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

$ uname -a
Linux elitebook 6.14.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 20 Apr 2025 12:38:52 +0000 x86_64 GNU/Linux
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux root=UUID=c2bb7bb3-72b8-4341-bef4-c4990c160bda rw quiet loglevel=2 rd.systemd.show_status=auto rd.udev.log_priority=3 vt.global_cursor_default=0 i915.fastboot=1 intel_idle.max_cstate=2 psmouse.synaptics_intertouch=0
$ pacman -Q linux
linux 6.14.3.arch1-1
$ file /boot/vmlinuz-linux
/boot/vmlinuz-linux: Linux kernel x86 boot executable, bzImage, version 6.14.3-arch1-1 (linux@archlinux) #1 SMP PREEMPT_DYNAMIC Sun, 20 Apr 2025 12:38:52 +0000, RO-rootFS, Normal VGA, setup size 512*39, syssize 0xea320, jump 0x26c 0x8cd88ec0fc8cd239 instruction, protocol 2.15, from protected-mode code at offset 0x2cc 0xe6c379 bytes ZST compressed, relocatable, handover offset 0xe909b0, legacy 64-bit entry point, can be above 4G, 32-bit EFI handoff entry point, 64-bit EFI handoff entry point, EFI kexec boot support, xloadflags bit 5, max cmdline size 2047, init_size 0x4262000
$ sudo lsinitcpio /boot/initramfs-linux.img | grep devname
# no output

Offline

#4 2025-04-22 17:32:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,141

Re: Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

everything seems dandy, save for the missing devname, any special mkinitcpio config? Does simply regenerating the image help?

sudo mkinitcpio -P

maybe post the output of that as well.

Offline

#5 2025-04-22 17:58:48

kleenestar
Member
Registered: 2024-12-03
Posts: 4

Re: Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

$ grep -v ^# /etc/mkinitcpio.conf
MODULES=(ahci sd_mod ext4)
BINARIES=()
FILES=()
HOOKS=(base udev)
$ sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: '6.14.3-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.14.3-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful

The old warning is still there but now there's a new warning in the output.

Last edited by kleenestar (2025-04-22 17:59:22)

Offline

#6 2025-04-22 18:20:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,141

Re: Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

mhm... That's very minimal, is this intentional? Somewhat surprised it managed to boot with just that, but in which case I'd assume this to be normal. ext4 has been a built-in for a while as has been sd_mod so that's why you're not getting any modules and I'm assuming the message to be thus normal.

Offline

#7 2025-04-22 19:31:23

kleenestar
Member
Registered: 2024-12-03
Posts: 4

Re: Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

I must've picked it up from some youtube video I watched long ago. Probably Kai Hendry or maybe even midfingr. Haven't bothered to change it since. What do you suggest is a config with sane defaults ?

Offline

#8 2025-04-22 20:13:13

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

Re: Warning: /lib/modules/6.14.3-arch1-1/modules.devname not found

I must've picked it up from some youtube video I watched long ago.

https://wiki.archlinux.org/title/Mkinitcpio#HOOKS
Start with the default hooks and come up w/ a reason for each you remove - or ask that youtuber why they thought that was a good idea roll

modules.devname is generated by depmod - so something about that path the or the kernel image was off when that ran or it failed for unknown reasons.

If you don't know what else might have happened while the boot partition was mis-mounted, I'd suggest to ensure everything is mounted in place and re-install the kernel to have everything in proper locations and all relevant hooks be run. Pay attention to the output for errors etc.
Otherwise depmod -a would do, but again: we don't know what else might have gone wrong here.

Offline

Board footer

Powered by FluxBB