You are not logged in.

#1 2017-07-26 11:10:27

phobos-dthorga
Member
From: Sydney, Australia
Registered: 2017-07-26
Posts: 2
Website

Moving over /home dirs from root to new LVM partition

I've successfully followed the Arch Linux wiki instructions to create a new LVM partition and have it automatically mounted at boot with a new initramfs image, but I now am not sure how to transfer over the pre-existing /home dir contents from the root partition towards the new LVM partition, which mounts as /home itself. It might seem obvious to some but it certainly doesn't to me, so is there a documented procedure for this? I'd appreciate any and all help on this topic, thank you.

Offline

#2 2017-07-26 19:09:28

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,340

Re: Moving over /home dirs from root to new LVM partition

Simply mount old /home (anywhere, it won't matter, just make a temp mountpoint) and then copy everything to your new mount.

cp -a /oldmount /newmount

Should preserve ownership and perms.

Last edited by Roken (2017-07-26 19:09:51)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#3 2017-07-26 22:51:19

phobos-dthorga
Member
From: Sydney, Australia
Registered: 2017-07-26
Posts: 2
Website

Re: Moving over /home dirs from root to new LVM partition

Thank you, @Roken, it worked perfectly! All ownership and permissions were perfectly preserved too :)

Offline

Board footer

Powered by FluxBB