Help needed to move the /home partition

Forum rules
Before you post please read this
Post Reply
Fede79
Level 1
Level 1
Posts: 4
Joined: Sun Jul 22, 2018 10:17 pm

Help needed to move the /home partition

Post by Fede79 » Sun Jul 22, 2018 10:29 pm

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??
Last edited by Moem on Mon Jul 23, 2018 3:40 am, edited 1 time in total.
Reason: A more descriptive title will often result in better or faster answers.

gm10
Level 11
Level 11
Posts: 3529
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help needed to move the /home partition

Post by gm10 » Mon Jul 23, 2018 5:01 pm

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
Run

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.

Post Reply

Return to “Mounting Partitions”