Follow the failed mount of /boot and it will lead you to the cause.
In the majority of cases this is caused by /boot not being mounted during kernel updates. The system then boots into the old kernel but fails to find any kernel modules since these were removed during the update.
It only happens if one fails to add /boot to fstab or doesn't pay attention to what is going on with their system. Check your logs regularly as part of your maintenance routine and you'll be fine.
Best way to learn is to inadvertently break things, and then figure out how to fix them. If you don't have the time or the will for that, perhaps Arch Linux isn't for you just yet.
I've been using the same Arch install for over six years, persisting through multiple hardware upgrades. It has been rendered unbootable once, due to Windows overwriting the bootloader. Took 15 minutes to chroot in and fix it.
I've found maintenance to be rather easy compared to other operating systems. Read the docs, and be careful with your sudos. Also a very good idea to make regular backups (and know how to restore them) if your machine is mission critical.
No this has happened to me on multiple systems with no problem with install. When You install the whole thing at once, sometimes the module are unloaded because they are being resinstalled, and when then kernel gets upgraded it doesn’t see them. But when you install each part separately, this problem goes away.
41 comments
Follow the failed mount of /boot and it will lead you to the cause.
In the majority of cases this is caused by /boot not being mounted during kernel updates. The system then boots into the old kernel but fails to find any kernel modules since these were removed during the update.
Thx but how should i do this? Sorry slightly new at problems like this
For a start compare the
uname -randpacman -Q linuxoutput. If they don't match then the above has actually happend.Is this something that happens often? New to arch, wondering if I should use it for a machine learning workstation+server
It only happens if one fails to add /boot to fstab or doesn't pay attention to what is going on with their system. Check your logs regularly as part of your maintenance routine and you'll be fine.
The error is totally down to user error.
Best way to learn is to inadvertently break things, and then figure out how to fix them. If you don't have the time or the will for that, perhaps Arch Linux isn't for you just yet.
Vivat Arch!
I've been using the same Arch install for over six years, persisting through multiple hardware upgrades. It has been rendered unbootable once, due to Windows overwriting the bootloader. Took 15 minutes to chroot in and fix it.
I've found maintenance to be rather easy compared to other operating systems. Read the docs, and be careful with your sudos. Also a very good idea to make regular backups (and know how to restore them) if your machine is mission critical.
It once happened to me when I control-c'ed a pacman install of kernel. It's not like you should do anything like this on any distro.
3 years on Arch, never happened to me. I dunno if others might experience it more often though.
If you have to ask, probably not.
Chroot into arch and then run
pacman -S linux
To reinstall the kernel which should reinstall the modules to fix the file system.
Make sure /boot is mounted before doing this too.
That has got to be my favourite error message ever.
this is likely the cause that when issuing the `mkinitcpio` the boot was mounted not the way sysetm was configured.
you should try arch-chroot from live disk into your system, mount `/boot` and mkinitpio from new. Or reupdate last tried `-Syu` even.
Last time -Syu broke my machine, I just -Syu again the day after that and everything worked again. :D
This error can be avoided in the future by running
pacman -Sy pacman -S Linux pacman -Syu
Which first updates repositories, reinstalls kernel, then updates. I haven’t had an update problem since.
pacman -Syu linuxdoes the same in one commandWhy are you tying to make pacman behave like apt
Just saying I had a problem on 2 different arch installs, and since I’ve done this way of installing I haven’t had any problems.
Just don't interrupt a installing kernel and you'll be fine. Just use
pacman -SyuNo this has happened to me on multiple systems with no problem with install. When You install the whole thing at once, sometimes the module are unloaded because they are being resinstalled, and when then kernel gets upgraded it doesn’t see them. But when you install each part separately, this problem goes away.