Ubuntu – Ubuntu migrate from HDD to SSD

hardwaressdupgrade

My old HP becomes quite rusty so I want to add an SSD alongside the HDD, but I don't won't to lose all my data.

I would like to transfer all the application and root folders to the SSD so the OS will boot from it. However, the /home directory should remain on the HDD because is to large for the SSD.

I'm not a newbie in Linux, but I certainly don't have enough experience to accomplish the task.

So I would like if someone could make a detailed guide on how to do it. The workflow should roughly be something as follow:

  1. Create a back up so I can always revert all the changes
  2. Migrate from the SSD to the HDD (selecting a file system, linking the home dir, BIOS settings etc.)
  3. Updating from Ubuntu 18.04 to the latest version

EDIT
Here is the lsblk /dev/sda (HDD) output (the SSD is not plugged yet):

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0   512M  0 part /boot/efi
├─sda2   8:2    0 923,1G  0 part /
└─sda3   8:3    0     8G  0 part [SWAP]

Best Answer

this might not be the go-to way to do it but here is what I would do:

  1. Create a backup using timeshift on an external drive. I find it to be the best backup solution out there and I trust it because I have done this procedure using it dozens of times.

You can install it using these instructions

After that just follow the GUI instructions to create a backup of all your files. Create a second one if you want to be absolutely safe.

  1. Put the SSD into your laptop and take the HDD out

  2. Install the Linux Distro of your choice.

  3. Install timeshift in that Distro

  4. Recover the data.

  5. Enjoy.

Related Question