I have a Ubuntu box which is currently running on an old 500GB HDD.
As I got hold of a 240GB SSD and the HDD was only used partially (10% used) I decided to clone the HDD to the SSD.
Since the HDD is larger then the SSD, I defragmented it and resized its data partition to a size under 240GB. After this the system is still working and boots up as usual.
Since the SSD was on a 100% Windows machine it had a MBR
partition table which I replaced with a gpt
partition table. I then created two partitions of the same size as the ones present in the HDD.
I then started the PC using another Ubuntu bootable USB and issued these two dd
commands:
sudo dd if=/dev/sda1 of=/dev/sdd1 status=progress
sudo dd if=/dev/sda2 of=/dev/sdd2 status=progress
All went fine without errors but at the end of it the PC refuses to boot from the SDD.
Partition /dev/sdd2 seems to have been correctly cloned since I can mount it when I either boot from /dev/sda or from the bootable USB. But I notice that the used space in /dev/sda2 is larger then the used space in /dev/sdd2. I suspect this is due to any temporary files and devices resulting from booting from it.
I tried to boot from the SSD without any other disks connected but all I get is that when the PC is booting it goes straight into the BIOS/EFI menu.
Any idea why my SSD refuses to start?