I was trying to copy an old SSD to a new SSD and used "dd" to copy over, but I decided to stick to the old SSD and when I booted it didn't boot but I saw the grub console. At that time if I select prefix and root manually following this example it worked just fine.
But I wanted to fix the root cause of this problem and so I used Gparted and I am sorry I can't remember what exactly I had done.
I have somehow messed up the boot on my linux box and I haven't been able to boot ubuntu 20.04. I believe I still have the OS in the harddrive. Every time after I turn on I see "grub" console like this:
grub>
I can see (hd0,gpt2) and (hd0,gpt1)
but when I tried
grub>ls (hd0,gpt2)
Partition hd0,gpt1: No known filesystem detected - Partition start at ...
The same message for hd0,gpt2
I can't also do
grub>ls (hd0,gpt2)/
My question is how can I boot linux and fix this issue ?
I have been struggling with this issue for quite some time now and I want to fix it ASAP :(
Thank you.
Updates
As per suggestion I created a USB drive which contains ubuntu and booted this ubuntu and ran boot-repair.
Please see the boot info below
https://paste.ubuntu.com/p/W2qTpCYVJd/
Also from the console I see
On the console I typed "sudo fdisk -l" and I see
Disk /dev/sda: 447.13 GiB...
...
...
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 937701375 446.6G Linux filesystem
This is the ubuntu I want to boot :(
Update 2
I got another external hard drive and install ubuntu on it and booted. On it I installed Boot Repair and the Recommended Repair button appeared and it said it fixed but the summary is here below...
https://paste.ubuntu.com/p/gHMszZBmvN/