I’m approaching this problem from many angles and I’m stuck – need advice.
What happened? I ran ‘yay’ as I normally do. About 15 minutes into the upgrade, which I think included the new kernel, I had an emergency call and decided to CONTROL-BREAK the installation and then power down. Apparently that really broke things because the system was booting with errors like “ModemManager not found” etc.
Here’s the thing, this Manjaro installation is on a 128GB USB. In order to try to fix some of the corrupted files, I installed Manjaro ALSO on the main hard disk of the PC, which is what I’m using to write this. I am able to mount the broken 128GB Manjaro installation and copy missing/broken files over there.
The broken installation still won’t boot, BUT I can press Alt-F3 to get into emergency mode. Unfortunately, while in emergency mode, I can’t get access to the Internet to run pacman or pamac or yay. I tried using nmcli to connect but it doesn’t see my wifi device. I even tried booting into older kernels, but I still have to use emergency mode, and still ifconfig doesn’t show my wifi device.
The wifi device works fine when I boot from the main hard disk, which is what I’m using now to write this. I figure if I can get nmcli to connect to wifi, then I can run a package manager and hopefully that will sort out whatever was broken in the first place.
I’m able to move files between the USB and the HD no problem. I’m wondering if there’s a way to boot into the HD, and then run pacman, pamac or yay to repair the Manjaro installation on the USB.
FWIW at least I have all my files on the USB, but it’s really upsetting if I have to start over from scratch and reinstall and configure all my applications, etc. I would really like to get that USB to boot normally or at least get it to connect to the Internet. I suspect there are some problems in /usr/lib, like missing files, or the wrong files for the wrong kernel.
Emergecy mode really sucks because I can’t scroll back, and less and more do not work. I’m thinking maybe I need to find the hidden boot errors and fix them one at a time until the USB boots correctly. Any tips? Suggestions?