This question is probably super common, but my situation might not be :) let's see..
I have a PC tower running as a home server using Ubuntu server 20.04 LTS (NAS, minecraft, etc random stuff). I want to upgrade my old system disk to a new one. Old one is a SATA SSD, 240GB. New disk is a 256GB M.2 NVME drive attached to the motherboard.
Ideally, I would like to just clone the whole drive since I would like to avoid reinstalling and reconfiguring. It seems Gparted can copy entire partitions so that would be the way to go. I tried it a couple of times using instructions I found here and there, but no luck. New drive just refuses to boot.
I think it might have something to do with my legacy drive. See, this drive used to be in a PC from the pre-UEFI era. My tower now has a new modern motherboard with all the new UEFI stuff, that I'm not really that familiar with. I simply moved the old drive to this new motherboard and it just happened to work, so I never bothered to fix the legacy stuff.
I think the issue might be here, I have booted using a live USB and noticed this mystical sda1 partition with something to do with grub (see screenshot). I'm quite familiar with Ubuntu, I have been using it since 2004. But when UEFI came to the picture, I was not really using it at that time and simply lost track on how UEFI and all the modern boot stuff works. Now the question is, how to properly migrate this setup to a new drive?
screenshot
EDIT: here is the gparted output in text form:
Partition filesystem flags
/dev/sda1 grub2 core.img bios_grub
/dev/sda2 ext4 (<--- the root filesystem)