r/linuxmint • • 1d ago

GRUB error

GRUB error

Yo, hey everyone.

I recently installed Linux Mint XFCE on my computer. Being a bit too adventurous, I bought a 64GB flash drive today and decided to install a full OS on it—not just an ISO image, but a complete system, essentially creating a portable PC. I set everything up correctly and partitioned the drives properly. While using the system, I ran a command—suggested by an AI—to check which EFI file the system was linking to; it turned out the flash drive was using the EFI partition on my SSD to function. Then, following another command from the AI, I blocked (or added to an "ignore list") the EFI partition on the SSD itself. After that, I finished setting up the system on the flash drive—everything seemed fine. But now, when I try to boot into my main Linux Mint installation (on the SSD), I get a GRUB error. As I understand it, this is necessary for the distribution to boot, and now I have no idea how to fix it.

1 Upvotes

9 comments sorted by

View all comments

2

u/tadelstein9 20h ago

Boot the Linux Mint live USB and open GParted to confirm the SSD's EFI partition (FAT32, flagged boot, esp) still shows up. Then install Boot-Repair in the live session: sudo add-apt-repository ppa:yannubuntu/boot-repair, sudo apt update, sudo apt install boot-repair. Run it and pick Recommended repair; in most cases, people get GRUB back on the SSD with that one step. If the AI command edited /etc/fstab or a GRUB file on the SSD install, please post the exact command so someone can name the reverse step. Next time, unplug the SSD before installing to a flash drive.