You are not logged in.
Every time I would do a system update with "sudo pacman -Syu", my PC would fail to boot ('[FAILED] Failed to mount /boot. & [DEPEND] Dependency failed for Local File Systems' on startup). Every time that happened, I would do the temporary fix of rebooting onto a live-usb and reinstalling the linux kernel while inside arch-chroot. Recent system updates in the past have caused the same persistent problem to be harder and harder to fix.
Now, after a system update I did two days ago, the solutions I've done previously didn't seem to fix anything, the problem persists. I can't rely on this temporary fix anymore and would like a more permanent solution. I had to downgraded my linux to version 7.2.9, to be able to access my device again and make this thread.
I want to be able to do a system update with "sudo pacman -Syu", and when I reboot, have the "uname -r" output match the version of my 'pacman -Q linux' output
Here are some results that I have gotten during 'emergency mode', confirming that my issue is due to a kernel mismatch.
"uname -r" output:
7.2.9-arch1-1"pacman -Q linux" output:
linux 7.3.4.arch1-2And I used this command to downgrade my linux, to match the "uname -r" output.
sudo pacman -U /var/cache/pacman/pkg/linux-7.2.9-arch1-1-x86_64.pkg.tar.zstOther threads here say something about me needing to mount /boot before updating, but those are instructions that I can't seem to grasp; if I can't grasp it, then I might do a mistake that would make things worse than they already are. I would like guidance about how to properly mount and update.
Since I mentioned mount, I should show you my fstab and lsblk.
"cat /etc/fstab" output:
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=c5b905c1-51b2-45f8-9dc1-e552ffbef1da / ext4 rw,relatime 0 1
# /dev/nvme0n1p1
UUID=B32A-622E /boot/EFI vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda3
UUID=e14347c0-266c-4317-9912-25c2a4544bc1 none swap defaults 0 0"lsblk -f" output"
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1 vfat FAT32 ARCH_202111 4807-2694
nvme0n1
├─nvme0n1p1 vfat FAT32 B32A-622E 160.1M 68% /boot/EFI
├─nvme0n1p2 ext4 1.0 c5b905c1-51b2-45f8-9dc1-e552ffbef1da 1.1T 63% /
└─nvme0n1p3 swap 1 e14347c0-266c-4317-9912-25c2a4544bc1 [SWAP]So while I'm on my device, do I type "mount /dev/nvme0n1p1 /mnt/boot/EFI" and then do the -Syu package update?
I'll gladly provide more info and clarifications if needed.
Last edited by Banning (2026-11-17 04:58:02)
Offline
/boot/efi is discouraged for quite some time for several reasons and should no longer be used
better options are /efi, /esp or /boot itself
a kernel mismatch hints towards:
- the new kernel is not installed in the correct place, or not at all
- the bootloader config is wrong and searchs the wrong path (/boot/efi maybe could have something at play here)
- if the target is a mountpoint the target partition is not mounted when the new kernel gets installed
as purging the current kernel and initrd is the first pre hook when the kernel gets update but you can still load into the emergency shell and initrd is unable to find/mount the real root this hints at a mounting issue as otherwise it would succeed or you would end up with your bootloader fail completely
from the running system check content of /boot
also unmount /boot/efi and see if the folder contains any files (it should be empty as it's a target mountpoint)
post pacman.log so we can see possible error messages
overall likely a simple misconfiguration - should be as simple to fix
btw: your fstab hints you migrated your system from an older drive to a new machine?
Offline
Could you send all /etc/fstab content; the line starting with "UUID=B32A-622E" was cut at the end.
Online
It's truncated because it was copied out of a pager.
The obvious disparity is an attempt to mount anything into /boot (and failing) despite there being no such entry in the fstab - could indicate there's also a mismatch between initramfs and root partition.
(cat /proc/cmdline; ls -lR /boot) | nc termbin.com 9999Offline
/boot/efi is discouraged for quite some time for several reasons and should no longer be used
better options are /efi, /esp or /boot itself
a kernel mismatch hints towards:
- the new kernel is not installed in the correct place, or not at all
- the bootloader config is wrong and searchs the wrong path (/boot/efi maybe could have something at play here)
- if the target is a mountpoint the target partition is not mounted when the new kernel gets installed
as purging the current kernel and initrd is the first pre hook when the kernel gets update but you can still load into the emergency shell and initrd is unable to find/mount the real root this hints at a mounting issue as otherwise it would succeed or you would end up with your bootloader fail completelyfrom the running system check content of /boot
also unmount /boot/efi and see if the folder contains any files (it should be empty as it's a target mountpoint)
post pacman.log so we can see possible error messagesoverall likely a simple misconfiguration - should be as simple to fix
btw: your fstab hints you migrated your system from an older drive to a new machine?
You suggesting that the new kernel not being installed in the correct place might be the possible culprit. Your comment guided me to looking at my /boot/ directory, I see dubious duplicates of the same file. My grub.cfg is visible in three different directories for example. It's a mess and it needs a cleanup.
You can see in the duplicates files being highlighted with a red dot. The grub directories in /boot/ and boot/EFI are the exact same. Never realized how sloppy this is, very awkward to have a /boot/EFI/EFI; awful thing to see, considering that you said that /boot/EFI should be empty. Can I cleanup simply by deleting duplicates? What should stay? Is there a reference I can compare online?
As for the comment about me migrating, you're right about me replacing my HDD to an SSD a while ago, but it's unrelated because this is a long-standing issue that I have even before I upgraded my storage. Also the UUID's match, so I doubt it's worth investigating.
Here's the pacman.log, this is what happens everytime I try to install the linux package
[2026-11-14T23:47:33-0500] [ALPM] transaction started
[2026-11-14T23:47:34-0500] [ALPM] reinstalled linux (7.3.4.arch1-2)
[2026-11-14T23:47:34-0500] [ALPM] transaction completed
[2026-11-14T23:47:34-0500] [ALPM] running '35-systemd-update.hook'...
[2026-11-14T23:47:34-0500] [ALPM] running '60-depmod.hook'...
[2026-11-14T23:47:35-0500] [ALPM] running '70-dkms-install.hook'...
[2026-11-14T23:47:35-0500] [ALPM-SCRIPTLET] ==> dkms install --no-depmod vboxhost/7.2.22_OSE -k 7.3.4-arch1-2
[2026-11-14T23:47:39-0500] [ALPM-SCRIPTLET] ==> depmod 7.3.4-arch1-2
[2026-11-14T23:47:42-0500] [ALPM] running '90-mkinitcpio-install.hook'...
[2026-11-14T23:47:42-0500] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2026-11-14T23:47:42-0500] [ALPM-SCRIPTLET] ==> Using default configuration file: '/etc/mkinitcpio.conf'
[2026-11-14T23:47:42-0500] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
[2026-11-14T23:47:42-0500] [ALPM-SCRIPTLET] ==> Starting build: '7.3.4-arch1-2'
[2026-11-14T23:47:42-0500] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2026-11-14T23:47:42-0500] [ALPM-SCRIPTLET] -> Running build hook: [systemd]
[2026-11-14T23:47:44-0500] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2026-11-14T23:47:44-0500] [ALPM-SCRIPTLET] -> Running build hook: [microcode]
[2026-11-14T23:47:44-0500] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2026-11-14T23:47:44-0500] [ALPM-SCRIPTLET] -> Running build hook: [kms]
[2026-11-14T23:47:47-0500] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2026-11-14T23:47:47-0500] [ALPM-SCRIPTLET] -> Running build hook: [sd-vconsole]
[2026-11-14T23:47:47-0500] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2026-11-14T23:47:48-0500] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2026-11-14T23:47:48-0500] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2026-11-14T23:47:48-0500] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2026-11-14T23:47:48-0500] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
[2026-11-14T23:47:48-0500] [ALPM-SCRIPTLET] -> Early uncompressed CPIO image generation successful
[2026-11-14T23:47:49-0500] [ALPM-SCRIPTLET] ==> Initcpio image generation successful
[2026-11-15T00:27:23-0500] [PACMAN] Running 'pacman -S Linux'
[2026-11-15T00:27:27-0500] [PACMAN] Running 'pacman -S linux'
[2026-11-15T00:27:28-0500] [ALPM] running '70-dkms-upgrade.hook'...
[2026-11-15T00:27:28-0500] [ALPM-SCRIPTLET]
[2026-11-15T00:27:28-0500] [ALPM-SCRIPTLET] Error! nvidia/555.58.02: Missing the module source directory or the symbolic link pointing to it:
[2026-11-15T00:27:28-0500] [ALPM-SCRIPTLET] /var/lib/dkms/nvidia/555.58.02/source
[2026-11-15T00:27:28-0500] [ALPM-SCRIPTLET] Manual intervention is required!
[2026-11-15T00:27:28-0500] [ALPM-SCRIPTLET] If this module version is no longer needed, you can remove the stale directory.
[2026-11-15T00:27:28-0500] [ALPM-SCRIPTLET] Otherwise, reinstall the package that provides its source.
[2026-11-15T00:27:29-0500] [ALPM-SCRIPTLET] ==> dkms remove --no-depmod vboxhost/7.2.22_OSE -k 7.3.4-arch1-2Could you send all /etc/fstab content; the line starting with "UUID=B32A-622E" was cut at the end.
Thanks for catching that, I have immediately edited the OP to change it. Should show the whole output now.
It's truncated because it was copied out of a pager.
The obvious disparity is an attempt to mount anything into /boot (and failing) despite there being no such entry in the fstab - could indicate there's also a mismatch between initramfs and root partition.
Doing the command you suggested.
"(cat /proc/cmdline; ls -lR /boot) | nc termbin.com 9999" output:
https://termbin.com/unteLast edited by Banning (2026-11-16 21:54:53)
Offline
You're booting from a dedicated partition, that's gonna be B32A-622E which you're currently mounting into /boot/EFI
So the kernel you're booting is /boot/EFI/vmlinuz-linux but when updating the system the kernel gets installed into /boot/vmlinuz-linux
Both currently have the same timestamps so you likely corrected that somehow™ during the install iso boot.
=> change the system to mount B32A-622E into /boot - as cryptearth pointed out, using /boot/efi for the ESP is discouraged anyway.
You'll get warnings about a non-empty mountpoint, but you can ignore those, see whether the next udpate runs fine and in that case also clean up the mountpoint (ie. delete anything under /boot when B32A-622E is ***NOT*** mounted there)
Offline
You're booting from a dedicated partition, that's gonna be B32A-622E which you're currently mounting into /boot/EFI
So the kernel you're booting is /boot/EFI/vmlinuz-linux but when updating the system the kernel gets installed into /boot/vmlinuz-linux
Both currently have the same timestamps so you likely corrected that somehow™ during the install iso boot.=> change the system to mount B32A-622E into /boot - as cryptearth pointed out, using /boot/efi for the ESP is discouraged anyway.
You'll get warnings about a non-empty mountpoint, but you can ignore those, see whether the next udpate runs fine and in that case also clean up the mountpoint (ie. delete anything under /boot when B32A-622E is ***NOT*** mounted there)
Go into /etc/fstab, and edit"/boot/EFI" to simply "/boot/", on the same line with B32A-622E
Do a -Syu update, reboot, and then check if everything is fine
If everything is fine, cleanup /boot (delete the /boot/EFI/ directory)
This is gonna be my sequence, from reading your instructions. Seems doable!
Offline
The update will only be significant if it involves the kernel
(delete the /boot/EFI/ directory)
You are NOT supposed to delete ANYTHING on B32A-622E (for now) - what you can do after a successful kernel update is clean the /boot directory when nothing is mounted there. In doubt ask back then.
Offline
The update will only be significant if it involves the kernel
(delete the /boot/EFI/ directory)
You are NOT supposed to delete ANYTHING on B32A-622E (for now) - what you can do after a successful kernel update is clean the /boot directory when nothing is mounted there. In doubt ask back then.
I did step 1 and 2 of the sequence. Unfortunately, when I rebooted, I got the same error of '[FAILED] Failed to mount /boot. & [DEPEND] Dependency failed for Local File Systems'. I didn't delete any files, like you suggested.
Just like in my OP, I did "uname -r" and "pacman -Q linux", inside emergency mode, and the output still shows a kernel mismatch.
"uname -r" shows 7.2.9-arch1-1, and "pacman -Q linux" shows linux 7.3.4.arch1-2
Proof that verifies I edited the fstab, to change '/boot/EFI' to '/boot'
"cat /etc/fstab" output:
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=c5b905c1-51b2-45f8-9dc1-e552ffbef1da / ext4 rw,relatime 0 1
# /dev/nvme0n1p1
UUID=B32A-622E /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda3
UUID=e14347c0-266c-4317-9912-25c2a4544bc1 none swap defaults 0 0Downgraded my kernel, with 'pacman -U', to access my device again.
Offline
Despite comments about not deleting files in the /boot/EFI directory, what about removing those two initramf-linux.img files and the vmlinuz-linux file that are in the same directory with /boot/?
Offline
well, unfortunate at least i just can't get a clear picture about your actual file structure because your fancy image doesn't give me the required information, maybe someone else can make sense of it
from what i can get from it (which seems to be the state before your changed from /boot/efi to /boot):
you have
/kernel
/initrdright at the top of your root partition - this is wrong already
then you have
/boot/kernel
/boot/initrd
/boot/grub/
/boot/EFI/this is how it should be: both kernel and initrd in /boot with grub stuff in /boot/grub
then you have (the former) mountpoint of /boot/EFI/ where the esp used to mount to
<esp>/kernel
<esp>/initrd
<esp>/grub.cfg
<esp>/grub/
<esp>/EFI/quite a mess and likely the actual cause of the mismatch: your uefi does boot from a completely different set of files than both pacman and grub updated - and hence all falls completely apart and result in the errors
how to clean up:
1. remove kernel and initrd from root partition - they don't belong there at all
2. unmount your esp and look what's left in /boot (which should now be just a folder on the root partition)
3. completely clean /boot so it becomes empty
4. mount your esp at /boot
5. clean the now mounted esp at /boot, too
6. use efibootmgr to check for residual boot entries and clean them with
efibootmgr -b N -B where N is the index
- now you have cleaned up the mess
7. verify your /etc/fstab again - it should say /boot - which then is consistent with where you currently have mounted the esp
8. reinstall the kernel by
sudo pacman -S linux this places the kernel and the initrd onto the esp mounted at /boot
9. reinstall grub by
sudo grub-install --target=x86_64-efi --efi-directory=/boot --boot-directory=/boot --bootloader-id=grub10. generate a new grub.cfg with
sudo grub-mkconfig -o /boot/grub/grub.cfgthis SHOULD bring you back into a consistent state with a matching installed kernel package and kernel and initrd on the esp mounted at /boot as well as grub installed onto the esp with a proper config
before rebooting, check:
cat /boot/grub/grub.cfgdoes list about
linux /vmlinuz-linux
initrd /initramfs-linux.img(if you want microcode reinstall it before generating the config)
ls -alFh /boot shows both the kernel and initrd
- verify the kernel version with
file /boot/vmlinuz-linux- recheck /etc/fstab just for good meassure
- recheck with efibootmgr that it contains an entry for grub
this should bring you both back to a working system as well as should prevent future issues
in the end you should not end up with any stray EFI directory - if you do this hints at something went wrong elsewhere
brainfart - of course there will be
<esp>/EFI/grub/grubx64.efi- but this should be the ONLY one
if, at any point, you want to split your ESP and /boot again - can be done easily - just let me know
Last edited by cryptearth (2026-11-17 00:02:52)
Offline
well, unfortunate at least i just can't get a clear picture about your actual file structure because your fancy image doesn't give me the required information, maybe someone else can make sense of it
from what i can get from it (which seems to be the state before your changed from /boot/efi to /boot):
you have/kernel /initrdright at the top of your root partition - this is wrong already
then you have/boot/kernel /boot/initrd /boot/grub/ /boot/EFI/this is how it should be: both kernel and initrd in /boot with grub stuff in /boot/grub
then you have (the former) mountpoint of /boot/EFI/ where the esp used to mount to<esp>/kernel <esp>/initrd <esp>/grub.cfg <esp>/grub/ <esp>/EFI/quite a mess and likely the actual cause of the mismatch: your uefi does boot from a completely different set of files than both pacman and grub updated - and hence all falls completely apart and result in the errors
how to clean up:
1. remove kernel and initrd from root partition - they don't belong there at all
2. unmount your esp and look what's left in /boot (which should now be just a folder on the root partition)
3. completely clean /boot so it becomes empty
4. mount your esp at /boot
5. clean the now mounted esp at /boot, too
6. use efibootmgr to check for residual boot entries and clean them withefibootmgr -b N -Bwhere N is the index
- now you have cleaned up the mess
7. verify your /etc/fstab again - it should say /boot - which then is consistent with where you currently have mounted the esp
8. reinstall the kernel bysudo pacman -S linuxthis places the kernel and the initrd onto the esp mounted at /boot
9. reinstall grub bysudo grub-install --target=x86_64-efi --efi-directory=/boot --boot-directory=/boot --bootloader-id=grub10. generate a new grub.cfg with
sudo grub-mkconfig -o /boot/grub/grub.cfgthis SHOULD bring you back into a consistent state with a matching installed kernel package and kernel and initrd on the esp mounted at /boot as well as grub installed onto the esp with a proper config
before rebooting, check:cat /boot/grub/grub.cfgdoes list about
linux /vmlinuz-linux initrd /initramfs-linux.img(if you want microcode reinstall it before generating the config)
ls -alFh /bootshows both the kernel and initrd
- verify the kernel version withfile /boot/vmlinuz-linux- recheck /etc/fstab just for good meassure
- recheck with efibootmgr that it contains an entry for grubthis should bring you both back to a working system as well as should prevent future issues
in the end you should not end up with any stray EFI directory - if you do this hints at something went wrong elsewhere
brainfart - of course there will be<esp>/EFI/grub/grubx64.efi- but this should be the ONLY one
if, at any point, you want to split your ESP and /boot again - can be done easily - just let me know
When you say I have to remove "/kernel" and "/initrd", in step 1, are you referring /initrd as initramfs-linux.img and /kernel as vmlinuz-linux?
And for step 2, I should type "sudo umount /boot", to unmount my esp. Correct?
This is a great step-by-step guide, I just want to remove doubts of me doing a mistake despite being given such clear information.
Offline
Okay!
I followed the directions and it's been fixed! Thank you.
I learned a lot about this, and finally got to clean up my messy /boot/ directory.
Offline
yes, i shortend kernel and initrd - but looks like you figured it out anyway
glad to here it worked and hope it won't crash the very next update - IF so: please report back so we can countinue troubleshooting and fixing
btw: just as a side note: please avoid full-quotes (unless you reply to multiple posts)
Offline
Fwiw I very much doubt any of that was strictly necessary - the efi found the bootloader and grub started the kernel.
The problem w/ literal
Go into /etc/fstab, and edit"/boot/EFI" to simply "/boot/", on the same line with B32A-622E
Do a -Syu update, reboot, and then check if everything is fine
would have been that it of course didn't change anything about the active mounts before the update - the "fix" then happened w/ the subsequent reboot.
Offline
@seth
agreed - but as mentioned several times: for so many topics i often come up with "how do people run into these issues?"
and although for many things there're several possible ways to achieve the desired result (although discouraged even /boot/efi works perfectly fine if you know how to do it properly) at least to me most issues are caused by users often try too complicated things
sure, "fixing" might be as simple as change one mountpoint - but in this situation as /boot was not clean OP would had run into the esp not mounting - just clean up the mess was my way to hopefully ensure OP no longer has to deal with it
Offline