[NOTE: Even though the boot menu is messed up, since I can still get it to boot to the correct system with a workaround, I'm not freaking out about this problem. It's just annoying that I did this, and would like to get it fixed.]
I really appreciate the comments so far, but I am just not getting it somehow, and I'm also not convinced that I'm communicating effectively enough to make sure others know what I'm even dealing with.
So..... Would anyone be willing to mirror back to me what they think I'm trying to say?
OK....I'm an idiot. Whew! Glad that's out of the way. lol
I have a mini PC running Ubuntu 20.04 LTS Desktop (I've been using Linux, including Ubuntu, for a very long time, but I'm still pretty much a noob when it comes to what's actually going on under the hood. I know...remember above?).
I have a USB flash drive with Ubuntu on it that I use to install Ubuntu on other computers (it's what I used to install it on this mini PC).
I wanted to 'Install' Ubuntu onto another flash drive so that I could use it for some testing on a completely different system (I just needed a bootable Linux OS of some sort, and I figured this should work just fine).
So, I shut the mini PC down, plugged both USB flash drives (the one I use to install Ubuntu, and the new, blank one) into the mini PC, and turned it on.
At the boot menu, I selected to boot to the USB flash drive that I use for installing Ubuntu.
I went through the whole process of choosing options for how and where to install Ubuntu (especially making sure to choose the flash drive for where to install....since that was the whole point), and told it to go do it.
Well, as I'm sure many/most of you know, what I ended up with is basically my same, old Ubuntu system, on this mini PC with what appears to be all of my old settings, etc, but now, it's somehow tied to this other USB flash drive (i.e. when I turn the mini PC on without that flash drive plugged in, it goes to a grub prompt, and that's it, whereas, with that flash drive plugged in, I get two Ubuntu OS choices; the first one does nothing (or whatever it does, it isn't a bootable option as far as I can tell), and the second one boots up to the old Ubuntu system.
QUESTIONS:
What the #5$@ did I do, and why wasn't that the right choice?
How do I get it all back to 'normal' so that I don't need to have that flash drive plugged in?
How do I accomplish what I was originally trying to do? Would I need to do the same install process, but while having the mini PC's SSD disconnected?
EDIT1: I just looked at the partitions in 'Disks', and it looks like it's actually configured properly in there. So, perhaps I just need to edit the grub menu. I got a GUI tool for that for now. Will report back...
EDIT2: OK...no. Without some study, it's not immediately obvious what I need to do in the grub menu. I'm also not 100% sure that that's all I need to do.
EDIT3: I tried Boot-Repair, but it failed to restore my boot menu.
Obviously, my ignorance about what goes on under the hood is holding me back on this. So, since it's working fine once I get it booted via workaround, I think I'm probably going to just let it sit in its current condition until I learn enough about Linux to be able to fix it myself.
However, if anyone has any input, I will listen, and give things a try as I understand the instructions well enough to follow along.
Thanks, guys. I really appreciate your attempts to assist me.
I see a folder named ESP in var/lib/grub on the flash drive that I told it to install Ubuntu to.
When you say to "reinstall grub", I didn't 'install' it (I mean, not directly, or knowing it lol). So, is there anything special I need to know, or should I just go find out how to install it, and then do that while keeping your comments in mind so that I do it correctly?
– ubuntoid May 24 '21 at 04:13I tried to ask some clarifying questions above so that I could better understand what you mean by some of the terms you have been using. If you'd be willing, I would love to hear your responses to those clarifying questions.
– ubuntoid May 25 '21 at 03:48sudo parted -l
If you have Boot-Repair, post the link to its report. It tells you to post the link if you have issues. – oldfred May 25 '21 at 14:33[Note: I enabled root, logged in as root, and performed the Boot-Repair while logged in as root. I do not run as root any other time.]
– ubuntoid May 26 '21 at 04:35