You are not logged in.

#1 2022-11-05 19:25:18

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

[SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

Problem:

Systemd unable to mount \efi because the vfat kernel module is missing at boot

Steps taken:
  • nuked /boot and /efi and installed latest GRUB instead of reFind thinking that something might have gone wrong with it, since it's not as well supported as GRUB.

  • cleaned up /usr/lib/modules/ and reinstalled linux and linux-lts along with the corresponding linux headers for each kernel.

  • tried to roll the lts kernel back, didn't work, so I updated kernels to the latest version again

Current state:

The EFI partition is disabled in /etc/fstab, and the system boots with interesting quirks like the sound not working, but bluetooth audio is working as usual. Doing modprobe vfat loads the kernel module with no problems, and I am able to mount the EFI partition to /efi.

UPDATE

These are the various command outputs:

pacman -Q linux linux-lts

linux 6.0.7.arch1-1
linux-lts 5.15.77-1

uname -r

5.15.77-1-lts

lsblk -f

NAME   FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sdb
├─sdb1 vfat   FAT32 BOOT     C457-B9A6                             391.7M    23% /boot
├─sdb2 ext4   1.0   Root     9c0483c1-a7d4-4bfa-855b-9f5d2721c08f   33.2G    61% /
├─sdb3 ext4   1.0   Home     da6cfb0a-83dc-41bd-bd98-515e64bef670   41.2G    58% /home
└─sdb4 swap   1     Swap     43ed733e-d470-4bc3-ab92-98dd0dc4aeaf                [SWAP]

and GRUB is installed correctly using the command

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ArchLinux

After checking out the note Here, as well as the known bug Here, I created the relevant file in /etc/modules-load.d, and changed the EFI partition label to BOOT instead of EFI. I also mapped the FAT32 partition to the /boot directory instead of just the efi directory.

Now, the same issue persists, but the vfat module is available to me when I comment out the EFI entry from /etc/fstab and try to mount the partition after the system boots. I'm out of ideas at this point.

UPDATE 2

After some probing, some kernel modules appear to be unavailable by default, requiring me to manually modprobe the module and then restart the respective daemon.
Example: the tun module required by tailscale. I also suspect that an audio-related kernel module is also having issues.

Feel free to request any missing data. I included stuff that I felt are relevant to the issue.

UPDATE 3

For anyone looking for a solution

Weirdly enough, the system started behaving as normal after updating the dkms package a couple of minutes ago and regenerating initrd with mkinitcpio. I'll mark the topic as [SOLVED] despite not knowing what actually happened.

The notable packages that got updated prior to the system working properly:
lib32-openssl-1.1
openssl-1.1
dkms

Last edited by JoeAnto (2022-11-06 15:27:33)

Offline

#2 2022-11-05 19:37:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

This usually means your /boot partition wasn't mounted when you updated. Check uname -r, I bet it doesn't match what's installed with pacman.

Online

#3 2022-11-05 19:37:43

astralc
Member
Registered: 2022-09-17
Posts: 127

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

do you have different /boot and /efi (and /) partitions?
Sound more like you may have some other issue - what is output of (3 commands):

pacman -Q linux linux-lts
uname -r
lsblk -f

Offline

#4 2022-11-05 19:55:29

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

These are the various command outputs:

pacman -Q linux linux-lts

linux 6.0.7.arch1-1
linux-lts 5.15.77-1

uname -r

5.15.77-1-lts

lsblk -f

NAME   FSTYPE FSVER LABEL    UUID                                                           FSAVAIL FSUSE% MOUNTPOINTS
sdb
├─sdb1 vfat        FAT32    EFI       618A-2499                                                    510.8M     0%         /efi
├─sdb2 ext4       1.0         Root     9c0483c1-a7d4-4bfa-855b-9f5d2721c08f     192.9M    95%       /
├─sdb3 ext4       1.0         Home   da6cfb0a-83dc-41bd-bd98-515e64bef670    5.6G        90%       /home
└─sdb4 swap     1            Swap    43ed733e-d470-4bc3-ab92-98dd0dc4aeaf                                 [SWAP]

and GRUB is installed correctly, making use of the separate EFI partition using the command

grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=ArchLinux

Offline

#5 2022-11-05 19:57:53

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

astralc wrote:

do you have different /boot and /efi (and /) partitions?
Sound more like you may have some other issue - what is output of (3 commands):

pacman -Q linux linux-lts
uname -r
lsblk -f

Only root, efi, and home partitions, along with a swap partition. the efi partition is shown as mounted in the previous command output because I manually loaded the vfat module and mounted it after boot.

Offline

#6 2022-11-05 21:20:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,171

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

So when you say you 'nuked' /boot and /efi, what is /boot? Is that on your root partition?

Did you regenerate grub's config file?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2022-11-05 21:32:36

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

cfr wrote:

So when you say you 'nuked' /boot and /efi, what is /boot? Is that on your root partition?

Did you regenerate grub's config file?

Yes. I had a /boot in my root partition. I even tried changing the structure and mapping the whole /boot directory to the EFI partition and reinstalling kernels/headers and regenerating grub configs (that's what I'm currently running. check the updated main post.)
Same issues are present.

The main post has more useful information than my replies.

Offline

#8 2022-11-06 09:52:39

astralc
Member
Registered: 2022-09-17
Posts: 127

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

did you disabled any systemd service/triggers before it happen?
Also, to make sure it not from other stuff - do you use any libraries or important utils from aur or unofficial repo?

is automatically loading modules works? (but, as it written there, udev should handle it anyway)
https://wiki.archlinux.org/title/Kernel … le_loading

Offline

#9 2022-11-06 12:35:38

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

astralc wrote:

did you disabled any systemd service/triggers before it happen?
Also, to make sure it not from other stuff - do you use any libraries or important utils from aur or unofficial repo?

is automatically loading modules works? (but, as it written there, udev should handle it anyway)
https://wiki.archlinux.org/title/Kernel … le_loading

Did not disable any Systemd services prior to the update. I usually only manage Systemd services that I manually install, like VPN/Mesh networking stuff.
As for other Utils, I don't have any unofficial repos enabled. And the most notable things from the AUR that are system critical are the Nvidia 470xx drivers because of my GTX760.

As for auto-loading, I don't know how to check if it's working properly or not.

Offline

#10 2022-11-06 13:03:51

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 630

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

JoeAnto wrote:

Systemd unable to mount \efi because the vfat kernel module is missing at boot

What is exact error message in journal? On what stage systemd tries to mount /efi, in initrd or in main rootfs? Have you tried to add vfat module to /etc/mkinitcpio.conf and regenerate inird?

Offline

#11 2022-11-06 13:32:03

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] Kernel 5.15.77-1 and Kernel 6.0.7-1 vFat module issue

Weirdly enough, the system started behaving as normal after updating the dkms package a couple of minutes ago and regenerating initrd with mkinitcpio. I'll mark the topic as [SOLVED] despite not knowing what actually happened.

The notable packages that got updated prior to the system working properly:
lib32-openssl-1.1
openssl-1.1
dkms

Last edited by JoeAnto (2022-11-06 13:36:30)

Offline

Board footer

Powered by FluxBB