Mount your new drive on /hometmp:
cd /home
tar -cf - . | (cd /hometmp;tar -xvf - .)
This will copy all files from /home to /hometmp keeping proper
attributes. Next:
cd /
umount /hometmp
mv /home /home_prev
mv /hometmp /home
vi /etc/fstab ## add or change /home's mount point to the new drive.
mount /home
If all is in order, delete /home_prev after a week or so.
-Andrew
On Wed, 2002-03-27 at 20:13, patrick grantham wrote:
> I will be adding a harddrive and I want to move content in and below /home to
> the new drive. I am concerned with what happens to the file attributes. How
> can I move files and folders and preserve the user and group ownership and
> the existing file access?
>
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:50:10 EDT