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.

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.


  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

  • 0 users online
  • 5 users / day
  • 12 users / week
  • 61 users / month
  • 398 users / 6 months
  • 5.52K subscribers
  • 1.79K Posts
  • Modlog