From dittrich@cac.washington.edu Sun Sep 10 15:15:36 2000 Received: from mxu3.u.washington.edu (mxu3.u.washington.edu [140.142.33.7]) by lists.u.washington.edu (8.9.3+UW00.05/8.9.3+UW99.09) with ESMTP id PAA145774 for ; Sun, 10 Sep 2000 15:15:35 -0700 Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mxu3.u.washington.edu (8.9.3+UW00.02/8.9.3+UW99.09) with ESMTP id PAA23404 for ; Sun, 10 Sep 2000 15:15:35 -0700 Received: from shivax2.cac.washington.edu (shivax2.cac.washington.edu [140.142.100.20]) by mxout2.cac.washington.edu (8.9.3+UW00.02/8.9.3+UW99.09) with ESMTP id PAA27941 for ; Sun, 10 Sep 2000 15:15:35 -0700 Received: from localhost (dittrich@localhost) by shivax2.cac.washington.edu (8.9.3+UW00.02/8.9.3+UW99.09) with ESMTP id PAA27107 for ; Sun, 10 Sep 2000 15:15:35 -0700 Date: Sun, 10 Sep 2000 15:15:35 -0700 (PDT) From: Dave Dittrich To: UW Linux Group Subject: Re: [Re: shuffling partitions] In-Reply-To: <20000907180251.24520.qmail@nwcst333.netaddress.usa.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 7 Sep 2000, J Kyllo wrote: > I recently did this with my /usr partition and all was well. Be sure to use > cp -a, that will keep all the permissions and ownership in tact. A better method is to use "tar", writing to standard output, piping that to another tar reading standard input, something like this: # mv /home /home.orig # mdkir /home # mount (whatever) /home # (cd /home.orig; tar -cf - .) | (cd /home; tar -xvf -) You then remove /home.orig after you've made sure it is all intact. Using tar preserves links, special files, etc., which I'm not sure cp would do. Also, if you forget to use -a like you say, you really mess things up. That won't happen with tar, and the some unices don't have the -a option to cp. -- Dave Dittrich Computing & Communications dittrich@cac.washington.edu Client Services http://staff.washington.edu/dittrich University of Washington PGP key http://staff.washington.edu/dittrich/pgpkey.txt Fingerprint FE 97 0C 57 08 43 F3 EB 49 A1 0C D0 8E 0C D0 BE C8 38 CC B5 .