So I recently completed installing OpenMandriva on my last remaining Ex-Windows PC.
All remaining vestiges have now been cut, and I can now embrace the screaming Mandrake Root with vigor and total commitment.
After my recent successes with grub console, fstab and NetworkManager, I thought I had this root in the bag. My flatpak was now brimming with an assortment of enhancements, yet one task remained. I approached the final battle perhaps a little too overconfident, but defiantly I stepped forward. I uttered that wretched spell and grimaced:
āNVIDIAā
Suddenly everything went dark. I panicked. Instinctively I cast a 3 finger interrupt but alas, time and again I found myself at back the grub branch, yet every turn was a dead end.
TLDR:
I attempted to install the āNVIDIA driversā package from the OMA Welcome screen.
For whatever reason this did not go well with my old GeForce GTX 660 Ti.
After rebooting I was unable to boot to any of the recovery console options in grub.
Approaching the solution:
I will worry about fixing this driver issue later next week when I have more time, but for now I needed to find a way to undo the installation of the NVIDIA packages.
I booted from the liveUSB I used for installation, I mounted the drive and looked around for a while but I had no idea what to look for. Then it occurred to me, āwhat if I could reverse the dnf package installation in a console, as if I was logged in as the root user?ā
I was aware of the command chroot, Iāve had to use it once or twice in the past. I thought, being in a live session it couldnāt hurt to tryā¦
mount /dev/sda4 /mnt
chroot /mnt
dnf remove "nvidia*"
Obviously this didnāt work, it gave some errors about āNo such file or directory in /procā and it was clear to me I had missed something in the chroot, as the command āflatpak listā showed only what I had installed in the live session, not what was installed on the main system.
At this point DuckDuckGoās search assist came to the rescue. I did a search āopenmandriva remove flatpak using chrootā. It turns out I had only missed a few crucial steps:
' Mount root partition to a temporary directory:
sudo mount /dev/sdXn /mnt
' Bind necessary filesystems:
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
' Chroot into the Mounted System:
sudo chroot /mnt
' Remove packages:
dnf remove "nvidia*"
After shutting down the live session and rebooting everything was back to normal.
And that is the story of how I failed to a bag a screaming mandrake root by casting the NVIDIA spell without first binding the ritual incantations.