This question has already addresses but none of the solutions has worked. I replace my laptop from time to time. I even have a Clonezilla image that I restore to the new one. This approach had ran fine until now.
I got a refurbished Latitude 5480 at a very good price. It had a mechanical drive that I even didn´t use. I replaced it with a SSD drive that runs fine.
The image (hence the disk) has dual boot. Starts with Ubuntu configured with GRUB to boot either Ubuntu or Linux. The partition table is GPT.
The first partition has Ubuntu installed, following the Linux swap partition and then a bootable Windows partition. There is no "reserved microsoft partition" Many people asks why I installed it that way since the most common is Windows first. The answer is simple: Windows eats hard disk space while Ubuntu doesn´t. In fact I installed a new version of Delphi that required 20 GB. Were the partitions set backwards, Delphi would not had fit.
So, I got a new M.2 NVME disk and cloned the entire disk to it. Neither OS boots. GRUB menu appears. Ubuntu enters in "panic" mode after a while and Windows just hangs, sometimes complaining about inaccessible boot device. The laptop is configured as UEFI with Secure Boot turned off (As far as I know, secure boot implies UEFI, but UEFI doesn't necessarily implies Secure Boot)
My guess is since both OS were installed on preNVMe time neither has the drivers or configuration needed.
I don't want to install from scratch (specially Windows) but I'm stuck here. The UEFI requires some files created at OS install, again, as far as I know.
How can I migrate this nonUEFI disk to the new one?
I checked this answers but no one has worked
moving Windows 10 from SSD (UEFI/GPT) to m.2 NVMe PCH PCIE (or PCH SATA)
Moving windows from SATA SSD to NvMe SSD