In your /etc/fstab do you use the "device paths" (eg. /dev/sda1) to specify, where to mount which partition?
Because that path is not fixed and depends on, which of your drives is discovered first during boot time. This can lead to an error like this, when sometimes the "faster" drive is discovered first, essentially swapping /dev/sdb and /dev/sda as you usually have it set up.
You can change the fstab to use UUIDs (an unique identifier for each partition) or even disk labels (if you have them set up, it's a name you can give your partitions).
I had the same case two days ago, I was messing with some iso image creation and probably by accident overidden some boot entries, it started booting kernel (the one that was supposed to run on USB) from the root partition instead of boot partition and this kernel was not supporting vfat, which was the cause of boot partition mounting problem (same error as yours). The quick fix was to copy the kernel and initramfs from boot partition to root partition to /boot, but I need to figure out how to permanently boot from boot partition.
23 comments
If I reboot my system works as fine as usual.
In your /etc/fstab do you use the "device paths" (eg. /dev/sda1) to specify, where to mount which partition? Because that path is not fixed and depends on, which of your drives is discovered first during boot time. This can lead to an error like this, when sometimes the "faster" drive is discovered first, essentially swapping /dev/sdb and /dev/sda as you usually have it set up.
You can change the fstab to use UUIDs (an unique identifier for each partition) or even disk labels (if you have them set up, it's a name you can give your partitions).
u/Usen0rm4l_go: Use
blkidto get the UUID of your partitions:username@host $ sudo blkid /dev/sda1[sudo] password for username:/dev/sda1: UUID="a2a43292-3594-481e-b0b6-d1b0530d05fc" TYPE="ext4" PARTLABEL="boot" PARTUUID="d43a3067-8297-49ce-b3d4-452c94a6cd67"Then add them to
/etc/fstablike this:# /dev/sda1 LABEL=bootUUID=a2a43292-3594-481e-b0b6-d1b0530d05fc/boot ext4 rw,relatime 0 2Make sure it's booting the correct kernel. Maybe it booted kernel with initramfs from your root partition instead of boot partition.
This is so annoying. It started happening a couple weeks ago and I could only fix by disabling /boot automount.
I had the same case two days ago, I was messing with some iso image creation and probably by accident overidden some boot entries, it started booting kernel (the one that was supposed to run on USB) from the root partition instead of boot partition and this kernel was not supporting vfat, which was the cause of boot partition mounting problem (same error as yours). The quick fix was to copy the kernel and initramfs from boot partition to root partition to /boot, but I need to figure out how to permanently boot from boot partition.
Do you dual boot with windows? You need to disable fast startup in windows (or whatever it's called).
No I don't.
it's formatted as a swap partition, not ext4, format it as ext4.
Is it possible they are not formatted properly?
mkswap mkfs.ext4 etc..
This
Oh boy I had that yesterday. Easy to fix if u installed arch using wiki a few times
Deleted before we saved it.