Jump to content

copying home directory to new partition


rhaynes
 Share

Recommended Posts

Hi, I now have mandriva 2006 powerpack and mandrake 10.0 official installed on one machine. 10.0 is still my work machine until I get 2006 configured properly.

 

I have a home partition on my 2006 "side". While in 2006 I mount my 10.0 /home partition to /mnt/home and I want to copy all the files (except the hidden files) to my 2006 /home/username partition.

 

As root I mount the old partition and then copy * to /home/xyz.

 

As I found out then all the files and directories (some 7GB) are now controlled by root.

I then tried to tar all the files and move the tar file and untar. This worked but now all the files are owned by "501".

 

How can I copy everything and keep ownership and group info from the old partition?

 

Thanks,

R Haynes

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...