Migrating to a larger SSD disk

I have upgraded to a larger SSD disk, I moved from 500GB to 1TB.

I think the best option is to connect 2 disks to the SATA3 connectors and use dd to clone the whole disk from a smaller to the larger one. This is the fastest way and it took only 17 minutes to clone 500GB with over 500MB/s transfer rates.

lsblk
dd if=/dev/old of=/dev/new bs=1M conv=noerror,sync status=progress

then use GParted to make any changes to partition layout.

This tool is very easy to use and does the job. After you remove partitions you don’t need and move things around you end up with a bunch of unallocated disk space you would like to merge with your existing home partition. In my case this partition is encrypted. I have resized this partition using GParted. After that you have to decrypt the partition to then be able to resize

cryptsetup luksOpen /dev/sdx homecrypt
cryptsetup resize homecrypt
e2fsck -f /dev/mapper/homecrypt
resize2fs -p /dev/mapper/homecrypt

If the partition layout has changed much you want to update fstab and Grub