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??
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.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Help needed to move the /home partition
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Help needed to move the /home partition
In principle like this:
Copy all the files from your current /home to the destination like this:
Run
to get the UUID of the destination partition, then do
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.
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
Code: Select all
xed admin:///etc/fstab
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.