Forum Home
Press F1
 
Thread ID: 66704 2006-03-05 00:23:00 Linux - Moving /home to new /home personthingy (1670) Press F1
Post ID Timestamp Content User
435546 2006-03-05 00:23:00 O fun.. O joy..
Falptops dead, and i got a new toy :D

Ive set up a new system, and i would now like to start moving much of the stuff from /home to a new drive that will be the new /home partition. Obviously this involves keeping the ownership of files unchanged

If i log in as root and simply move files from A to B all the moved files change ownership to root, so how do i do this and retain user ownership?

Idealy i'd like to do this using a live CD, such as Mepis as this is what i'm most familiar with.
personthingy (1670)
435547 2006-03-05 00:36:00 so how do i do this and retain user ownership? Can't you do a chown after you've moved them? Or are there multiple owners?

Mike.
Mike (15)
435548 2006-03-05 00:38:00 man cp. :D There is an option to keep all permissions and ownerships.

There's a better way which uses tar to make an archive, compress it on the fly, and pipe it to another instance of tar which unpacks it all on the destination. Google will find a howtodoit. "moving /home tar" looks pretty good.
Graham L (2)
435549 2006-03-05 01:20:00 IIRC its cp -Rvp

:)
Chilling_Silence (9)
1