Arch linux: Failed to mount /boot
when I try to start uo my system I get this error:
[Failed] Failed to mount /boot
See 'systemctl status boot.mount' for details
[DEPEND] Dependency filed for Local File System
then some more logs and
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, or "exit" to continue bootup.
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to contienue
What can i do to fix it ? I am not able to log in to mu system but I am able to run run arch-chroot
from live USB.
Edit: this in systemctl status boot.mount
mount: /boot: unknown file system 'vfat'
What happened
I used arch-chroot
on live usb to install networkmanager and I updated all packages in process. The linux kernel updated as well and installed initframs
to /boot
but boot partition was not mounted. This created situation where on boot partitions were files associated with different kernel version.
Solution
I solved it by:
- Booting live arch
- chroting into system
- creating another boot dir
mkdir /tmp/boot
- mounting boot partition
mount /dev/nvme0n1p1 /tmp/boot
- Moving boot files to right place
mv /boot/* /tmp/boot
- exit chroot
- reboot