Posting this here about a problem I had because of a stupid mistake I made, and now it turned to be a mostly easy fix. I didn’t find many resources online on it, so it may help people in tbe future.
I mounted /proc, /sys, /run and /dev in a directory that I was making into a chroot environment. Eventually, I wanted to delete the directory, but forgot to unmount those directories. I deleted with sudo rm -rf
. Yes it’s dumb, I know.
From what I learned, most of what I deleted would be restored with a reboot, except one part: efivars, which is located in /sys. This messed up my bootloader, and it was no longer booting into Linux, but instead windows (which is also on my system).
I did not find a lot of resources on this online. I fixed it by booting into my computer with a USB with linux Mint on it. I use refind
as my bootloader, which is awesome and simple. All I had to do was run the refind-install
while chrooted into my system. It handles fixing whatever is wrong. After rebooting, I no longer had any issues.