Help needed to move the /home partition

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Fede79

Help needed to move the /home partition

Post 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??
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
gm10

Re: Help needed to move the /home partition

Post 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
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.
Locked

Return to “Storage”