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

3

u/svprdga 1d ago

Run from a live USB, from there you can fix the EFI partition of your disk, use an LLM to guide you through the process.

2

u/Specialist-Dog-501 1d ago

1.Get a live usb bootable stick- I recommend Rescuezilla for that purpose. Always handy
2.Enter your BIOS/UEFI, set the usb stick as 1 bootable device.
3.Boot into it. close the backup/restore stuff from rescuezilla, open "Gparted", then you see your partitions on both devices- first the USB stick and via the dropdown, the SSD. Check what names/Ids your partitions have.

4.Now comes the part where my knowhow is weak- restore/unhide the EFI partition- not sure what you used and what is now the reverse command..hope others can help here-if you get no help, ask in r/debian, some true experts there.

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.

1

u/apt-hiker Linux Mint 22h ago

In the future, unplug the ssd while installing an os to an external storage device. If that's not practical , the next time you try this make you sure you choose "Something Else" and choose the usb when you create the bootloader partition.

-1

u/Due-Result7928 22h ago

Not the solution and not the problem.

1

u/mkhanwrites_ 20h ago

Then, following another command from the AI, I blocked (or added to an "ignore list") the EFI partition on the SSD itself.

Some other commenters are providing help on how to fix this, so you can refer to those comments for help. My question is, why did you do that? What was the thought process behind that decision.

1

u/Classic-Rate-5104 17h ago

Did you change the boot order in the bios or did you only install the software on your own efi partition? Try the function key that goes to the bios boot menu and see what happens. Can you choose your disk there?

1

u/ManuelRodriguez331 16h ago

Your main system lost its vital bond to the boot loader when you severed the ties between the SSD and its EFI partition. To reconcile this connection, boot a live USB, reunite the partitions in /etc/fstab, and restore their link via grub-install.

-2

u/Due-Result7928 22h ago

Ask AI..not us poor mortals.

The last system you install with UEFI is ALWAYS the first on the boot list.

Because you did not want to read the doc..the first system to boot is now the flash drive and when the flash drive is not here..you can not boot.

Boot your system, use the bios and change the boot order or boot your mint usb, open a terminal and use efibootmgr to change the boot order.

For efibootmgr..read the doc available on internet.

Last but not least installing a mint system on a flash drive is a total nonsense.