Hello everyone.
(Editing this question to include more details)
I'll try to describe my issue without making this a super ultra-long thread.
Long story short: I've always wanted to have the freedom of having an external fully functional OS that I can take with me wherever I go and, if needed, simply plug anywhere and have everything I need on the go.
After much research, I've ended up with Ubuntu and, after following some extremely complicated guides, I managed to get a functional external NVME drive with Ubuntu 20.04 LTS and life was good.
That is, until I decided to upgrade my laptop to an Asus one and the wi-fi simply wasn't detected. I tried many things and, among the recommendations, was the upgrading of the kernel, which I did, but didn't quite work out. I, then, set my sights on upgrading Ubuntu to v 21 (non-LTS). This worked, but broke a LOT of stuff and the wifi still wasn't working. I tried digging for resolutions, but couldn't figure out what to do (I'm a newbie in Linux, forgive me).
I, then, found that you could reinstall Ubuntu on top of a current install and restore Linux to a functional state.
I've followed the instructions and did everything I did back when I installed Linux on the external drive for the first time, but now, when I try to boot, I'm getting an error I never got before (probably due to UEFI boot dramas and grub settings).
I've checked fstab and the UUID indicated there matches my nvme and matches the /, /home and boot partitions.
When I boot, however, I'm faced with the below error (the XXXXX is my UUID, which I've hidden on purpose, but they do match my /etc/fstab, I've double checked).
Gave up waiting for root device.
ALERT! UUID:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX does not exist. Dropping to a shell!
I'm at a loss here, as I'm a newbie in Linux, but I've already learned how to dig into fstab and fix the UUID, which is an issue I've had with my first try at this external install.
Since this is preventing me from booting from the external device, I'd like to ask for assistance with figuring out what else I should be doing to make sure that the device boots properly.
I'm sure there's something else that needs to be done to fix this, but I've fought so hard to partition the NVME (due to alignment dramas) the first time, that I don't want to repartition and just continue to use the current partitioning setup without having to format the partitions again.
I'm happy to reinstall Ubuntu 21.X again, if necessary, but as long as it doesn't require reformatting.
I'm at a complete loss, though, as the UUID indicated by the message above is EXACTLY what's on fstab and I even did a search through grub.cfg file located under the boot folder of the EFI partition and the UUID is the same there, too.
I've compared them perfectly with what's shown under Disks and the numbers match them exactly.
Thank you all and I'd highly appreciate it if you could help me out with what to do next here.
EDIT: I have an EFI/boot partition created in the NVME and I had already followed the guide suggested by a member, by unflagging the main drive's boot partition and leaving only the external NVME tagged as boot ESP before installing.
EDIT2: I'll try to gather the info to help answer the following post (I'm a newbie, so will try to run these tools and paste it here):
"Please copy & paste the pastebin link to the Boot-info summary report ( do not post report), do not run the auto fix till reviewed.Lets see details, use ppa version with your USB installer (2nd option) or any working install, not Boot-Repair ISO (unless 21.10) help.ubuntu.com/community/Boot-Repair & sourceforge.net/p/boot-repair/home/Home Ubuntu's Ubquity installer only wants to install to first drive. bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379 –
oldfred"
EDIT3: In response to the above:
https://ibb.co/PgFJVWW
https://ibb.co/nCFmGKL
EDIT 4 (pastebin with boot-repair report results): https://paste.ubuntu.com/p/455Jq5JrKH/
EDIT 5: I have removed the laptop from the equation and got an intel NUC, with the NVME drive removed completely, booted from scratch and performed the Ubuntu install again, but leaving the /home partition untouched. I have followed this guide: https://askubuntu.com/a/1324342/1384077. I have also followed these steps:
"
• Do not reboot or unplug the target USB.
• open Nautilus using sudo -H nautilus
• Copy the boot and the EFI folders from the Ubuntu ISO file to the boot,esp partition sdx3.
• Copy grub.cfg from partition sdx4 /boot/grub/ to partition sdx3 /boot/grub/ overwriting the grub.cfg file.
• Re-Install GRUB:
sudo -i
mount /dev/sdd4 /mnt
mount /dev/sdd3 /mnt/boot/efi
grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi --removable /dev/sdd
reboot
"
After following the above, I have rebooted the system normally and still got the same error.
I have used boot-repair to try to identify what may be wrong now, as there's no longer a device that I can't remove (in the laptop I was working before) and now there's no excuse to have grub on any other disk, apart from the USB (which is simply an enclosure running an SSD chip).
(pastebin with boot-repair report results): https://paste.ubuntu.com/p/mRgThXDzt6/)
Final EDIT: After trying absolutely everything I've managed to find online, following guides to reinstall Ubuntu, repair Grub, completely format the boot partitions and recreate them, nothing worked, so I ended up giving up, after wasting several days of troubleshooting and wiped the whole drive, recreated the partitions and reinstalled Linux following one of the guides I found online. It's now booting properly and I've tested with 2 different machines (secure boot off) and it's working.
Thanks to everyone for the attempts to help, and especially @oldfred for being so helpful, but it just didn't do the trick for me.
Thanks all again.