Clone to new SSD

So I just got a new faster with higher capacity m.2 drive. I have put it in the main m.2 slot and moved this Fedora drive to the secondary slot. I am wondering if it is possible to clone this entire drive over to the new ssd. I could reinstall, but all the stuff I had to do to make it work. I don’t feel like going through all that again at the moment. Also, I do have encryption enabled.

Cheers.

Yes, with the caveat that the cloned filesystem(s) will be the same size as on the smaller drive.

Expanding the filesystem to occupy the entire drive is possible, but consider just partitioning the free space, formatting, then mounting it wherever it’s needed. It’ll be simpler and safer than resizing an encrypted filesystem.

If you create a new encrypted disk then clone the partitions over on to the encrypted disk you avoid issue with resizing the encrypted part.
Then clone the contents on old encrypted disk to new encrypted disk.

Personally I reinstall the OS and packags; you can get a list of installed packages from the old system and compare to the list on the new system to see what you added.

For the system config you can look in your old /etc for files you add/changed.

Then copy the old /home into a new /home.

If you’re leaving the old disk in the machine, I assume you need to randomize the filesystem UUIDs to avoid any ambiguity at mount time, but I don’t know any LUKS specifics of this.

Thanks for helping. I decided to just reinstall. Fresh starts are nice even if it means more work.

I keep notes on what I install and customise so I can redo the install if I have too.

From my experience with transferring… I make a clone using Clonezilla, if the target disk is larger than the source disk, I restart the computer using Gparted, set the partition, e.g. the one with the system, to the size that suits me, e.g. I have 123 GB of free space left, I clone it to the maximum size or I allocate this 123 GB for document copies.