This question already has an answer here:

I know there are many questions on mv or dd the files in HDD to install new Ubuntu on SSD. However, I want to know whether it is possible to move the /home of /dev/sda1 to /dev/sda2 and install new Ubuntu in /dev/sdb which is the SSD.

Attached is my disk partitions layout

marked as duplicate by karel, Eric Carvalho, user535733, David Foerster, Zanna Feb 27 at 22:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.