Results 1 to 3 of 3
Hi, I need to change the location of the /home to a new drive/partition. I have partitioned, mkfs and mounted the new drive to /mnt. My question is what is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-31-2012 #1
- Join Date
- Jan 2012
Moving /home proper way to copy files over
My question is what is the correct command to copy from /home to the new home /mnt?
do I use cp with switches to catch hidden/links etc or use a variant for find command piped to a copy type utility?
obviously, vp -R /home/* /mnt will not do the job.
- 01-31-2012 #2
A lot of people do this sort of thing with cpio. cpio is similar to tar but it has a "copy-pass" mode in which no archive is actually created. Instead files pass through cpio to their new location with ownership and permissions intact. Have a look at the cpio man page for details."I'm just a little old lady; don't try to dazzle me with jargon!"
- 02-08-2012 #3
rsync also works well for that purpose, and can be re-run efficiently if need be.
--- rod.Stuff happens. Then stays happened.