Page 1 of 1

Help needed to move the /home partition

Posted: Sun Jul 22, 2018 10:29 pm
by Fede79
Good evening, I need help to solve a situation.
I installed Mint 19 (Cinnamon) on a laptop, in UEFI mode, on a 120 Gigabyte SSD drive.
Use the option of LVM and encrypted, both the system and the swap have been installed in the SSD, but on the same laptop I also have a 1TB disk.
I would like to move the /home partition from the first disk and take it to the hdd.
Can anyone help??

Re: Help needed to move the /home partition

Posted: Mon Jul 23, 2018 5:01 pm
by gm10
In principle like this:

Copy all the files from your current /home to the destination like this:

Code: Select all

sudo rsync -av /home /new/home/mount/point

Code: Select all

lsblk -f
to get the UUID of the destination partition, then do

Code: Select all

xed admin:///etc/fstab
and switch out the UUID of your current /home for the one of the destination. Reboot and done.

Now I haven't used encrypted LVM volumes for home so if there are any complications to consider I'll have to let someone else weigh in. Or just try it out as is, but ideally have a live USB at hand in case something goes wrong. You can always change fstab back, just don't delete your current /home partition until you know the new one works.