Initially, I had some kind of crash. Either the compositor or graphics driver crashed but the system did recover from it automatically. I didn’t think much about it and decided to run a system update and then reboot.
I looked away from the computer during this update and not sure what happened but the add/remove programs window was closed when I came back. I reopened and and checked for updates and everything came back clean so I rebooted.
After rebooting, I got back into the login screen. Tried logging and and everything went black. Tried switching to a tty and it only gave me a cursor with no login prompt.
I booted into a live usb, and manjaro-chrooted into the system to run a pacman-Syyu and pacman said everything was up to date. I ran a pacman -Qkk and found ~100 packages that either had alterations/missing mtab (or mtree? something like that. i dont remember).
I decided to reinstall all packages and overwrite using the following:
pacman-mirrors --fasttrack 5 && pacman -Syyu
pacman -Qqn | pacman --overwrite=* -S -
There are a few errors here
(18/46) Refreshing PackageKit...
Error connecting: Could not connect: No such file or directory
error: command failed to execute correctly
...
(20/46) Installing Grub to MBR/EFI
WARNING: EFI directory not found! Grub couldn't be installed.
error: command failed to execute correctly
I tried manually mounting efi partition and chrooting and just tried reinstalling grub with this
sudo mount /dev/nvme1n1p2 /mnt
mkdir -p /mnt/boot/efi
sudo mount /dev/nvme1n1p1 /mnt/boot/efi
sudo manjaro-chroot /mnt
sudo pacman -S grub
warning: grub-2:2.12.r260.gaae2ea619-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) grub-2:2.12.r260.gaae2ea619-3
Total Installed Size: 50.93 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring
(1/1) checking package integrity
(1/1) loading package files
(1/1) checking for file conflicts
(1/1) checking available disk space
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/1) reinstalling grub
:: To use the new features provided in this GRUB update, it is recommended
to install it to the MBR or UEFI. Due to potential configuration
incompatibilities, it is advised to run both, installation and generation
of configuration:
# UEFI: https://wiki.archlinux.org/title/GRUB#Installation
# BIOS: https://wiki.archlinux.org/title/GRUB#Installation_2
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Refreshing PackageKit...
Error connecting: Could not connect: No such file or directory
error: command failed to execute correctly
(3/4) Installing Grub to MBR/EFI
WARNING: EFI directory not found! Grub couldn't be installed.
error: command failed to execute correctly
(4/4) Updating the info directory file...
Any ideas what to try next?
Mod edit:- In future, please try to break your text into paragraphs for better legibility; see edits made as an example.