I am planning to install an ssd on a computer and replacing the hdd. I plan on making a similar partition table, with manjaro installed on sda1 followed by a swap partition. I will therefore copy the entire contents of the partition from hdd to ssd. There is no separate partition for home and i will keep it that way. Hopefully, this should not cause problems anywhere where the OS accesses the drive by its name like sda or sda1, but there are multiple instances where it recognizes it with UUID, and I know i need to change that. Some places that i know include the fstab, udev rules, but what are other files where i should need to check for it. I was hoping that receiving input from multiple people would give me a exhaustive list, and save many hours of troubleshooting. Also if there are any other things to care about do tell (i know i have install grub and update it on the ssd).
Also while I am at it, should I change the file system from ext4 to btrfs for the ssd? And any changes I need to make if change the file system?
Assuming your hdd is gpt parted then, when you use Clonezilla to clone the partitions (not the whole disk!) you should be able to use the new ssd just from the start after replacing the old hdd.
To be 100% sure about it you need to share with us how the hdd is parted (msdos / gpt), sector size of old and new disk (e.g. 512 / 4096 B), total size of old and new disk and if you use BIOS or UEFI mode to boot.
Well, you have to change UUIDs on the new disk at /etc/fstab. To avoid that step, you could label the partition and mount it in fstab instead of UUID= with LABEL=root_manjaro before cloning.
This is something diiferent and linked to partitions not to the disk.
Anyway, if you have the same logical sector size, your new disk is larger than the old one then I would use Clonezilla to clone the whole disk. Afterwards you can use Gparted to resize it and get use of the unsued space on the new ssd. Cloning the disk (instead of partitions) is required to copy over the MBR and grub’s core.img.
This should work out of the box. Remember not to physically mount both disk after cloning, use only one disk at a time.
Use another flash drive with gparted to resize the partitions on ssd
Format the hard drive
Try booting from ssd
Thanks for help. Earlier i was just considering copying over all the files reinstalling grub on ssd. If i missed anything, please tell. I am considering saving an image with clonezilla too just in case